Skip to content

Commit 263e452

Browse files
committed
tools headers UAPI: Update process_madvise affected files
To pick the changes from: ecb8ac8 ("mm/madvise: introduce process_madvise() syscall: an external memory hinting API") That addresses these perf build warning: 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 Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Minchan Kim <minchan@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent e555b4b commit 263e452

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

‎tools/include/uapi/asm-generic/unistd.h‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,9 +857,11 @@ __SYSCALL(__NR_openat2, sys_openat2)
857857
__SYSCALL(__NR_pidfd_getfd, sys_pidfd_getfd)
858858
#define __NR_faccessat2 439
859859
__SYSCALL(__NR_faccessat2, sys_faccessat2)
860+
#define __NR_process_madvise 440
861+
__SYSCALL(__NR_process_madvise, sys_process_madvise)
860862

861863
#undef __NR_syscalls
862-
#define __NR_syscalls 440
864+
#define __NR_syscalls 441
863865

864866
/*
865867
* 32 bit systems traditionally used different

‎tools/perf/arch/x86/entry/syscalls/syscall_64.tbl‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,12 +361,13 @@
361361
437 common openat2 sys_openat2
362362
438 common pidfd_getfd sys_pidfd_getfd
363363
439 common faccessat2 sys_faccessat2
364+
440 common process_madvise sys_process_madvise
364365

365366
#
366-
# x32-specific system call numbers start at 512 to avoid cache impact
367-
# for native 64-bit operation. The __x32_compat_sys stubs are created
368-
# on-the-fly for compat_sys_*() compatibility system calls if X86_X32
369-
# is defined.
367+
# Due to a historical design error, certain syscalls are numbered differently
368+
# in x32 as compared to native x86_64. These syscalls have numbers 512-547.
369+
# Do not add new syscalls to this range. Numbers 548 and above are available
370+
# for non-x32 use.
370371
#
371372
512 x32 rt_sigaction compat_sys_rt_sigaction
372373
513 x32 rt_sigreturn compat_sys_x32_rt_sigreturn
@@ -404,3 +405,5 @@
404405
545 x32 execveat compat_sys_execveat
405406
546 x32 preadv2 compat_sys_preadv64v2
406407
547 x32 pwritev2 compat_sys_pwritev64v2
408+
# This is the end of the legacy x32 range. Numbers 548 and above are
409+
# not special and are not to be used for x32-specific syscalls.

0 commit comments

Comments
 (0)