[PATCH v2 0/7] perf build: Update kernel headers

From: Namhyung Kim

Date: Thu May 07 2026 - 03:26:50 EST


Hello,

This is to update copy of kernel headers for v7.1. I've updated ones
in the tools/perf/trace/beauty/ and left others which seem not to
affect perf syscall beautifiers. This is suggested by Linus to avoid
unnecessary builds of objtool and the kernel.

There are AMD IBS changes that are directly related to perf, but I
think Ravi is working on it with other Zen6 changes. So I didn't
include it here.

Due to the header file changes, some beautifier scripts for perf trace
are updated too. This was detected by Sashiko.

Also I removed the header difference output in the default perf build
and added a new make target to check it explicitly.

Thanks,
Namhyung


Namhyung Kim (7):
perf trace: Sync linux/socket.h with the kernel source
perf trace: Sync uapi/linux/fs.h with the kernel source
perf trace: Sync uapi/linux/mount.h with the kernel source
perf trace: Sync uapi/linux/sched.h with the kernel source
perf build: Add make check-headers target
perf trace: Add beautifier script for fsmount flags
perf trace: Update beautifier script for clone flags

tools/perf/Makefile | 5 ++++-
tools/perf/Makefile.perf | 8 ++++++-
tools/perf/builtin-trace.c | 7 +-----
tools/perf/trace/beauty/beauty.h | 3 +++
tools/perf/trace/beauty/clone.sh | 4 ++--
tools/perf/trace/beauty/fsmount.c | 18 ++++++++++++++-
tools/perf/trace/beauty/fsmount.sh | 11 +++-------
tools/perf/trace/beauty/fsmount_attr.sh | 22 +++++++++++++++++++
.../perf/trace/beauty/include/linux/socket.h | 2 +-
.../perf/trace/beauty/include/uapi/linux/fs.h | 12 ++++++++++
.../trace/beauty/include/uapi/linux/mount.h | 1 +
.../trace/beauty/include/uapi/linux/sched.h | 17 ++++++++++++--
12 files changed, 88 insertions(+), 22 deletions(-)
create mode 100644 tools/perf/trace/beauty/fsmount_attr.sh

--
2.53.0