Skip to content

Commit 422db30

Browse files
captain5050acmel
authored andcommitted
perf kvm powerpc: Add missing rename opf pmu_have_event() to perf_pmus__have_event()
Missed function rename from pmu_have_event to perf_pmus__have_event made the perf build fail on powerpc. Committer notes: The perf_pmus__have_event() is declared in util/pmus.h, so use it instead of by now needless util/pmu.h. Fixes: 1eaf496 ("perf pmu: Separate pmu and pmus") Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Ian Rogers <irogers@google.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Leo Yan <leo.yan@linaro.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/20230530021433.3107580-1-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 2003237 commit 422db30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/perf/arch/powerpc/util/kvm-stat.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "util/debug.h"
66
#include "util/evsel.h"
77
#include "util/evlist.h"
8-
#include "util/pmu.h"
8+
#include "util/pmus.h"
99

1010
#include "book3s_hv_exits.h"
1111
#include "book3s_hcalls.h"
@@ -204,7 +204,7 @@ int kvm_add_default_arch_event(int *argc, const char **argv)
204204

205205
parse_options(j, tmp, event_options, NULL, PARSE_OPT_KEEP_UNKNOWN);
206206
if (!event) {
207-
if (pmu_have_event("trace_imc", "trace_cycles")) {
207+
if (perf_pmus__have_event("trace_imc", "trace_cycles")) {
208208
argv[j++] = strdup("-e");
209209
argv[j++] = strdup("trace_imc/trace_cycles/");
210210
*argc += 2;

0 commit comments

Comments
 (0)