History

tools headers: Update the syscall table with the kernel sources

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.

Namhyung Kim committed 1 year ago

Commit 22f72081 parent af74e5f12 files · +15 −25Browse files

Unified · Split

12 files
  1. tools/arch/arm64/include/uapi/asm/unistd.h +1 −23
  2. tools/include/uapi/asm-generic/unistd.h +3 −1
  3. tools/perf/arch/arm/entry/syscalls/syscall.tbl +1 −0
  4. tools/perf/arch/mips/entry/syscalls/syscall_n64.tbl +1 −0
  5. tools/perf/arch/powerpc/entry/syscalls/syscall.tbl +1 −0
  6. tools/perf/arch/s390/entry/syscalls/syscall.tbl +1 −0
  7. tools/perf/arch/sh/entry/syscalls/syscall.tbl +1 −0
  8. tools/perf/arch/sparc/entry/syscalls/syscall.tbl +1 −0
  9. tools/perf/arch/x86/entry/syscalls/syscall_32.tbl +2 −1
  10. tools/perf/arch/x86/entry/syscalls/syscall_64.tbl +1 −0
  11. tools/perf/arch/xtensa/entry/syscalls/syscall.tbl +1 −0
  12. tools/scripts/syscall.tbl +1 −0
tools/arch/arm64/include/uapi/asm/unistd.h+1−23
@@ -1,24 +1,2 @@
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2/*2#include <asm/unistd_64.h>
3 * Copyright (C) 2012 ARM Ltd.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#define __ARCH_WANT_RENAMEAT
19#define __ARCH_WANT_NEW_STAT
20#define __ARCH_WANT_SET_GET_RLIMIT
21#define __ARCH_WANT_TIME32_SYSCALLS
22#define __ARCH_WANT_MEMFD_SECRET
23
24#include <asm-generic/unistd.h>
tools/include/uapi/asm-generic/unistd.h+3−1
@@ -849,9 +849,11 @@ __SYSCALL(__NR_getxattrat, sys_getxattrat) · 848 unmodified lines
849__SYSCALL(__NR_listxattrat, sys_listxattrat)849__SYSCALL(__NR_listxattrat, sys_listxattrat)
850#define __NR_removexattrat 466850#define __NR_removexattrat 466
851__SYSCALL(__NR_removexattrat, sys_removexattrat)851__SYSCALL(__NR_removexattrat, sys_removexattrat)
852#define __NR_open_tree_attr 467
853__SYSCALL(__NR_open_tree_attr, sys_open_tree_attr)
852 854
853#undef __NR_syscalls855#undef __NR_syscalls
854#define __NR_syscalls 467856#define __NR_syscalls 468
855 857
856/*858/*
857 * 32 bit systems traditionally used different859 * 32 bit systems traditionally used different
tools/perf/arch/arm/entry/syscalls/syscall.tbl+1−0
@@ -481,3 +481,4 @@ · 480 unmodified lines
481464 common getxattrat sys_getxattrat481464 common getxattrat sys_getxattrat
482465 common listxattrat sys_listxattrat482465 common listxattrat sys_listxattrat
483466 common removexattrat sys_removexattrat483466 common removexattrat sys_removexattrat
484467 common open_tree_attr sys_open_tree_attr
tools/perf/arch/mips/entry/syscalls/syscall_n64.tbl+1−0
@@ -381,3 +381,4 @@ · 380 unmodified lines
381464 n64 getxattrat sys_getxattrat381464 n64 getxattrat sys_getxattrat
382465 n64 listxattrat sys_listxattrat382465 n64 listxattrat sys_listxattrat
383466 n64 removexattrat sys_removexattrat383466 n64 removexattrat sys_removexattrat
384467 n64 open_tree_attr sys_open_tree_attr
tools/perf/arch/powerpc/entry/syscalls/syscall.tbl+1−0
@@ -557,3 +557,4 @@ · 556 unmodified lines
557464 common getxattrat sys_getxattrat557464 common getxattrat sys_getxattrat
558465 common listxattrat sys_listxattrat558465 common listxattrat sys_listxattrat
559466 common removexattrat sys_removexattrat559466 common removexattrat sys_removexattrat
560467 common open_tree_attr sys_open_tree_attr
tools/perf/arch/s390/entry/syscalls/syscall.tbl+1−0
@@ -469,3 +469,4 @@ · 468 unmodified lines
469464 common getxattrat sys_getxattrat sys_getxattrat469464 common getxattrat sys_getxattrat sys_getxattrat
470465 common listxattrat sys_listxattrat sys_listxattrat470465 common listxattrat sys_listxattrat sys_listxattrat
471466 common removexattrat sys_removexattrat sys_removexattrat471466 common removexattrat sys_removexattrat sys_removexattrat
472467 common open_tree_attr sys_open_tree_attr sys_open_tree_attr
tools/perf/arch/sh/entry/syscalls/syscall.tbl+1−0
@@ -470,3 +470,4 @@ · 469 unmodified lines
470464 common getxattrat sys_getxattrat470464 common getxattrat sys_getxattrat
471465 common listxattrat sys_listxattrat471465 common listxattrat sys_listxattrat
472466 common removexattrat sys_removexattrat472466 common removexattrat sys_removexattrat
473467 common open_tree_attr sys_open_tree_attr
tools/perf/arch/sparc/entry/syscalls/syscall.tbl+1−0
@@ -512,3 +512,4 @@ · 511 unmodified lines
512464 common getxattrat sys_getxattrat512464 common getxattrat sys_getxattrat
513465 common listxattrat sys_listxattrat513465 common listxattrat sys_listxattrat
514466 common removexattrat sys_removexattrat514466 common removexattrat sys_removexattrat
515467 common open_tree_attr sys_open_tree_attr
tools/perf/arch/x86/entry/syscalls/syscall_32.tbl+2−1
@@ -396,7 +396,7 @@ · 395 unmodified lines
396381 i386 pkey_alloc sys_pkey_alloc396381 i386 pkey_alloc sys_pkey_alloc
397382 i386 pkey_free sys_pkey_free397382 i386 pkey_free sys_pkey_free
398383 i386 statx sys_statx398383 i386 statx sys_statx
399384 i386 arch_prctl sys_arch_prctl compat_sys_arch_prctl399384 i386 arch_prctl sys_arch_prctl
400385 i386 io_pgetevents sys_io_pgetevents_time32 compat_sys_io_pgetevents400385 i386 io_pgetevents sys_io_pgetevents_time32 compat_sys_io_pgetevents
401386 i386 rseq sys_rseq401386 i386 rseq sys_rseq
402393 i386 semget sys_semget402393 i386 semget sys_semget
@@ -472,3 +472,4 @@ · 69 unmodified lines
472464 i386 getxattrat sys_getxattrat472464 i386 getxattrat sys_getxattrat
473465 i386 listxattrat sys_listxattrat473465 i386 listxattrat sys_listxattrat
474466 i386 removexattrat sys_removexattrat474466 i386 removexattrat sys_removexattrat
475467 i386 open_tree_attr sys_open_tree_attr
tools/perf/arch/x86/entry/syscalls/syscall_64.tbl+1−0
@@ -390,6 +390,7 @@ · 389 unmodified lines
390464 common getxattrat sys_getxattrat390464 common getxattrat sys_getxattrat
391465 common listxattrat sys_listxattrat391465 common listxattrat sys_listxattrat
392466 common removexattrat sys_removexattrat392466 common removexattrat sys_removexattrat
393467 common open_tree_attr sys_open_tree_attr
393 394
394#395#
395# Due to a historical design error, certain syscalls are numbered differently396# Due to a historical design error, certain syscalls are numbered differently
tools/perf/arch/xtensa/entry/syscalls/syscall.tbl+1−0
@@ -437,3 +437,4 @@ · 436 unmodified lines
437464 common getxattrat sys_getxattrat437464 common getxattrat sys_getxattrat
438465 common listxattrat sys_listxattrat438465 common listxattrat sys_listxattrat
439466 common removexattrat sys_removexattrat439466 common removexattrat sys_removexattrat
440467 common open_tree_attr sys_open_tree_attr
tools/scripts/syscall.tbl+1−0
@@ -407,3 +407,4 @@ · 406 unmodified lines
407464 common getxattrat sys_getxattrat407464 common getxattrat sys_getxattrat
408465 common listxattrat sys_listxattrat408465 common listxattrat sys_listxattrat
409466 common removexattrat sys_removexattrat409466 common removexattrat sys_removexattrat
410467 common open_tree_attr sys_open_tree_attr