Skip to content

Commit ac87187

Browse files
tlfalconnamhyung
authored andcommitted
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>
1 parent f6109fb commit ac87187

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

tools/perf/util/pmu.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@ struct perf_pmu *perf_pmu__lookup(struct list_head *pmus, int dirfd, const char
302302
bool eager_load);
303303
struct perf_pmu *perf_pmu__create_placeholder_core_pmu(struct list_head *core_pmus);
304304
void perf_pmu__delete(struct perf_pmu *pmu);
305-
struct perf_pmu *perf_pmus__find_core_pmu(void);
306305

307306
const char *perf_pmu__name_from_config(struct perf_pmu *pmu, u64 config);
308307
bool perf_pmu__is_fake(const struct perf_pmu *pmu);

tools/perf/util/pmus.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,6 @@ struct perf_pmu *perf_pmus__add_test_hwmon_pmu(int hwmon_dir,
3535
const char *sysfs_name,
3636
const char *name);
3737
struct perf_pmu *perf_pmus__fake_pmu(void);
38+
struct perf_pmu *perf_pmus__find_core_pmu(void);
3839

3940
#endif /* __PMUS_H */

0 commit comments

Comments
 (0)