diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2025-04-08 14:11:26 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2025-04-09 10:27:41 +0000 |
| commit | 1aed810c86069f8b9b117ccccf083e98bf0da74c (patch) | |
| tree | e6841902edef7496b3813eea3e31c7c599625c62 /tools/syz-declextract/testdata/file_operations.c.json | |
| parent | 6dfb898e263c6fdb948f1578b0dada1e15b6764e (diff) | |
tools/syz-declextract: extend test data
Add few interesting cases for scope analysis.
Move functions related to resource to the header file,
they must be visible in every file to work.
Diffstat (limited to 'tools/syz-declextract/testdata/file_operations.c.json')
| -rw-r--r-- | tools/syz-declextract/testdata/file_operations.c.json | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tools/syz-declextract/testdata/file_operations.c.json b/tools/syz-declextract/testdata/file_operations.c.json index e7dfd31f6..dd0415fd2 100644 --- a/tools/syz-declextract/testdata/file_operations.c.json +++ b/tools/syz-declextract/testdata/file_operations.c.json @@ -1,6 +1,27 @@ { "functions": [ { + "name": "__fget_light", + "file": "include/fs.h", + "is_static": true, + "scopes": [ + { + "arg": -1 + } + ] + }, + { + "name": "alloc_fd", + "file": "include/fs.h", + "is_static": true, + "scopes": [ + { + "arg": -1, + "loc": 1 + } + ] + }, + { "name": "foo_ioctl", "file": "file_operations.c", "is_static": true, @@ -115,6 +136,17 @@ ] }, { + "name": "from_kuid", + "file": "include/fs.h", + "is_static": true, + "scopes": [ + { + "arg": -1, + "loc": 1 + } + ] + }, + { "name": "proc_ioctl", "file": "file_operations.c", "is_static": true, |
