Patch "perf MANIFEST: Add arch/*/include/uapi/asm/bpf_perf_event.h to the perf tarball" has been added to the 6.12-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    perf MANIFEST: Add arch/*/include/uapi/asm/bpf_perf_event.h to the perf tarball

to the 6.12-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     perf-manifest-add-arch-include-uapi-asm-bpf_perf_eve.patch
and it can be found in the queue-6.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit a9969eb18d9b3c940b4a293050005ea2cabc5ae3
Author: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
Date:   Tue Nov 26 17:43:18 2024 -0300

    perf MANIFEST: Add arch/*/include/uapi/asm/bpf_perf_event.h to the perf tarball
    
    [ Upstream commit 74c033b6aa650ea7280221a9e57b7318a120978c ]
    
    Needed to build tools/lib/bpf/ on various arches other than x86_64,
    notably arm64 when using the perf tarballs generated by:
    
      $ make help | grep perf-
        perf-tar-src-pkg    - Build the perf source tarball with no compression
        perf-targz-src-pkg  - Build the perf source tarball with gzip compression
        perf-tarbz2-src-pkg - Build the perf source tarball with bz2 compression
        perf-tarxz-src-pkg  - Build the perf source tarball with xz compression
        perf-tarzst-src-pkg - Build the perf source tarball with zst compression
      $
    
    Building with BPF support was opt-in in perf for a long time, and
    testing it via the tarball main kernel Makefile targets in an
    architecture other than x86_64 was an odd case.
    
    I had noticed this at some point earlier this year while cross building
    perf to some arches, including arm64, but it fell thru the cracks, see
    the Link tag below.
    
    Fix it now by adding those arch/*/include/uapi/asm/bpf_perf_event.h
    files to the MANIFEST file used in building the perf source tarball.
    
    Tested with:
    
      perfbuilder@number:~$ time dm debian:experimental-x-arm64
         1    21.60 debian:experimental-x-arm64   : Ok   aarch64-linux-gnu-gcc (Debian 14.1.0-5) 14.1.0  flex 2.6.4
      BUILD_TARBALL_HEAD=d31a974f6edc576f84c35be9526fec549a3b3520
      $
      $ git log --oneline -1 d31a974f6edc576f84c35be9526fec549a3b3520
      d31a974f6edc576f (HEAD -> perf-tools-next) perf MANIFEST: Add arch/*/include/uapi/asm/bpf_perf_event.h to the perf tarball
      $
    
    That was previously failing:
    
      perfbuilder@number:~$ grep debian:experimental-x-arm64 dm.log.old/summary
      19     4.80 debian:experimental-x-arm64   : FAIL gcc version 14.1.0 (Debian 14.1.0-5)
      $
      perfbuilder@number:~$ grep -B6 'Error 1' dm.log.old/debian:experimental-x-arm64
      In file included from /git/perf-6.12.0-rc6/tools/include/uapi/linux/bpf_perf_event.h:11,
                       from libbpf.c:36:
      /git/perf-6.12.0-rc6/tools/include/uapi/asm/bpf_perf_event.h:2:10: fatal error: ../../arch/arm64/include/uapi/asm/bpf_perf_event.h: No such file or directory
          2 | #include "../../arch/arm64/include/uapi/asm/bpf_perf_event.h"
            |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      compilation terminated.
      make[4]: *** [/git/perf-6.12.0-rc6/tools/build/Makefile.build:105: /tmp/build/perf/libbpf/staticobjs/libbpf.o] Error 1
      perfbuilder@number:~$
    
    Closes: https://lore.kernel.org/all/Z0UNRCRYKunbDYxP@hyperscale.parallels
    Fixes: 9eea8fafe33eb708 ("libbpf: fix __arg_ctx type enforcement for perf_event programs")
    Reported-by: Michel Lind <michel@xxxxxxxxxxxxxxx>
    Tested-by: Michel Lind <michel@xxxxxxxxxxxxxxx>
    Cc: Adrian Hunter <adrian.hunter@xxxxxxxxx>
    Cc: Alexei Starovoitov <ast@xxxxxxxxxx>
    Cc: Andrii Nakryiko <andrii@xxxxxxxxxx>
    Cc: Ian Rogers <irogers@xxxxxxxxxx>
    Cc: James Clark <james.clark@xxxxxxxxxx>
    Cc: Jiri Olsa <jolsa@xxxxxxxxxx>
    Cc: Kan Liang <kan.liang@xxxxxxxxxxxxxxx>
    Cc: Namhyung Kim <namhyung@xxxxxxxxxx>
    Link: 317c11923cf676437456e44a7f408d4ce589a9c0.camel@xxxxxxxxxxxxxxx
    Link: https://lore.kernel.org/bpf/ZfyEgoG3JFiOs2Fs@x1/
    Link: https://lore.kernel.org/r/Z0Yy5u42Q1hWoEzz@x1
    Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/perf/MANIFEST b/tools/perf/MANIFEST
index dc42de1785cee..908165fcec7de 100644
--- a/tools/perf/MANIFEST
+++ b/tools/perf/MANIFEST
@@ -1,5 +1,6 @@
 arch/arm64/tools/gen-sysreg.awk
 arch/arm64/tools/sysreg
+arch/*/include/uapi/asm/bpf_perf_event.h
 tools/perf
 tools/arch
 tools/scripts




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux