Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf tools: Enable evsel__is_aux_event() to work for ARM/ARM64

Set pmu->auxtrace on ARM/ARM64 AUX area PMUs. evsel__is_aux_event() needs
the setting to identify AUX area tracing selected events.

Currently, the features that use evsel__is_aux_event() are used only by
Intel PT, but that may change in the future.

Reviewed-by: Andi Kleen <ak@linux.intel.com>
Reviewed-by: Leo Yan <leo.yan@arm.com>
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Hendrik Brueckner <brueckner@linux.ibm.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@arm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Jonathan Cameron <jonathan.cameron@huawei.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Suzuki Poulouse <suzuki.poulose@arm.com>
Cc: Thomas Richter <tmricht@linux.ibm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Yicong Yang <yangyicong@hisilicon.com>
Cc: coresight@lists.linaro.org
Cc: linux-arm-kernel@lists.infradead.org
Link: https://lore.kernel.org/r/20240715160712.127117-6-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Adrian Hunter and committed by
Arnaldo Carvalho de Melo
c91928a8 ae8e4f40

+3
+3
tools/perf/arch/arm/util/pmu.c
··· 23 23 #ifdef HAVE_AUXTRACE_SUPPORT 24 24 if (!strcmp(pmu->name, CORESIGHT_ETM_PMU_NAME)) { 25 25 /* add ETM default config here */ 26 + pmu->auxtrace = true; 26 27 pmu->selectable = true; 27 28 pmu->perf_event_attr_init_default = cs_etm_get_default_config; 28 29 #if defined(__aarch64__) 29 30 } else if (strstarts(pmu->name, ARM_SPE_PMU_NAME)) { 31 + pmu->auxtrace = true; 30 32 pmu->selectable = true; 31 33 pmu->is_uncore = false; 32 34 pmu->perf_event_attr_init_default = arm_spe_pmu_default_config; 33 35 if (strstarts(pmu->name, "arm_spe_")) 34 36 pmu->mem_events = perf_mem_events_arm; 35 37 } else if (strstarts(pmu->name, HISI_PTT_PMU_NAME)) { 38 + pmu->auxtrace = true; 36 39 pmu->selectable = true; 37 40 #endif 38 41 }