From d2a9a06092e66111f34e449371872de2d4ccde5b Mon Sep 17 00:00:00 2001 From: Julien Olivain Date: Wed, 22 Feb 2023 21:41:34 +0100 Subject: [PATCH] package/linux-tools: perf: add OpenCSD support This commit adds the Arm CoreSight trace data Decoder support to perf. See: https://docs.kernel.org/trace/coresight/coresight-perf.html Signed-off-by: Julien Olivain Signed-off-by: Thomas Petazzoni --- package/linux-tools/linux-tool-perf.mk.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/linux-tools/linux-tool-perf.mk.in b/package/linux-tools/linux-tool-perf.mk.in index ee308a85df..65aba2e9fe 100644 --- a/package/linux-tools/linux-tool-perf.mk.in +++ b/package/linux-tools/linux-tool-perf.mk.in @@ -120,6 +120,13 @@ else PERF_MAKE_FLAGS += NO_LZMA=1 endif +ifeq ($(BR2_PACKAGE_OPENCSD),y) +PERF_DEPENDENCIES += opencsd +PERF_MAKE_FLAGS += CORESIGHT=1 +# There is no "else CORESIGHT=0" case, because "perf" Makefile uses +# bare "ifdef CORESIGHT" constructs. +endif + # We really do not want to build the perf documentation, because it # has stringent requirement on the documentation generation tools, # like xmlto and asciidoc), which may be lagging behind on some