aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-declextract/testdata/functions.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/functions.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/functions.c.json')
-rw-r--r--tools/syz-declextract/testdata/functions.c.json42
1 files changed, 28 insertions, 14 deletions
diff --git a/tools/syz-declextract/testdata/functions.c.json b/tools/syz-declextract/testdata/functions.c.json
index 6d636233e..b4766e73e 100644
--- a/tools/syz-declextract/testdata/functions.c.json
+++ b/tools/syz-declextract/testdata/functions.c.json
@@ -3,10 +3,11 @@
{
"name": "__do_sys_functions",
"file": "functions.c",
+ "start_line": 31,
+ "end_line": 34,
"scopes": [
{
"arg": -1,
- "loc": 2,
"calls": [
"__fget_light",
"func_baz"
@@ -45,6 +46,8 @@
{
"name": "__fget_light",
"file": "include/fs.h",
+ "start_line": 18,
+ "end_line": 19,
"is_static": true,
"scopes": [
{
@@ -55,54 +58,59 @@
{
"name": "alloc_fd",
"file": "include/fs.h",
+ "start_line": 14,
+ "end_line": 16,
"is_static": true,
"scopes": [
{
- "arg": -1,
- "loc": 1
+ "arg": -1
}
]
},
{
"name": "atomic_load32",
"file": "include/types.h",
+ "start_line": 17,
+ "end_line": 19,
"is_static": true,
"scopes": [
{
- "arg": -1,
- "loc": 1
+ "arg": -1
}
]
},
{
"name": "atomic_load64",
"file": "include/types.h",
+ "start_line": 21,
+ "end_line": 23,
"scopes": [
{
- "arg": -1,
- "loc": 1
+ "arg": -1
}
]
},
{
"name": "from_kuid",
"file": "include/fs.h",
+ "start_line": 21,
+ "end_line": 23,
"is_static": true,
"scopes": [
{
- "arg": -1,
- "loc": 1
+ "arg": -1
}
]
},
{
"name": "func_bar",
"file": "functions.c",
+ "start_line": 11,
+ "end_line": 13,
"is_static": true,
"scopes": [
{
"arg": -1,
- "loc": 1,
"calls": [
"func_foo"
]
@@ -112,10 +120,11 @@
{
"name": "func_baz",
"file": "functions.c",
+ "start_line": 15,
+ "end_line": 24,
"scopes": [
{
"arg": -1,
- "loc": 8,
"calls": [
"func_foo",
"func_bar",
@@ -155,6 +164,8 @@
{
"name": "func_foo",
"file": "functions.c",
+ "start_line": 8,
+ "end_line": 9,
"is_static": true,
"scopes": [
{
@@ -165,10 +176,11 @@
{
"name": "func_qux",
"file": "functions.c",
+ "start_line": 26,
+ "end_line": 29,
"scopes": [
{
"arg": -1,
- "loc": 2,
"calls": [
"alloc_fd"
],
@@ -204,10 +216,11 @@
{
"name": "typing",
"file": "functions.c",
+ "start_line": 46,
+ "end_line": 52,
"scopes": [
{
"arg": -1,
- "loc": 5,
"calls": [
"typing1"
],
@@ -298,10 +311,11 @@
{
"name": "typing1",
"file": "functions.c",
+ "start_line": 42,
+ "end_line": 44,
"scopes": [
{
"arg": -1,
- "loc": 1,
"facts": [
{
"src": {