perf tools: move perf_pmus__find_core_pmu() prototype to pmus.h
authorThomas Falcon <thomas.falcon@intel.com>
Thu, 12 Jun 2025 16:36:58 +0000 (11:36 -0500)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 26 Jun 2025 17:51:31 +0000 (10:51 -0700)
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>
tools/perf/util/pmu.h
tools/perf/util/pmus.h

index a4a08192154c243019a7b24f1e1f8a6b4a524c3d..1ebcf0242af85476cff71bc95970a0842278398c 100644 (file)
@@ -302,7 +302,6 @@ struct perf_pmu *perf_pmu__lookup(struct list_head *pmus, int dirfd, const char
                                  bool eager_load);
 struct perf_pmu *perf_pmu__create_placeholder_core_pmu(struct list_head *core_pmus);
 void perf_pmu__delete(struct perf_pmu *pmu);
-struct perf_pmu *perf_pmus__find_core_pmu(void);
 
 const char *perf_pmu__name_from_config(struct perf_pmu *pmu, u64 config);
 bool perf_pmu__is_fake(const struct perf_pmu *pmu);
index 2794d8c3a4663f4131542cbadcd9e9b9557c5edf..33ecf765a92f6538f2721b78625e0f457baf6b8c 100644 (file)
@@ -35,5 +35,6 @@ struct perf_pmu *perf_pmus__add_test_hwmon_pmu(int hwmon_dir,
                                               const char *sysfs_name,
                                               const char *name);
 struct perf_pmu *perf_pmus__fake_pmu(void);
+struct perf_pmu *perf_pmus__find_core_pmu(void);
 
 #endif /* __PMUS_H */