github.com/google/syzkaller@v0.0.0-20251211124644-a066d2bc4b02/tools/syz-declextract/testdata/syscall.c.json (about)

     1  {
     2  	"functions": [
     3  		{
     4  			"name": "__do_sys_chmod",
     5  			"file": "syscall.c",
     6  			"start_line": 10,
     7  			"end_line": 12,
     8  			"scopes": [
     9  				{
    10  					"arg": -1
    11  				}
    12  			]
    13  		},
    14  		{
    15  			"name": "__do_sys_open",
    16  			"file": "syscall.c",
    17  			"start_line": 6,
    18  			"end_line": 8,
    19  			"scopes": [
    20  				{
    21  					"arg": -1
    22  				}
    23  			]
    24  		}
    25  	],
    26  	"syscalls": [
    27  		{
    28  			"func": "__do_sys_chmod",
    29  			"args": [
    30  				{
    31  					"name": "filename",
    32  					"counted_by": -1,
    33  					"type": {
    34  						"ptr": {
    35  							"elem": {
    36  								"buffer": {
    37  									"is_string": true
    38  								}
    39  							},
    40  							"is_const": true
    41  						}
    42  					}
    43  				},
    44  				{
    45  					"name": "mode",
    46  					"counted_by": -1,
    47  					"type": {
    48  						"int": {
    49  							"byte_size": 4,
    50  							"name": "int",
    51  							"base": "int"
    52  						}
    53  					}
    54  				}
    55  			],
    56  			"source_file": "syscall.c"
    57  		},
    58  		{
    59  			"func": "__do_sys_open",
    60  			"args": [
    61  				{
    62  					"name": "filename",
    63  					"counted_by": -1,
    64  					"type": {
    65  						"ptr": {
    66  							"elem": {
    67  								"buffer": {
    68  									"is_string": true
    69  								}
    70  							},
    71  							"is_const": true
    72  						}
    73  					}
    74  				},
    75  				{
    76  					"name": "flags",
    77  					"counted_by": -1,
    78  					"type": {
    79  						"int": {
    80  							"byte_size": 4,
    81  							"name": "int",
    82  							"base": "int"
    83  						}
    84  					}
    85  				},
    86  				{
    87  					"name": "mode",
    88  					"counted_by": -1,
    89  					"type": {
    90  						"int": {
    91  							"byte_size": 4,
    92  							"name": "int",
    93  							"base": "int"
    94  						}
    95  					}
    96  				}
    97  			],
    98  			"source_file": "syscall.c"
    99  		}
   100  	]
   101  }