Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tools headers UAPI: Sync files changed by new process_mrelease syscall and the removal of some compat entry points

To pick the changes in these csets:

59ab844eed9c6b01 ("compat: remove some compat entry points")
dce49103962840dd ("mm: wire up syscall process_mrelease")
b48c7236b13cb5ef ("exit/bdflush: Remove the deprecated bdflush system call")

That add support for this new syscall in tools such as 'perf trace'.

For instance, this is now possible:

# perf trace -v -e process_mrelease
event qualifier tracepoint filter: (common_pid != 19351 && common_pid != 9112) && (id == 448)
^C#

That is the filter expression attached to the raw_syscalls:sys_{enter,exit}
tracepoints.

$ grep process_mrelease tools/perf/arch/x86/entry/syscalls/syscall_64.tbl
448 common process_mrelease sys_process_mrelease
$

This addresses these perf build warnings:

Warning: Kernel ABI header at 'tools/include/uapi/asm-generic/unistd.h' differs from latest version at 'include/uapi/asm-generic/unistd.h'
diff -u tools/include/uapi/asm-generic/unistd.h include/uapi/asm-generic/unistd.h
Warning: Kernel ABI header at 'tools/perf/arch/x86/entry/syscalls/syscall_64.tbl' differs from latest version at 'arch/x86/entry/syscalls/syscall_64.tbl'
diff -u tools/perf/arch/x86/entry/syscalls/syscall_64.tbl arch/x86/entry/syscalls/syscall_64.tbl
Warning: Kernel ABI header at 'tools/perf/arch/powerpc/entry/syscalls/syscall.tbl' differs from latest version at 'arch/powerpc/kernel/syscalls/syscall.tbl'
diff -u tools/perf/arch/powerpc/entry/syscalls/syscall.tbl arch/powerpc/kernel/syscalls/syscall.tbl
Warning: Kernel ABI header at 'tools/perf/arch/s390/entry/syscalls/syscall.tbl' differs from latest version at 'arch/s390/kernel/syscalls/syscall.tbl'
diff -u tools/perf/arch/s390/entry/syscalls/syscall.tbl arch/s390/kernel/syscalls/syscall.tbl
Warning: Kernel ABI header at 'tools/perf/arch/mips/entry/syscalls/syscall_n64.tbl' differs from latest version at 'arch/mips/kernel/syscalls/syscall_n64.tbl'
diff -u tools/perf/arch/mips/entry/syscalls/syscall_n64.tbl arch/mips/kernel/syscalls/syscall_n64.tbl

Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+27 -18
+8 -6
tools/include/uapi/asm-generic/unistd.h
··· 673 673 #define __NR_remap_file_pages 234 674 674 __SYSCALL(__NR_remap_file_pages, sys_remap_file_pages) 675 675 #define __NR_mbind 235 676 - __SC_COMP(__NR_mbind, sys_mbind, compat_sys_mbind) 676 + __SYSCALL(__NR_mbind, sys_mbind) 677 677 #define __NR_get_mempolicy 236 678 - __SC_COMP(__NR_get_mempolicy, sys_get_mempolicy, compat_sys_get_mempolicy) 678 + __SYSCALL(__NR_get_mempolicy, sys_get_mempolicy) 679 679 #define __NR_set_mempolicy 237 680 - __SC_COMP(__NR_set_mempolicy, sys_set_mempolicy, compat_sys_set_mempolicy) 680 + __SYSCALL(__NR_set_mempolicy, sys_set_mempolicy) 681 681 #define __NR_migrate_pages 238 682 - __SC_COMP(__NR_migrate_pages, sys_migrate_pages, compat_sys_migrate_pages) 682 + __SYSCALL(__NR_migrate_pages, sys_migrate_pages) 683 683 #define __NR_move_pages 239 684 - __SC_COMP(__NR_move_pages, sys_move_pages, compat_sys_move_pages) 684 + __SYSCALL(__NR_move_pages, sys_move_pages) 685 685 #endif 686 686 687 687 #define __NR_rt_tgsigqueueinfo 240 ··· 877 877 #define __NR_memfd_secret 447 878 878 __SYSCALL(__NR_memfd_secret, sys_memfd_secret) 879 879 #endif 880 + #define __NR_process_mrelease 448 881 + __SYSCALL(__NR_process_mrelease, sys_process_mrelease) 880 882 881 883 #undef __NR_syscalls 882 - #define __NR_syscalls 448 884 + #define __NR_syscalls 449 883 885 884 886 /* 885 887 * 32 bit systems traditionally used different
+2
tools/perf/arch/mips/entry/syscalls/syscall_n64.tbl
··· 361 361 444 n64 landlock_create_ruleset sys_landlock_create_ruleset 362 362 445 n64 landlock_add_rule sys_landlock_add_rule 363 363 446 n64 landlock_restrict_self sys_landlock_restrict_self 364 + # 447 reserved for memfd_secret 365 + 448 n64 process_mrelease sys_process_mrelease
+7 -5
tools/perf/arch/powerpc/entry/syscalls/syscall.tbl
··· 330 330 256 64 sys_debug_setcontext sys_ni_syscall 331 331 256 spu sys_debug_setcontext sys_ni_syscall 332 332 # 257 reserved for vserver 333 - 258 nospu migrate_pages sys_migrate_pages compat_sys_migrate_pages 334 - 259 nospu mbind sys_mbind compat_sys_mbind 335 - 260 nospu get_mempolicy sys_get_mempolicy compat_sys_get_mempolicy 336 - 261 nospu set_mempolicy sys_set_mempolicy compat_sys_set_mempolicy 333 + 258 nospu migrate_pages sys_migrate_pages 334 + 259 nospu mbind sys_mbind 335 + 260 nospu get_mempolicy sys_get_mempolicy 336 + 261 nospu set_mempolicy sys_set_mempolicy 337 337 262 nospu mq_open sys_mq_open compat_sys_mq_open 338 338 263 nospu mq_unlink sys_mq_unlink 339 339 264 32 mq_timedsend sys_mq_timedsend_time32 ··· 381 381 298 common faccessat sys_faccessat 382 382 299 common get_robust_list sys_get_robust_list compat_sys_get_robust_list 383 383 300 common set_robust_list sys_set_robust_list compat_sys_set_robust_list 384 - 301 common move_pages sys_move_pages compat_sys_move_pages 384 + 301 common move_pages sys_move_pages 385 385 302 common getcpu sys_getcpu 386 386 303 nospu epoll_pwait sys_epoll_pwait compat_sys_epoll_pwait 387 387 304 32 utimensat sys_utimensat_time32 ··· 526 526 444 common landlock_create_ruleset sys_landlock_create_ruleset 527 527 445 common landlock_add_rule sys_landlock_add_rule 528 528 446 common landlock_restrict_self sys_landlock_restrict_self 529 + # 447 reserved for memfd_secret 530 + 448 common process_mrelease sys_process_mrelease
+8 -6
tools/perf/arch/s390/entry/syscalls/syscall.tbl
··· 122 122 131 common quotactl sys_quotactl sys_quotactl 123 123 132 common getpgid sys_getpgid sys_getpgid 124 124 133 common fchdir sys_fchdir sys_fchdir 125 - 134 common bdflush - - 125 + 134 common bdflush sys_ni_syscall sys_ni_syscall 126 126 135 common sysfs sys_sysfs sys_sysfs 127 127 136 common personality sys_s390_personality sys_s390_personality 128 128 137 common afs_syscall - - ··· 274 274 265 common statfs64 sys_statfs64 compat_sys_statfs64 275 275 266 common fstatfs64 sys_fstatfs64 compat_sys_fstatfs64 276 276 267 common remap_file_pages sys_remap_file_pages sys_remap_file_pages 277 - 268 common mbind sys_mbind compat_sys_mbind 278 - 269 common get_mempolicy sys_get_mempolicy compat_sys_get_mempolicy 279 - 270 common set_mempolicy sys_set_mempolicy compat_sys_set_mempolicy 277 + 268 common mbind sys_mbind sys_mbind 278 + 269 common get_mempolicy sys_get_mempolicy sys_get_mempolicy 279 + 270 common set_mempolicy sys_set_mempolicy sys_set_mempolicy 280 280 271 common mq_open sys_mq_open compat_sys_mq_open 281 281 272 common mq_unlink sys_mq_unlink sys_mq_unlink 282 282 273 common mq_timedsend sys_mq_timedsend sys_mq_timedsend_time32 ··· 293 293 284 common inotify_init sys_inotify_init sys_inotify_init 294 294 285 common inotify_add_watch sys_inotify_add_watch sys_inotify_add_watch 295 295 286 common inotify_rm_watch sys_inotify_rm_watch sys_inotify_rm_watch 296 - 287 common migrate_pages sys_migrate_pages compat_sys_migrate_pages 296 + 287 common migrate_pages sys_migrate_pages sys_migrate_pages 297 297 288 common openat sys_openat compat_sys_openat 298 298 289 common mkdirat sys_mkdirat sys_mkdirat 299 299 290 common mknodat sys_mknodat sys_mknodat ··· 317 317 307 common sync_file_range sys_sync_file_range compat_sys_s390_sync_file_range 318 318 308 common tee sys_tee sys_tee 319 319 309 common vmsplice sys_vmsplice sys_vmsplice 320 - 310 common move_pages sys_move_pages compat_sys_move_pages 320 + 310 common move_pages sys_move_pages sys_move_pages 321 321 311 common getcpu sys_getcpu sys_getcpu 322 322 312 common epoll_pwait sys_epoll_pwait compat_sys_epoll_pwait 323 323 313 common utimes sys_utimes sys_utimes_time32 ··· 449 449 444 common landlock_create_ruleset sys_landlock_create_ruleset sys_landlock_create_ruleset 450 450 445 common landlock_add_rule sys_landlock_add_rule sys_landlock_add_rule 451 451 446 common landlock_restrict_self sys_landlock_restrict_self sys_landlock_restrict_self 452 + # 447 reserved for memfd_secret 453 + 448 common process_mrelease sys_process_mrelease sys_process_mrelease
+2 -1
tools/perf/arch/x86/entry/syscalls/syscall_64.tbl
··· 369 369 445 common landlock_add_rule sys_landlock_add_rule 370 370 446 common landlock_restrict_self sys_landlock_restrict_self 371 371 447 common memfd_secret sys_memfd_secret 372 + 448 common process_mrelease sys_process_mrelease 372 373 373 374 # 374 375 # Due to a historical design error, certain syscalls are numbered differently ··· 398 397 530 x32 set_robust_list compat_sys_set_robust_list 399 398 531 x32 get_robust_list compat_sys_get_robust_list 400 399 532 x32 vmsplice sys_vmsplice 401 - 533 x32 move_pages compat_sys_move_pages 400 + 533 x32 move_pages sys_move_pages 402 401 534 x32 preadv compat_sys_preadv64 403 402 535 x32 pwritev compat_sys_pwritev64 404 403 536 x32 rt_tgsigqueueinfo compat_sys_rt_tgsigqueueinfo