]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
tools headers: Update the syscall table with the kernel sources
authorNamhyung Kim <namhyung@kernel.org>
Thu, 10 Apr 2025 00:11:20 +0000 (17:11 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 10 Apr 2025 16:28:24 +0000 (09:28 -0700)
To pick up the changes in:

  c4a16820d9019940 fs: add open_tree_attr()
  2df1ad0d25803399 x86/arch_prctl: Simplify sys_arch_prctl()
  e632bca07c8eef1d arm64: generate 64-bit syscall.tbl

This is basically to support the new open_tree_attr syscall.  But it
also needs to update asm-generic unistd.h header to get the new syscall
number.  And arm64 unistd.h header was converted to use the generic
64-bit header.

Addressing this perf tools build warning:

  Warning: Kernel ABI header differences:
    diff -u tools/scripts/syscall.tbl scripts/syscall.tbl
    diff -u tools/perf/arch/x86/entry/syscalls/syscall_32.tbl arch/x86/entry/syscalls/syscall_32.tbl
    diff -u tools/perf/arch/x86/entry/syscalls/syscall_64.tbl arch/x86/entry/syscalls/syscall_64.tbl
    diff -u tools/perf/arch/powerpc/entry/syscalls/syscall.tbl arch/powerpc/kernel/syscalls/syscall.tbl
    diff -u tools/perf/arch/s390/entry/syscalls/syscall.tbl arch/s390/kernel/syscalls/syscall.tbl
    diff -u tools/perf/arch/mips/entry/syscalls/syscall_n64.tbl arch/mips/kernel/syscalls/syscall_n64.tbl
    diff -u tools/perf/arch/arm/entry/syscalls/syscall.tbl arch/arm/tools/syscall.tbl
    diff -u tools/perf/arch/sh/entry/syscalls/syscall.tbl arch/sh/kernel/syscalls/syscall.tbl
    diff -u tools/perf/arch/sparc/entry/syscalls/syscall.tbl arch/sparc/kernel/syscalls/syscall.tbl
    diff -u tools/perf/arch/xtensa/entry/syscalls/syscall.tbl arch/xtensa/kernel/syscalls/syscall.tbl
    diff -u tools/arch/arm64/include/uapi/asm/unistd.h arch/arm64/include/uapi/asm/unistd.h
    diff -u tools/include/uapi/asm-generic/unistd.h include/uapi/asm-generic/unistd.h

Please see tools/include/uapi/README for further details.

Acked-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Cc: linux-arch@vger.kernel.org
Link: https://lore.kernel.org/r/20250410001125.391820-6-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
12 files changed:
tools/arch/arm64/include/uapi/asm/unistd.h
tools/include/uapi/asm-generic/unistd.h
tools/perf/arch/arm/entry/syscalls/syscall.tbl
tools/perf/arch/mips/entry/syscalls/syscall_n64.tbl
tools/perf/arch/powerpc/entry/syscalls/syscall.tbl
tools/perf/arch/s390/entry/syscalls/syscall.tbl
tools/perf/arch/sh/entry/syscalls/syscall.tbl
tools/perf/arch/sparc/entry/syscalls/syscall.tbl
tools/perf/arch/x86/entry/syscalls/syscall_32.tbl
tools/perf/arch/x86/entry/syscalls/syscall_64.tbl
tools/perf/arch/xtensa/entry/syscalls/syscall.tbl
tools/scripts/syscall.tbl

index 9306726337fe005e3cf3e1ffd38dc6356191fa95..df36f23876e863ff0a9e88473d5339f7ab69516d 100644 (file)
@@ -1,24 +1,2 @@
 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
-/*
- * Copyright (C) 2012 ARM Ltd.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-#define __ARCH_WANT_RENAMEAT
-#define __ARCH_WANT_NEW_STAT
-#define __ARCH_WANT_SET_GET_RLIMIT
-#define __ARCH_WANT_TIME32_SYSCALLS
-#define __ARCH_WANT_MEMFD_SECRET
-
-#include <asm-generic/unistd.h>
+#include <asm/unistd_64.h>
index 88dc393c2bca38c0fa1b3fae579f7cfe4931223c..2892a45023af6d3eb941623d4fed04841ab07e02 100644 (file)
@@ -849,9 +849,11 @@ __SYSCALL(__NR_getxattrat, sys_getxattrat)
 __SYSCALL(__NR_listxattrat, sys_listxattrat)
 #define __NR_removexattrat 466
 __SYSCALL(__NR_removexattrat, sys_removexattrat)
+#define __NR_open_tree_attr 467
+__SYSCALL(__NR_open_tree_attr, sys_open_tree_attr)
 
 #undef __NR_syscalls
-#define __NR_syscalls 467
+#define __NR_syscalls 468
 
 /*
  * 32 bit systems traditionally used different
index 49eeb2ad8dbd8e074c6240417693f23fb328afa8..27c1d5ebcd91c8c296dc6676307f66bfdf4ab78d 100644 (file)
 464    common  getxattrat                      sys_getxattrat
 465    common  listxattrat                     sys_listxattrat
 466    common  removexattrat                   sys_removexattrat
+467    common  open_tree_attr                  sys_open_tree_attr
index c844cd5cda620b2809a397cdd6f4315ab6a1bfe2..1e8c44c7b61492eabf00c777831e457a7a6e579c 100644 (file)
 464    n64     getxattrat                      sys_getxattrat
 465    n64     listxattrat                     sys_listxattrat
 466    n64     removexattrat                   sys_removexattrat
+467    n64     open_tree_attr                  sys_open_tree_attr
index d8b4ab78bef076bd50d49b87dea5060fd8c1686a..9a084bdb892694bc562f514b55212d167cbac12f 100644 (file)
 464    common  getxattrat                      sys_getxattrat
 465    common  listxattrat                     sys_listxattrat
 466    common  removexattrat                   sys_removexattrat
+467    common  open_tree_attr                  sys_open_tree_attr
index e9115b4d8b635b846e5c9ad6ce229605323723a5..a4569b96ef06c54ce7aa795d039541c90a38284f 100644 (file)
 464  common    getxattrat              sys_getxattrat                  sys_getxattrat
 465  common    listxattrat             sys_listxattrat                 sys_listxattrat
 466  common    removexattrat           sys_removexattrat               sys_removexattrat
+467  common    open_tree_attr          sys_open_tree_attr              sys_open_tree_attr
index c8cad33bf250ea110de37bd1407f5a43ec5e38f2..52a7652fcff6394b96ace1f3b0ed72250ee5e669 100644 (file)
 464    common  getxattrat                      sys_getxattrat
 465    common  listxattrat                     sys_listxattrat
 466    common  removexattrat                   sys_removexattrat
+467    common  open_tree_attr                  sys_open_tree_attr
index 727f99d333b304b3db0711953a3d91ece18a28eb..83e45eb6c095a36baaf749927628e6052fe900e6 100644 (file)
 464    common  getxattrat                      sys_getxattrat
 465    common  listxattrat                     sys_listxattrat
 466    common  removexattrat                   sys_removexattrat
+467    common  open_tree_attr                  sys_open_tree_attr
index 4d0fb2fba7e208ae9455459afe11e277321d9f74..ac007ea00979dc28b0ef7c002a0615ce86dd3101 100644 (file)
 381    i386    pkey_alloc              sys_pkey_alloc
 382    i386    pkey_free               sys_pkey_free
 383    i386    statx                   sys_statx
-384    i386    arch_prctl              sys_arch_prctl                  compat_sys_arch_prctl
+384    i386    arch_prctl              sys_arch_prctl
 385    i386    io_pgetevents           sys_io_pgetevents_time32        compat_sys_io_pgetevents
 386    i386    rseq                    sys_rseq
 393    i386    semget                  sys_semget
 464    i386    getxattrat              sys_getxattrat
 465    i386    listxattrat             sys_listxattrat
 466    i386    removexattrat           sys_removexattrat
+467    i386    open_tree_attr          sys_open_tree_attr
index 5eb708bff1c791debd6cfc5322583b2ae53f6437..cfb5ca41e30de1a4e073750096f5b51a2ec137d2 100644 (file)
 464    common  getxattrat              sys_getxattrat
 465    common  listxattrat             sys_listxattrat
 466    common  removexattrat           sys_removexattrat
+467    common  open_tree_attr          sys_open_tree_attr
 
 #
 # Due to a historical design error, certain syscalls are numbered differently
index 37effc1b134eea061f2c350c1d68b4436b65a4dd..f657a77314f8667fa019a01e10c84ea270024adc 100644 (file)
 464    common  getxattrat                      sys_getxattrat
 465    common  listxattrat                     sys_listxattrat
 466    common  removexattrat                   sys_removexattrat
+467    common  open_tree_attr                  sys_open_tree_attr
index ebbdb3c42e9f74613b003014c0baf44c842bb756..580b4e246aecd5f07d542943ba68fc4ed5961660 100644 (file)
 464    common  getxattrat                      sys_getxattrat
 465    common  listxattrat                     sys_listxattrat
 466    common  removexattrat                   sys_removexattrat
+467    common  open_tree_attr                  sys_open_tree_attr