@@ -124,15 +124,16 @@ void free_syscall_names(void)
124124}
125125
126126/*
127- * Syscall table for Linux x86_64.
127+ * Syscall table for Linux x86_64. Automatically generated from
128+ * https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/x86/entry/syscalls/syscall_64.tbl?h=v6.15.6
129+ * using the following commands:
128130 *
129- * Semi-automatically generated from strace/linux/x86_64/syscallent.h and
130- * linux/syscallent-common.h using the following commands:
131+ * cat arch/x86/entry/syscalls/syscall_64.tbl \
132+ * | awk 'BEGIN { print "static const char *syscall_names_x86_64[] = {" }
133+ * /^[0-9]/ { print "\t["$1"] = \""$3"\"," }
134+ * END { print "};" }'
131135 *
132- * awk -F\" '/SEN/{printf("%d %s\n", substr($0,2,3), $(NF-1));}' syscallent.h
133- * awk '/SEN/ { printf("%d %s\n", $3, $9); }' syscallent-common.h
134- *
135- * (The idea is taken from src/python/bcc/syscall.py.)
136+ * (The idea is taken from src/python/bcc/syscall.py)
136137 */
137138#ifdef __x86_64__
138139static const char * syscall_names_x86_64 [] = {
@@ -471,6 +472,7 @@ static const char *syscall_names_x86_64[] = {
471472 [332 ] = "statx" ,
472473 [333 ] = "io_pgetevents" ,
473474 [334 ] = "rseq" ,
475+ [335 ] = "uretprobe" ,
474476 [424 ] = "pidfd_send_signal" ,
475477 [425 ] = "io_uring_setup" ,
476478 [426 ] = "io_uring_enter" ,
@@ -483,8 +485,74 @@ static const char *syscall_names_x86_64[] = {
483485 [433 ] = "fspick" ,
484486 [434 ] = "pidfd_open" ,
485487 [435 ] = "clone3" ,
488+ [436 ] = "close_range" ,
486489 [437 ] = "openat2" ,
487490 [438 ] = "pidfd_getfd" ,
491+ [439 ] = "faccessat2" ,
492+ [440 ] = "process_madvise" ,
493+ [441 ] = "epoll_pwait2" ,
494+ [442 ] = "mount_setattr" ,
495+ [443 ] = "quotactl_fd" ,
496+ [444 ] = "landlock_create_ruleset" ,
497+ [445 ] = "landlock_add_rule" ,
498+ [446 ] = "landlock_restrict_self" ,
499+ [447 ] = "memfd_secret" ,
500+ [448 ] = "process_mrelease" ,
501+ [449 ] = "futex_waitv" ,
502+ [450 ] = "set_mempolicy_home_node" ,
503+ [451 ] = "cachestat" ,
504+ [452 ] = "fchmodat2" ,
505+ [453 ] = "map_shadow_stack" ,
506+ [454 ] = "futex_wake" ,
507+ [455 ] = "futex_wait" ,
508+ [456 ] = "futex_requeue" ,
509+ [457 ] = "statmount" ,
510+ [458 ] = "listmount" ,
511+ [459 ] = "lsm_get_self_attr" ,
512+ [460 ] = "lsm_set_self_attr" ,
513+ [461 ] = "lsm_list_modules" ,
514+ [462 ] = "mseal" ,
515+ [463 ] = "setxattrat" ,
516+ [464 ] = "getxattrat" ,
517+ [465 ] = "listxattrat" ,
518+ [466 ] = "removexattrat" ,
519+ [467 ] = "open_tree_attr" ,
520+ [512 ] = "rt_sigaction" ,
521+ [513 ] = "rt_sigreturn" ,
522+ [514 ] = "ioctl" ,
523+ [515 ] = "readv" ,
524+ [516 ] = "writev" ,
525+ [517 ] = "recvfrom" ,
526+ [518 ] = "sendmsg" ,
527+ [519 ] = "recvmsg" ,
528+ [520 ] = "execve" ,
529+ [521 ] = "ptrace" ,
530+ [522 ] = "rt_sigpending" ,
531+ [523 ] = "rt_sigtimedwait" ,
532+ [524 ] = "rt_sigqueueinfo" ,
533+ [525 ] = "sigaltstack" ,
534+ [526 ] = "timer_create" ,
535+ [527 ] = "mq_notify" ,
536+ [528 ] = "kexec_load" ,
537+ [529 ] = "waitid" ,
538+ [530 ] = "set_robust_list" ,
539+ [531 ] = "get_robust_list" ,
540+ [532 ] = "vmsplice" ,
541+ [533 ] = "move_pages" ,
542+ [534 ] = "preadv" ,
543+ [535 ] = "pwritev" ,
544+ [536 ] = "rt_tgsigqueueinfo" ,
545+ [537 ] = "recvmmsg" ,
546+ [538 ] = "sendmmsg" ,
547+ [539 ] = "process_vm_readv" ,
548+ [540 ] = "process_vm_writev" ,
549+ [541 ] = "setsockopt" ,
550+ [542 ] = "getsockopt" ,
551+ [543 ] = "io_setup" ,
552+ [544 ] = "io_submit" ,
553+ [545 ] = "execveat" ,
554+ [546 ] = "preadv2" ,
555+ [547 ] = "pwritev2" ,
488556};
489557size_t syscall_names_x86_64_size = sizeof (syscall_names_x86_64 )/sizeof (char * );
490558#elif defined(__aarch64__ ) || defined(__riscv ) || defined(__loongarch64 )
0 commit comments