From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Namhyung Kim <namhyung@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
James Clark <james.clark@linaro.org>,
Jiri Olsa <jolsa@kernel.org>, Ian Rogers <irogers@google.com>,
Adrian Hunter <adrian.hunter@intel.com>,
Clark Williams <williams@redhat.com>,
linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org,
Arnaldo Carvalho de Melo <acme@kernel.org>,
Amit Machhiwal <amachhiw@linux.ibm.com>,
Borislav Petkov <bp@alien8.de>,
Christian Brauner <brauner@kernel.org>,
Congkai Tan <congkai@amazon.com>,
Ewan Hai-oc <ewanhai-oc@zhaoxin.com>,
Hemanth Selam <hemanth.selam@gmail.com>,
Johannes Weiner <hannes@cmpxchg.org>,
Kir Kolyshkin <kolyshkin@gmail.com>,
Kiryl Shutsemau <kas@kernel.org>,
Maciej Strozek <mstrozek@opensource.cirrus.com>,
Mahe Tardy <mahe.tardy@gmail.com>,
Ricardo Neri <ricardo.neri-calderon@linux.intel.com>,
Takashi Iwai <tiwai@suse.de>,
Yuyang Huang <sigefriedhyy@gmail.com>
Subject: [PATCH v1 00/12] perf tools: Add a script to sync the header copies with the kernel sources
Date: Wed, 21 Oct 2026 18:29:54 -0300 [thread overview]
Message-ID: <20261021213007.21046-1-acme@kernel.org> (raw)
Hi,
The tools/ tree carries copies of kernel headers that are refreshed by
hand: check-headers points at the stale ones, then one looks up the
kernel commits that changed each of them, pastes the relevant bits into
the commit message, regenerates the beauty string tables, builds the
consumers and commits, one header at a time.
This adds tools/perf/scripts/sync-headers.sh, also available as 'make -C
tools/perf sync-headers', and patches 2-12 are what it produced for this
branch: for each stale header it finds the kernel commits since the last
sync, copies the file, runs the beauty scripts before and after for the
beauty copies, builds perf and the other consumers of the header and
creates a commit in the usual format, grouping the headers that share a
consumer, as with the KVM ones.
As for the state of the copies, only two headers are newer in this branch than
in the kernel sources, perf_event.h and perf_regs.h: changes to them this time
went to tools/ first, with the kernel picking them up later, so the script
checks if the kernel file matches an earlier tools/ state and leaves those
alone.
Best regards,
- Arnaldo
Arnaldo Carvalho de Melo (12):
perf tools: Add script and make target to sync the header copies with
the kernel
tools headers UAPI: Sync linux/if_addr.h with the kernel sources
tools headers UAPI: Sync linux/rtnetlink.h with the kernel sources
tools headers: Sync linux/gfp_types.h with the kernel sources
tools headers x86 cpufeatures: Sync with the kernel sources
tools arch x86: Sync the msr-index.h copy with the kernel sources
perf beauty: Update copy of linux/socket.h with the kernel sources
tools headers: Sync UAPI linux/fcntl.h with the kernel sources
tools headers: Sync UAPI linux/fs.h with the kernel sources
tools headers: Sync UAPI linux/mount.h with the kernel sources
tools headers: Sync UAPI sound/asound.h with kernel sources
tools headers: Sync KVM headers with the kernel sources
tools/arch/arm64/include/uapi/asm/kvm.h | 1 +
tools/arch/powerpc/include/uapi/asm/kvm.h | 18 +
tools/arch/x86/include/asm/cpufeatures.h | 15 +
tools/arch/x86/include/asm/msr-index.h | 9 +-
tools/include/linux/gfp_types.h | 5 +-
tools/include/uapi/linux/if_addr.h | 1 +
tools/include/uapi/linux/kvm.h | 4 +
tools/include/uapi/linux/rtnetlink.h | 25 +
tools/perf/Makefile | 5 +-
tools/perf/Makefile.perf | 3 +
tools/perf/scripts/sync-headers.sh | 1256 +++++++++++++++++
.../perf/trace/beauty/include/linux/socket.h | 11 +-
.../trace/beauty/include/uapi/linux/fcntl.h | 1 +
.../perf/trace/beauty/include/uapi/linux/fs.h | 1 +
.../trace/beauty/include/uapi/linux/mount.h | 1 +
.../trace/beauty/include/uapi/sound/asound.h | 200 +--
16 files changed, 1452 insertions(+), 104 deletions(-)
create mode 100755 tools/perf/scripts/sync-headers.sh
base-commit: 9b435ebe2ddd69af06e6d0bbe52c590179b1ff9f
next reply other threads:[~2026-10-21 21:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-21 21:29 Arnaldo Carvalho de Melo [this message]
2026-10-21 21:29 ` [PATCH v1 01/12] perf tools: Add script and make target to sync the header copies with the kernel Arnaldo Carvalho de Melo
2026-10-21 21:29 ` [PATCH v1 02/12] tools headers UAPI: Sync linux/if_addr.h with the kernel sources Arnaldo Carvalho de Melo
2026-10-21 21:29 ` [PATCH v1 03/12] tools headers UAPI: Sync linux/rtnetlink.h " Arnaldo Carvalho de Melo
2026-10-21 21:29 ` [PATCH v1 04/12] tools headers: Sync linux/gfp_types.h " Arnaldo Carvalho de Melo
2026-10-21 21:29 ` [PATCH v1 05/12] tools headers x86 cpufeatures: Sync " Arnaldo Carvalho de Melo
2026-10-21 21:30 ` [PATCH v1 06/12] tools arch x86: Sync the msr-index.h copy " Arnaldo Carvalho de Melo
2026-10-21 21:30 ` [PATCH v1 07/12] perf beauty: Update copy of linux/socket.h " Arnaldo Carvalho de Melo
2026-10-21 21:58 ` Mahe Tardy
2026-10-21 21:30 ` [PATCH v1 08/12] tools headers: Sync UAPI linux/fcntl.h " Arnaldo Carvalho de Melo
2026-10-21 21:30 ` [PATCH v1 09/12] tools headers: Sync UAPI linux/fs.h " Arnaldo Carvalho de Melo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261021213007.21046-1-acme@kernel.org \
--to=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=amachhiw@linux.ibm.com \
--cc=bp@alien8.de \
--cc=brauner@kernel.org \
--cc=congkai@amazon.com \
--cc=ewanhai-oc@zhaoxin.com \
--cc=hannes@cmpxchg.org \
--cc=hemanth.selam@gmail.com \
--cc=irogers@google.com \
--cc=james.clark@linaro.org \
--cc=jolsa@kernel.org \
--cc=kas@kernel.org \
--cc=kolyshkin@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mahe.tardy@gmail.com \
--cc=mingo@kernel.org \
--cc=mstrozek@opensource.cirrus.com \
--cc=namhyung@kernel.org \
--cc=ricardo.neri-calderon@linux.intel.com \
--cc=sigefriedhyy@gmail.com \
--cc=tglx@linutronix.de \
--cc=tiwai@suse.de \
--cc=williams@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®