packages/linux-tools: perf: allow building perf with libtraceevent
Status from this message: Applied to 2025.02.x and 2025.11.x. Thanks
Get series with b4
b4 am [email protected] change-id 20250625-perf_libtraceevent-17e46ee28f90Versions newest first
- v2 Latest2 patches 5 repliesApplied
- v11 patch 2 repliesSuperseded
Changes in v2 from the cover letter
- enforce PKG_CONFIG_LIBDIR
- Link to v1: https://lore.kernel.org/r/[email protected]
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | package/linux-tools: perf: build with libtraceevent support when it is selectedpackage/ | +6 | 3 replies | |
| 2/2 | packages/linux-tools: perf: enforce PKG_CONFIG_LIBDIRpackage/ | +1 | 2 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Luca Ceresoli |
|---|---|
| 1/2 | R-b T-b |
| 2/2 | R-b T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Buildroot] [PATCH v2 0/2] packages/linux-tools: perf: allow building perf with libtraceevent
Hello,
this series is the v2 aiming to allow building perf with libtraceevent support, in order to be able for example to manipulate and record uprobes with perf.
This new revision gets a new commit enforcing PKG_CONFIG_LIBDIR for the perf makefile. I am not sure how I did not get the corresponding error the first time (maybe it needed some full rebuild to trigger), but I now see that I fail to build perf with multiple stable kernels if I do not enforce this variable (if it is not defined, the perf makefile will set it to a value that is wrong in a buildroot build, see [1]). I found a similar thread and attempt (see [2]), this series proposes to implement the second option mentioned in there.
Also, as mentioned in the previous revision, perf may fail to build on some older kernels because the patch correctly setting pkg-config binary name has not been backported. I have identified that only 6.6 needed it (as perf builds start to fail from 6.3, and are fixed in 6.11). The corresponding stable backport request as been sent (see [3])
@Luca: since all stable kernels should get the relevant fix and then allow to build perf with libtraceevent support, I eventually chose _not_ to mention any issue in the Kconfig.
[1] https://elixir.bootlin.com/linux/v6.12.36/source/tools/perf/Makefile.perf#L211
[2] https://lore.kernel.org/buildroot/aBk4au4rQpZJMrTQ@vamoirid-laptop/
[3] https://lore.kernel.org/stable/2025070955-discover-tree-644c@gregkh/T/#m394f2c9392da7cfd3ca130af6a7ec8ff6ee4b6bf
To: [email protected]
Cc: Thomas Petazzoni <[email protected]>
Cc: Luca Ceresoli <[email protected]>
Cc: Olivier Benjamin <[email protected]>
---
Changes in v2:
- enforce PKG_CONFIG_LIBDIR
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Alexis Lothoré (2):
package/linux-tools: perf: build with libtraceevent support when it is selected packages/linux-tools: perf: enforce PKG_CONFIG_LIBDIR
package/linux-tools/linux-tool-perf.mk.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
---
base-commit: f28f34e200bbadf0aea32110c72f7199e65fb0b9
change-id: 20250625-perf_libtraceevent-17e46ee28f90
Best regards,
Signature · 8 lines
Alexis Lothoré, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot