diff options
| author | Ross Burton <ross.burton@arm.com> | 2025-09-03 17:24:11 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-09-08 18:02:39 +0100 |
| commit | c4324cbff2e66a39ca06e4e2c9e22629e4fe80be (patch) | |
| tree | 0de484372a65af6e4b687e44232943dcc5157765 /meta/recipes-kernel/perf/perf.bb | |
| parent | 19a2b4f33fe848638f7a9f30fb770cf219416d77 (diff) | |
| download | poky-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.bb | 6 |
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" | |||
| 10 | LICENSE = "GPL-2.0-only" | 10 | LICENSE = "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 |
| 13 | PACKAGECONFIG ??= "python tui libunwind libtraceevent zstd" | 13 | # Respect the coresight machine feature, but note this causes a |
| 14 | # dependency on meta-arm. | ||
| 15 | PACKAGECONFIG ??= "python tui libunwind libtraceevent zstd ${@bb.utils.filter('MACHINE_FEATURES', 'coresight', d)}" | ||
| 14 | PACKAGECONFIG[dwarf] = ",NO_DWARF=1" | 16 | PACKAGECONFIG[dwarf] = ",NO_DWARF=1" |
| 15 | PACKAGECONFIG[perl] = ",NO_LIBPERL=1,perl" | 17 | PACKAGECONFIG[perl] = ",NO_LIBPERL=1,perl" |
| 16 | PACKAGECONFIG[python] = ",NO_LIBPYTHON=1,python3 python3-setuptools-native" | 18 | PACKAGECONFIG[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. |
| 30 | PACKAGECONFIG[jevents] = ",NO_JEVENTS=1,python3-native" | 32 | PACKAGECONFIG[jevents] = ",NO_JEVENTS=1,python3-native" |
| 31 | # Arm CoreSight | 33 | # Arm CoreSight support, requires meta-arm for opencsd |
| 32 | PACKAGECONFIG[coresight] = "CORESIGHT=1,,opencsd" | 34 | PACKAGECONFIG[coresight] = "CORESIGHT=1,,opencsd" |
| 33 | PACKAGECONFIG[pfm4] = ",NO_LIBPFM4=1,libpfm4" | 35 | PACKAGECONFIG[pfm4] = ",NO_LIBPFM4=1,libpfm4" |
| 34 | PACKAGECONFIG[babeltrace] = ",NO_LIBBABELTRACE=1,babeltrace" | 36 | PACKAGECONFIG[babeltrace] = ",NO_LIBBABELTRACE=1,babeltrace" |
