diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2024-12-11 16:49:01 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-12-13 14:42:28 +0000 |
| commit | ef0cd4a7bc26b206a7a5af18beed1589c388a204 (patch) | |
| tree | 854f3b8475f091f6af07e52a88a033b7652e2da1 /tools/syz-declextract/testdata/file_operations.c.json | |
| parent | a35f0e6cafe5705ddc9f527bb6cfe297384021ef (diff) | |
tools/syz-declextract: extract info about all functions
Extract info about all functions, and compute total LOC for each interface.
For now only static calls are considered, this doesn't handle indirect calls yet.
This is just a groundwork for more complex callgraph/dataflow analysis.
Diffstat (limited to 'tools/syz-declextract/testdata/file_operations.c.json')
| -rw-r--r-- | tools/syz-declextract/testdata/file_operations.c.json | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/tools/syz-declextract/testdata/file_operations.c.json b/tools/syz-declextract/testdata/file_operations.c.json index e5ddad2b2..94ad7bef5 100644 --- a/tools/syz-declextract/testdata/file_operations.c.json +++ b/tools/syz-declextract/testdata/file_operations.c.json @@ -1,4 +1,52 @@ { + "functions": [ + { + "name": "foo_ioctl", + "file": "file_operations.c", + "is_static": true, + "loc": 7 + }, + { + "name": "foo_mmap", + "file": "file_operations.c", + "is_static": true + }, + { + "name": "foo_open", + "file": "file_operations.c", + "is_static": true + }, + { + "name": "foo_read", + "file": "file_operations.c", + "is_static": true + }, + { + "name": "foo_write", + "file": "file_operations.c", + "is_static": true + }, + { + "name": "proc_ioctl", + "file": "file_operations.c", + "is_static": true + }, + { + "name": "proc_open", + "file": "file_operations.c", + "is_static": true + }, + { + "name": "proc_read", + "file": "file_operations.c", + "is_static": true + }, + { + "name": "proc_write", + "file": "file_operations.c", + "is_static": true + } + ], "includes": [ "include/uapi/file_operations.h" ], |
