summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/perf/perf.bb
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2025-09-03 17:24:11 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-09-08 18:02:39 +0100
commitc4324cbff2e66a39ca06e4e2c9e22629e4fe80be (patch)
tree0de484372a65af6e4b687e44232943dcc5157765 /meta/recipes-kernel/perf/perf.bb
parent19a2b4f33fe848638f7a9f30fb770cf219416d77 (diff)
downloadpoky-c4324cbff2e66a39ca06e4e2c9e22629e4fe80be.tar.gz
perf: enable coresight if enabled in MACHINE_FEATURES
Enable the CoreSight[1] functionality in perf[2] if 'coresight' is in the MACHINE_FEATURES. Note that enabling this will mean a dependency on the opencsd recipe, which is currently part of meta-arm[3]. I don't think this is a problem as this recipe is Arm-specific, and as this is a new feature the behaviour is opt-in so shouldn't break any existing machines. [1] https://docs.kernel.org/trace/coresight/coresight.html [2] https://docs.kernel.org/trace/coresight/coresight-perf.html [3] https://git.yoctoproject.org/meta-arm/tree/meta-arm/recipes-devtools/opencsd (From OE-Core rev: c455bd039104466b26a959a6495dbb5a642b4533) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/perf/perf.bb')
-rw-r--r--meta/recipes-kernel/perf/perf.bb6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 4f29bd5bbc..b142b090b5 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -10,7 +10,9 @@ HOMEPAGE = "https://perf.wiki.kernel.org/index.php/Main_Page"
10LICENSE = "GPL-2.0-only" 10LICENSE = "GPL-2.0-only"
11 11
12# zstd is required for kernels 6.14+ when libelf-zstd is detected 12# zstd is required for kernels 6.14+ when libelf-zstd is detected
13PACKAGECONFIG ??= "python tui libunwind libtraceevent zstd" 13# Respect the coresight machine feature, but note this causes a
14# dependency on meta-arm.
15PACKAGECONFIG ??= "python tui libunwind libtraceevent zstd ${@bb.utils.filter('MACHINE_FEATURES', 'coresight', d)}"
14PACKAGECONFIG[dwarf] = ",NO_DWARF=1" 16PACKAGECONFIG[dwarf] = ",NO_DWARF=1"
15PACKAGECONFIG[perl] = ",NO_LIBPERL=1,perl" 17PACKAGECONFIG[perl] = ",NO_LIBPERL=1,perl"
16PACKAGECONFIG[python] = ",NO_LIBPYTHON=1,python3 python3-setuptools-native" 18PACKAGECONFIG[python] = ",NO_LIBPYTHON=1,python3 python3-setuptools-native"
@@ -28,7 +30,7 @@ PACKAGECONFIG[libtraceevent] = ",NO_LIBTRACEEVENT=1,libtraceevent"
28# jevents requires host python for generating a .c file, but is 30# jevents requires host python for generating a .c file, but is
29# unrelated to the python item. 31# unrelated to the python item.
30PACKAGECONFIG[jevents] = ",NO_JEVENTS=1,python3-native" 32PACKAGECONFIG[jevents] = ",NO_JEVENTS=1,python3-native"
31# Arm CoreSight 33# Arm CoreSight support, requires meta-arm for opencsd
32PACKAGECONFIG[coresight] = "CORESIGHT=1,,opencsd" 34PACKAGECONFIG[coresight] = "CORESIGHT=1,,opencsd"
33PACKAGECONFIG[pfm4] = ",NO_LIBPFM4=1,libpfm4" 35PACKAGECONFIG[pfm4] = ",NO_LIBPFM4=1,libpfm4"
34PACKAGECONFIG[babeltrace] = ",NO_LIBBABELTRACE=1,babeltrace" 36PACKAGECONFIG[babeltrace] = ",NO_LIBBABELTRACE=1,babeltrace"