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

perf tools: move perf_pmus__find_core_pmu() prototype to pmus.h

perf_pmus__find_core_pmu() is implemented in util/pmus.c but its
prototpye is in util/pmu.h. Move it to util/pmus.h.

Suggested-by: Ian Rogers <irogers@google.com>
Signed-off-by: Thomas Falcon <thomas.falcon@intel.com>
Reviewed-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250612163659.1357950-1-thomas.falcon@intel.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>

authored by

Thomas Falcon and committed by
Namhyung Kim
ac871873 f6109fb6

+1 -1
-1
tools/perf/util/pmu.h
··· 302 302 bool eager_load); 303 303 struct perf_pmu *perf_pmu__create_placeholder_core_pmu(struct list_head *core_pmus); 304 304 void perf_pmu__delete(struct perf_pmu *pmu); 305 - struct perf_pmu *perf_pmus__find_core_pmu(void); 306 305 307 306 const char *perf_pmu__name_from_config(struct perf_pmu *pmu, u64 config); 308 307 bool perf_pmu__is_fake(const struct perf_pmu *pmu);
+1
tools/perf/util/pmus.h
··· 35 35 const char *sysfs_name, 36 36 const char *name); 37 37 struct perf_pmu *perf_pmus__fake_pmu(void); 38 + struct perf_pmu *perf_pmus__find_core_pmu(void); 38 39 39 40 #endif /* __PMUS_H */