projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85c60a0
)
perf test: Correct hwmon test PMU detection
author
Ian Rogers
<irogers@google.com>
Mon, 18 Nov 2024 05:26:38 +0000
(21:26 -0800)
committer
Namhyung Kim
<namhyung@kernel.org>
Fri, 22 Nov 2024 21:34:31 +0000
(13:34 -0800)
Use name to avoid potential other hwmon PMUs.
Signed-off-by: Ian Rogers <irogers@google.com>
Link:
https://lore.kernel.org/r/20241118052638.754981-1-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/hwmon_pmu.c
patch
|
blob
|
history
diff --git
a/tools/perf/tests/hwmon_pmu.c
b/tools/perf/tests/hwmon_pmu.c
index
9f44093
..
1e5f93a
100644
(file)
--- a/
tools/perf/tests/hwmon_pmu.c
+++ b/
tools/perf/tests/hwmon_pmu.c
@@
-173,7
+173,8
@@
static int do_test(size_t i, bool with_pmu, bool with_alias)
}
evlist__for_each_entry(evlist, evsel) {
- if (!perf_pmu__is_hwmon(evsel->pmu))
+ if (!evsel->pmu || !evsel->pmu->name ||
+ strcmp(evsel->pmu->name, "hwmon_a_test_hwmon_pmu"))
continue;
if (evsel->core.attr.config != (u64)test_events[i].config) {