Eunomia
0.1.0
A lightweight eBPF-based CloudNative Monitor tool for Container Security and Observability
syscall_helper.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
2
#ifndef __SYSCALL_HELPERS_H
3
#define __SYSCALL_HELPERS_H
4
5
#include <stdlib.h>
6
8
/*
9
* Syscall table for Linux x86_64.
10
*
11
* Semi-automatically generated from strace/linux/x86_64/syscallent.h and
12
* linux/syscallent-common.h using the following commands:
13
*
14
* awk -F\" '/SEN/{printf("%d %s\n", substr($0,2,3), $(NF-1));}' syscallent.h
15
* awk '/SEN/ { printf("%d %s\n", $3, $9); }' syscallent-common.h
16
*
17
* (The idea is taken from src/python/bcc/syscall.py.)
18
*/
19
#ifdef __x86_64__
20
static
const
char
*syscall_names_x86_64[] = {
21
"read"
,
22
"write"
,
23
"open"
,
24
"close"
,
25
"stat"
,
26
"fstat"
,
27
"lstat"
,
28
"poll"
,
29
"lseek"
,
30
"mmap"
,
31
"mprotect"
,
32
"munmap"
,
33
"brk"
,
34
"rt_sigaction"
,
35
"rt_sigprocmask"
,
36
"rt_sigreturn"
,
37
"ioctl"
,
38
"pread64"
,
39
"pwrite64"
,
40
"readv"
,
41
"writev"
,
42
"access"
,
43
"pipe"
,
44
"select"
,
45
"sched_yield"
,
46
"mremap"
,
47
"msync"
,
48
"mincore"
,
49
"madvise"
,
50
"shmget"
,
51
"shmat"
,
52
"shmctl"
,
53
"dup"
,
54
"dup2"
,
55
"pause"
,
56
"nanosleep"
,
57
"getitimer"
,
58
"alarm"
,
59
"setitimer"
,
60
"getpid"
,
61
"sendfile"
,
62
"socket"
,
63
"connect"
,
64
"accept"
,
65
"sendto"
,
66
"recvfrom"
,
67
"sendmsg"
,
68
"recvmsg"
,
69
"shutdown"
,
70
"bind"
,
71
"listen"
,
72
"getsockname"
,
73
"getpeername"
,
74
"socketpair"
,
75
"setsockopt"
,
76
"getsockopt"
,
77
"clone"
,
78
"fork"
,
79
"vfork"
,
80
"execve"
,
81
"exit"
,
82
"wait4"
,
83
"kill"
,
84
"uname"
,
85
"semget"
,
86
"semop"
,
87
"semctl"
,
88
"shmdt"
,
89
"msgget"
,
90
"msgsnd"
,
91
"msgrcv"
,
92
"msgctl"
,
93
"fcntl"
,
94
"flock"
,
95
"fsync"
,
96
"fdatasync"
,
97
"truncate"
,
98
"ftruncate"
,
99
"getdents"
,
100
"getcwd"
,
101
"chdir"
,
102
"fchdir"
,
103
"rename"
,
104
"mkdir"
,
105
"rmdir"
,
106
"creat"
,
107
"link"
,
108
"unlink"
,
109
"symlink"
,
110
"readlink"
,
111
"chmod"
,
112
"fchmod"
,
113
"chown"
,
114
"fchown"
,
115
"lchown"
,
116
"umask"
,
117
"gettimeofday"
,
118
"getrlimit"
,
119
"getrusage"
,
120
"sysinfo"
,
121
"times"
,
122
"ptrace"
,
123
"getuid"
,
124
"syslog"
,
125
"getgid"
,
126
"setuid"
,
127
"setgid"
,
128
"geteuid"
,
129
"getegid"
,
130
"setpgid"
,
131
"getppid"
,
132
"getpgrp"
,
133
"setsid"
,
134
"setreuid"
,
135
"setregid"
,
136
"getgroups"
,
137
"setgroups"
,
138
"setresuid"
,
139
"getresuid"
,
140
"setresgid"
,
141
"getresgid"
,
142
"getpgid"
,
143
"setfsuid"
,
144
"setfsgid"
,
145
"getsid"
,
146
"capget"
,
147
"capset"
,
148
"rt_sigpending"
,
149
"rt_sigtimedwait"
,
150
"rt_sigqueueinfo"
,
151
"rt_sigsuspend"
,
152
"sigaltstack"
,
153
"utime"
,
154
"mknod"
,
155
"uselib"
,
156
"personality"
,
157
"ustat"
,
158
"statfs"
,
159
"fstatfs"
,
160
"sysfs"
,
161
"getpriority"
,
162
"setpriority"
,
163
"sched_setparam"
,
164
"sched_getparam"
,
165
"sched_setscheduler"
,
166
"sched_getscheduler"
,
167
"sched_get_priority_max"
,
168
"sched_get_priority_min"
,
169
"sched_rr_get_interval"
,
170
"mlock"
,
171
"munlock"
,
172
"mlockall"
,
173
"munlockall"
,
174
"vhangup"
,
175
"modify_ldt"
,
176
"pivot_root"
,
177
"_sysctl"
,
178
"prctl"
,
179
"arch_prctl"
,
180
"adjtimex"
,
181
"setrlimit"
,
182
"chroot"
,
183
"sync"
,
184
"acct"
,
185
"settimeofday"
,
186
"mount"
,
187
"umount2"
,
188
"swapon"
,
189
"swapoff"
,
190
"reboot"
,
191
"sethostname"
,
192
"setdomainname"
,
193
"iopl"
,
194
"ioperm"
,
195
"create_module"
,
196
"init_module"
,
197
"delete_module"
,
198
"get_kernel_syms"
,
199
"query_module"
,
200
"quotactl"
,
201
"nfsservctl"
,
202
"getpmsg"
,
203
"putpmsg"
,
204
"afs_syscall"
,
205
"tuxcall"
,
206
"security"
,
207
"gettid"
,
208
"readahead"
,
209
"setxattr"
,
210
"lsetxattr"
,
211
"fsetxattr"
,
212
"getxattr"
,
213
"lgetxattr"
,
214
"fgetxattr"
,
215
"listxattr"
,
216
"llistxattr"
,
217
"flistxattr"
,
218
"removexattr"
,
219
"lremovexattr"
,
220
"fremovexattr"
,
221
"tkill"
,
222
"time"
,
223
"futex"
,
224
"sched_setaffinity"
,
225
"sched_getaffinity"
,
226
"set_thread_area"
,
227
"io_setup"
,
228
"io_destroy"
,
229
"io_getevents"
,
230
"io_submit"
,
231
"io_cancel"
,
232
"get_thread_area"
,
233
"lookup_dcookie"
,
234
"epoll_create"
,
235
"epoll_ctl_old"
,
236
"epoll_wait_old"
,
237
"remap_file_pages"
,
238
"getdents64"
,
239
"set_tid_address"
,
240
"restart_syscall"
,
241
"semtimedop"
,
242
"fadvise64"
,
243
"timer_create"
,
244
"timer_settime"
,
245
"timer_gettime"
,
246
"timer_getoverrun"
,
247
"timer_delete"
,
248
"clock_settime"
,
249
"clock_gettime"
,
250
"clock_getres"
,
251
"clock_nanosleep"
,
252
"exit_group"
,
253
"epoll_wait"
,
254
"epoll_ctl"
,
255
"tgkill"
,
256
"utimes"
,
257
"vserver"
,
258
"mbind"
,
259
"set_mempolicy"
,
260
"get_mempolicy"
,
261
"mq_open"
,
262
"mq_unlink"
,
263
"mq_timedsend"
,
264
"mq_timedreceive"
,
265
"mq_notify"
,
266
"mq_getsetattr"
,
267
"kexec_load"
,
268
"waitid"
,
269
"add_key"
,
270
"request_key"
,
271
"keyctl"
,
272
"ioprio_set"
,
273
"ioprio_get"
,
274
"inotify_init"
,
275
"inotify_add_watch"
,
276
"inotify_rm_watch"
,
277
"migrate_pages"
,
278
"openat"
,
279
"mkdirat"
,
280
"mknodat"
,
281
"fchownat"
,
282
"futimesat"
,
283
"newfstatat"
,
284
"unlinkat"
,
285
"renameat"
,
286
"linkat"
,
287
"symlinkat"
,
288
"readlinkat"
,
289
"fchmodat"
,
290
"faccessat"
,
291
"pselect6"
,
292
"ppoll"
,
293
"unshare"
,
294
"set_robust_list"
,
295
"get_robust_list"
,
296
"splice"
,
297
"tee"
,
298
"sync_file_range"
,
299
"vmsplice"
,
300
"move_pages"
,
301
"utimensat"
,
302
"epoll_pwait"
,
303
"signalfd"
,
304
"timerfd_create"
,
305
"eventfd"
,
306
"fallocate"
,
307
"timerfd_settime"
,
308
"timerfd_gettime"
,
309
"accept4"
,
310
"signalfd4"
,
311
"eventfd2"
,
312
"epoll_create1"
,
313
"dup3"
,
314
"pipe2"
,
315
"inotify_init1"
,
316
"preadv"
,
317
"pwritev"
,
318
"rt_tgsigqueueinfo"
,
319
"perf_event_open"
,
320
"recvmmsg"
,
321
"fanotify_init"
,
322
"fanotify_mark"
,
323
"prlimit64"
,
324
"name_to_handle_at"
,
325
"open_by_handle_at"
,
326
"clock_adjtime"
,
327
"syncfs"
,
328
"sendmmsg"
,
329
"setns"
,
330
"getcpu"
,
331
"process_vm_readv"
,
332
"process_vm_writev"
,
333
"kcmp"
,
334
"finit_module"
,
335
"sched_setattr"
,
336
"sched_getattr"
,
337
"renameat2"
,
338
"seccomp"
,
339
"getrandom"
,
340
"memfd_create"
,
341
"kexec_file_load"
,
342
"bpf"
,
343
"execveat"
,
344
"userfaultfd"
,
345
"membarrier"
,
346
"mlock2"
,
347
"copy_file_range"
,
348
"preadv2"
,
349
"pwritev2"
,
350
"pkey_mprotect"
,
351
"pkey_alloc"
,
352
"pkey_free"
,
353
"statx"
,
354
"io_pgetevents"
,
355
"rseq"
,
356
""
,
357
""
,
358
""
,
359
""
,
360
""
,
361
""
,
362
""
,
363
""
,
364
""
,
365
""
,
366
""
,
367
""
,
368
""
,
369
""
,
370
""
,
371
""
,
372
""
,
373
""
,
374
""
,
375
""
,
376
""
,
377
""
,
378
""
,
379
""
,
380
""
,
381
""
,
382
""
,
383
""
,
384
""
,
385
""
,
386
""
,
387
""
,
388
""
,
389
""
,
390
""
,
391
""
,
392
""
,
393
""
,
394
""
,
395
""
,
396
""
,
397
""
,
398
""
,
399
""
,
400
""
,
401
""
,
402
""
,
403
""
,
404
""
,
405
""
,
406
""
,
407
""
,
408
""
,
409
""
,
410
""
,
411
""
,
412
""
,
413
""
,
414
""
,
415
""
,
416
""
,
417
""
,
418
""
,
419
""
,
420
""
,
421
""
,
422
""
,
423
""
,
424
""
,
425
""
,
426
""
,
427
""
,
428
""
,
429
""
,
430
""
,
431
""
,
432
""
,
433
""
,
434
""
,
435
""
,
436
""
,
437
""
,
438
""
,
439
""
,
440
""
,
441
""
,
442
""
,
443
""
,
444
""
,
445
"pidfd_send_signal"
,
446
"io_uring_setup"
,
447
"io_uring_enter"
,
448
"io_uring_register"
,
449
"open_tree"
,
450
"move_mount"
,
451
"fsopen"
,
452
"fsconfig"
,
453
"fsmount"
,
454
"fspick"
,
455
"pidfd_open"
,
456
"clone3"
,
457
"openat2"
,
458
"pidfd_getfd"
,
459
};
460
static
const
size_t
syscall_names_x86_64_size =
461
sizeof
(syscall_names_x86_64) /
sizeof
(
char
*);
462
#endif
463
464
#endif
/* __SYSCALL_HELPERS_H */
include
eunomia
syscall_helper.h
Generated by
1.8.17