[GIT PULL] perf tools fixes for v7.0

From: Arnaldo Carvalho de Melo

Date: Fri Mar 13 2026 - 11:24:34 EST


Hi Linus,

Please consider pulling,

Best regards,

- Arnaldo


The following changes since commit 0031c06807cfa8aa51a759ff8aa09e1aa48149af:

Merge tag 'cgroup-for-7.0-rc2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup (2026-03-03 14:25:18 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools.git tags/perf-tools-fixes-for-v7.0-1-2026-03-13

for you to fetch changes up to 35b16a7a2c4fc458304447128b86514ce9f70f3c:

perf synthetic-events: Fix stale build ID in module MMAP2 records (2026-03-11 17:47:42 -0300)

----------------------------------------------------------------
perf tools fixes for v7.0:

- Fix stale build ID in module MMAP2 records in events synthesized for
pre-existing processes.

- Fix rust cross compilation.

- hashmap__new() error pointer return handling fixes.

- Fix off-by-one bug in outside of functions check on the disasm code.

- Update header copies of kernel headers, including prctl.h, mount.h, fs.h,
irq_vectors.h, perf_event.h, gfp_types.h, kvm.h, cpufeatures.h msr-index.h,
also the syscall tables files that introduced the 'rseq_slice_yield' syscall.

- Finish removal of ETM_OPT_* on the ARM coresight support, needed to sync
the coresight-pmu.h header with the kernel sources.

- Make in-target rule robust against too long argument error.

Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>

----------------------------------------------------------------
Arnaldo Carvalho de Melo (12):
tools headers: Sync uapi/linux/prctl.h with the kernel source
perf beauty: Sync linux/mount.h copy with the kernel sources
perf beauty: Sync UAPI linux/fs.h with kernel sources
perf beauty: Update the arch/x86/include/asm/irq_vectors.h copy with the kernel sources
perf beauty: Update the linux/perf_event.h copy with the kernel sources
tools headers: Update the linux/gfp_types.h copy with the kernel sources
tools headers UAPI: Sync linux/kvm.h with the kernel sources
tools headers x86 cpufeatures: Sync with the kernel sources
tools headers UAPI: Sync x86's asm/kvm.h with the kernel sources
tools arch x86: Sync msr-index.h to pick MSR_{OMR_[0-3],CORE_PERF_GLOBAL_STATUS_SET}
tools headers: Update the syscall tables and unistd.h, to support the new 'rseq_slice_yield' syscall
tools headers UAPI: Update tools' copy of linux/coresight-pmu.h

Changqing Li (1):
tools build: Make in-target rule robust against too long argument error

Chen Ni (2):
perf annotate: Fix hashmap__new() error checking
perf ftrace: Fix hashmap__new() error checking

Chuck Lever (1):
perf synthetic-events: Fix stale build ID in module MMAP2 records

Dmitrii Dolgov (1):
tools build: Fix rust cross compilation

Ian Rogers (1):
perf annotate loongarch: Fix off-by-one bug in outside check

James Clark (2):
perf cs-etm: Finish removal of ETM_OPT_*
perf cs-etm: Sync coresight-pmu.h header with the kernel sources

Markus Mayer (1):
perf build: Prevent "argument list too long" error

Peter Collingbourne (1):
perf disasm: Fix off-by-one bug in outside check

tools/arch/x86/include/asm/amd/ibs.h | 2 +-
tools/arch/x86/include/asm/cpufeatures.h | 4 +-
tools/arch/x86/include/asm/msr-index.h | 6 +
tools/arch/x86/include/uapi/asm/kvm.h | 8 +-
tools/build/Build.include | 9 +
tools/build/Makefile.build | 6 +-
tools/include/linux/coresight-pmu.h | 24 -
tools/include/linux/gfp_types.h | 9 +-
tools/include/uapi/asm-generic/unistd.h | 5 +-
tools/include/uapi/linux/kvm.h | 24 +-
tools/include/uapi/linux/perf_event.h | 2 +-
tools/perf/Makefile.config | 18 +
tools/perf/Makefile.perf | 2 +-
tools/perf/arch/arm/entry/syscalls/syscall.tbl | 1 +
tools/perf/arch/arm/util/cs-etm.c | 14 -
.../perf/arch/mips/entry/syscalls/syscall_n64.tbl | 1 +
tools/perf/arch/powerpc/entry/syscalls/syscall.tbl | 1 +
tools/perf/arch/s390/entry/syscalls/syscall.tbl | 859 ++++++++++-----------
tools/perf/arch/sh/entry/syscalls/syscall.tbl | 1 +
tools/perf/arch/sparc/entry/syscalls/syscall.tbl | 3 +-
tools/perf/arch/x86/entry/syscalls/syscall_32.tbl | 1 +
tools/perf/arch/x86/entry/syscalls/syscall_64.tbl | 1 +
tools/perf/arch/xtensa/entry/syscalls/syscall.tbl | 1 +
tools/perf/builtin-ftrace.c | 9 +-
tools/perf/pmu-events/Build | 3 +-
.../beauty/arch/x86/include/asm/irq_vectors.h | 1 +
tools/perf/trace/beauty/include/uapi/linux/fs.h | 1 +
tools/perf/trace/beauty/include/uapi/linux/mount.h | 13 +-
tools/perf/trace/beauty/include/uapi/linux/prctl.h | 37 +
tools/perf/util/annotate-arch/annotate-loongarch.c | 2 +-
tools/perf/util/annotate.c | 5 +-
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c | 2 +-
tools/perf/util/cs-etm.c | 36 +-
tools/perf/util/cs-etm.h | 15 +
tools/perf/util/disasm.c | 2 +-
tools/perf/util/synthetic-events.c | 5 +
tools/scripts/syscall.tbl | 1 +
37 files changed, 584 insertions(+), 550 deletions(-)