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 auxtrace: Use evsel__is_aux_event() for checking AUX event

Use evsel__is_aux_event() to decide if an event is a AUX event, this is
a refactoring to replace comparing the PMU type.

Reviewed-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Leo Yan <leo.yan@arm.com>
Cc: Ian Rogers <irogers@google.com>
Cc: James Clark <james.clark@linaro.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Suzuki Poulouse <suzuki.poulose@arm.com>
Cc: coresight@lists.linaro.org
Cc: linux-arm-kernel@lists.infradead.org
Link: https://lore.kernel.org/r/20240806204130.720977-2-leo.yan@arm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Leo Yan and committed by
Arnaldo Carvalho de Melo
c87826dd aea4d463

+2 -2
+2 -2
tools/perf/util/auxtrace.c
··· 671 671 { 672 672 struct evsel *evsel; 673 673 674 - if (!itr->evlist || !itr->pmu) 674 + if (!itr->evlist) 675 675 return -EINVAL; 676 676 677 677 evlist__for_each_entry(itr->evlist, evsel) { 678 - if (evsel->core.attr.type == itr->pmu->type) { 678 + if (evsel__is_aux_event(evsel)) { 679 679 if (evsel->disabled) 680 680 return 0; 681 681 return evlist__enable_event_idx(itr->evlist, evsel, idx);