aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-declextract/testdata/file_operations.c.json
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2025-04-09 10:38:03 +0200
committerDmitry Vyukov <dvyukov@google.com>2025-04-10 17:07:48 +0000
commit2d9fa31cf7abaddf944824814053e67b4d5c478e (patch)
tree12c10728542789e81ec4eef0496250933516e217 /tools/syz-declextract/testdata/file_operations.c.json
parenta6ec893839824d1b080d8c0c02360e5db5c6d39f (diff)
pkg/declextract: export syscall variants as separate interfaces
Export each syscall variant (e.g. fcnt$*) as a separate interface. Effectively these are separate syscalls. We will want this for ioctl as well (it's not 1 interface).
Diffstat (limited to 'tools/syz-declextract/testdata/file_operations.c.json')
-rw-r--r--tools/syz-declextract/testdata/file_operations.c.json47
1 files changed, 35 insertions, 12 deletions
diff --git a/tools/syz-declextract/testdata/file_operations.c.json b/tools/syz-declextract/testdata/file_operations.c.json
index dd0415fd2..9fcd64ce4 100644
--- a/tools/syz-declextract/testdata/file_operations.c.json
+++ b/tools/syz-declextract/testdata/file_operations.c.json
@@ -3,6 +3,8 @@
{
"name": "__fget_light",
"file": "include/fs.h",
+ "start_line": 18,
+ "end_line": 19,
"is_static": true,
"scopes": [
{
@@ -13,22 +15,24 @@
{
"name": "alloc_fd",
"file": "include/fs.h",
+ "start_line": 14,
+ "end_line": 16,
"is_static": true,
"scopes": [
{
- "arg": -1,
- "loc": 1
+ "arg": -1
}
]
},
{
"name": "foo_ioctl",
"file": "file_operations.c",
+ "start_line": 21,
+ "end_line": 30,
"is_static": true,
"scopes": [
{
"arg": -1,
- "loc": 2,
"calls": [
"foo_ioctl2"
],
@@ -72,18 +76,19 @@
"FOO_IOCTL4",
"FOO_IOCTL5"
],
- "loc": 5
+ "start_line": 23
}
]
},
{
"name": "foo_ioctl2",
"file": "file_operations.c",
+ "start_line": 13,
+ "end_line": 19,
"is_static": true,
"scopes": [
{
- "arg": -1,
- "loc": 1
+ "arg": -1
},
{
"arg": 0,
@@ -91,13 +96,15 @@
"FOO_IOCTL6",
"FOO_IOCTL7"
],
- "loc": 3
+ "start_line": 15
}
]
},
{
"name": "foo_mmap",
"file": "file_operations.c",
+ "start_line": 11,
+ "end_line": 11,
"is_static": true,
"scopes": [
{
@@ -108,6 +115,8 @@
{
"name": "foo_open",
"file": "file_operations.c",
+ "start_line": 8,
+ "end_line": 8,
"is_static": true,
"scopes": [
{
@@ -118,6 +127,8 @@
{
"name": "foo_read",
"file": "file_operations.c",
+ "start_line": 9,
+ "end_line": 9,
"is_static": true,
"scopes": [
{
@@ -128,6 +139,8 @@
{
"name": "foo_write",
"file": "file_operations.c",
+ "start_line": 10,
+ "end_line": 10,
"is_static": true,
"scopes": [
{
@@ -138,17 +151,20 @@
{
"name": "from_kuid",
"file": "include/fs.h",
+ "start_line": 21,
+ "end_line": 23,
"is_static": true,
"scopes": [
{
- "arg": -1,
- "loc": 1
+ "arg": -1
}
]
},
{
"name": "proc_ioctl",
"file": "file_operations.c",
+ "start_line": 43,
+ "end_line": 43,
"is_static": true,
"scopes": [
{
@@ -159,6 +175,8 @@
{
"name": "proc_open",
"file": "file_operations.c",
+ "start_line": 40,
+ "end_line": 40,
"is_static": true,
"scopes": [
{
@@ -169,6 +187,8 @@
{
"name": "proc_read",
"file": "file_operations.c",
+ "start_line": 41,
+ "end_line": 41,
"is_static": true,
"scopes": [
{
@@ -179,6 +199,8 @@
{
"name": "proc_write",
"file": "file_operations.c",
+ "start_line": 42,
+ "end_line": 42,
"is_static": true,
"scopes": [
{
@@ -189,11 +211,12 @@
{
"name": "unused_ioctl",
"file": "file_operations.c",
+ "start_line": 59,
+ "end_line": 64,
"is_static": true,
"scopes": [
{
- "arg": -1,
- "loc": 1
+ "arg": -1
},
{
"arg": 1,
@@ -201,7 +224,7 @@
"UNUSED_IOCTL1",
"UNUSED_IOCTL2"
],
- "loc": 2
+ "start_line": 61
}
]
}