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

Namhyung Kim posted 7 patches 1 month ago
tools/perf/Makefile                           |  5 ++++-
tools/perf/Makefile.perf                      |  9 +++++++-
tools/perf/builtin-trace.c                    |  9 +++-----
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, 93 insertions(+), 20 deletions(-)
create mode 100644 tools/perf/trace/beauty/fsmount_attr.sh
[PATCH v3 0/7] perf build: Update kernel headers
Posted by Namhyung Kim 1 month ago
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                      |  9 +++++++-
 tools/perf/builtin-trace.c                    |  9 +++-----
 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, 93 insertions(+), 20 deletions(-)
 create mode 100644 tools/perf/trace/beauty/fsmount_attr.sh

-- 
2.54.0
Re: [PATCH v3 0/7] perf build: Update kernel headers
Posted by Ian Rogers 1 month ago
On Sun, May 10, 2026 at 1:23 PM Namhyung Kim <namhyung@kernel.org> wrote:
>
> 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

There were some issues with sashiko and the reviews are still pending:
https://sashiko.dev/#/patchset/20260510202346.49853-1-namhyung%40kernel.org

Manually looking through the changes they all LGTM so for the series:

Reviewed-by: Ian Rogers <irogers@google.com>

Thanks,
Ian

> 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                      |  9 +++++++-
>  tools/perf/builtin-trace.c                    |  9 +++-----
>  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, 93 insertions(+), 20 deletions(-)
>  create mode 100644 tools/perf/trace/beauty/fsmount_attr.sh
>
> --
> 2.54.0
>