diff options
| author | Thomas Falcon <thomas.falcon@intel.com> | 2025-06-12 11:36:58 -0500 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2025-06-26 10:51:31 -0700 |
| commit | ac871873bac736edd3945ade222d2902c0b10ac2 (patch) | |
| tree | 3fc5de7b45dc1d7f3764911adb3042b157144772 | |
| parent | f6109fb6f5d7fb9403cecfc75302bbf47ed83b8d (diff) | |
| download | linux-ac871873bac736edd3945ade222d2902c0b10ac2.tar.gz linux-ac871873bac736edd3945ade222d2902c0b10ac2.zip | |
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>
| -rw-r--r-- | tools/perf/util/pmu.h | 1 | ||||
| -rw-r--r-- | tools/perf/util/pmus.h | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/pmu.h b/tools/perf/util/pmu.h index a4a08192154c..1ebcf0242af8 100644 --- a/tools/perf/util/pmu.h +++ b/tools/perf/util/pmu.h @@ -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); diff --git a/tools/perf/util/pmus.h b/tools/perf/util/pmus.h index 2794d8c3a466..33ecf765a92f 100644 --- a/tools/perf/util/pmus.h +++ b/tools/perf/util/pmus.h @@ -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 */ |
