[PATCHSET 00/10] tools headers: Sync header files with the kernel

From: Namhyung Kim
Date: Wed Apr 09 2025 - 20:11:38 EST


Hello,

FYI I'm carrying these changes in the perf tools tree so make perf trace
beautifiers get the recent changes in syscall, ioctl, and so on. For the
background, please see tools/include/uapi/README.

Still there are some remaining items but it requires a bit more changes.
So I'd like to leave them for the next cycle.

Warning: Kernel ABI header differences:
diff -u tools/include/uapi/linux/bits.h include/uapi/linux/bits.h
diff -u tools/include/linux/bits.h include/linux/bits.h
diff -u tools/arch/arm64/include/asm/cputype.h arch/arm64/include/asm/cputype.h

Thanks,
Namhyung


Namhyung Kim (10):
tools headers: Update the KVM headers with the kernel sources
tools headers: Update the socket headers with the kernel sources
tools headers: Update the uapi/linux/perf_event.h copy with the kernel sources
tools headers: Update the VFS headers with the kernel sources
tools headers: Update the syscall table with the kernel sources
tools headers: Update the uapi/linux/prctl.h copy with the kernel sources
tools headers: Update the uapi/asm-generic/mman-common.h copy with the kernel sources
tools headers: Update the linux/unaligned.h copy with the kernel sources
tools headers: Update the x86 headers with the kernel sources
tools headers: Update the arch/x86/lib/memset_64.S copy with the kernel sources

tools/arch/arm64/include/uapi/asm/kvm.h | 5 +-
tools/arch/arm64/include/uapi/asm/unistd.h | 24 +----
tools/arch/x86/include/asm/cpufeatures.h | 28 ++++--
tools/arch/x86/include/asm/msr-index.h | 31 +++---
tools/arch/x86/include/uapi/asm/kvm.h | 4 +
tools/arch/x86/include/uapi/asm/svm.h | 2 +
tools/arch/x86/lib/memset_64.S | 3 +-
tools/include/linux/cfi_types.h | 45 +++++++++
tools/include/uapi/asm-generic/mman-common.h | 1 +
tools/include/uapi/asm-generic/unistd.h | 4 +-
tools/include/uapi/linux/in.h | 2 +
tools/include/uapi/linux/kvm.h | 9 +-
tools/include/uapi/linux/perf_event.h | 2 +
tools/include/uapi/linux/stat.h | 99 ++++++++++++++-----
.../perf/arch/arm/entry/syscalls/syscall.tbl | 1 +
.../arch/mips/entry/syscalls/syscall_n64.tbl | 1 +
.../arch/powerpc/entry/syscalls/syscall.tbl | 1 +
.../perf/arch/s390/entry/syscalls/syscall.tbl | 1 +
tools/perf/arch/sh/entry/syscalls/syscall.tbl | 1 +
.../arch/sparc/entry/syscalls/syscall.tbl | 1 +
.../arch/x86/entry/syscalls/syscall_32.tbl | 3 +-
.../arch/x86/entry/syscalls/syscall_64.tbl | 1 +
.../arch/xtensa/entry/syscalls/syscall.tbl | 1 +
tools/perf/check-headers.sh | 1 +
.../perf/trace/beauty/include/linux/socket.h | 2 +
.../trace/beauty/include/uapi/linux/fcntl.h | 4 +
.../perf/trace/beauty/include/uapi/linux/fs.h | 21 +++-
.../trace/beauty/include/uapi/linux/mount.h | 10 +-
.../trace/beauty/include/uapi/linux/prctl.h | 11 +++
.../trace/beauty/include/uapi/linux/stat.h | 99 ++++++++++++++-----
.../trace/beauty/include/uapi/sound/asound.h | 8 +-
tools/scripts/syscall.tbl | 1 +
32 files changed, 318 insertions(+), 109 deletions(-)
create mode 100644 tools/include/linux/cfi_types.h


base-commit: 0af2f6be1b4281385b618cb86ad946eded089ac8
--
2.49.0.504.g3bcea36a83-goog