perf test: Add hwmon "PMU" test
authorIan Rogers <irogers@google.com>
Sat, 9 Nov 2024 00:37:58 +0000 (16:37 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Sat, 9 Nov 2024 16:28:03 +0000 (08:28 -0800)
commit531ee0fd4836994fc99f22cc79ef94554f2ae54e
tree990e66e8a1d506b353123e49c75af0f54359ddd3
parent654986ed5d53248ee2037cfebc4052441e2d1126
perf test: Add hwmon "PMU" test

Based on a mix of the sysfs PMU test (for creating the reference
files) and the tool PMU test, test that parsing given hwmon events
with there aliases creates the expected config values.

Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Ravi Bangoria <ravi.bangoria@amd.com>
Cc: Yoshihiro Furudera <fj5100bi@fujitsu.com>
Cc: Howard Chu <howardchu95@gmail.com>
Cc: Ze Gao <zegao2021@gmail.com>
Cc: Changbin Du <changbin.du@huawei.com>
Cc: Junhao He <hejunhao3@huawei.com>
Cc: Weilin Wang <weilin.wang@intel.com>
Cc: James Clark <james.clark@linaro.org>
Cc: Oliver Upton <oliver.upton@linux.dev>
Cc: Athira Jajeev <atrajeev@linux.vnet.ibm.com>
Link: https://lore.kernel.org/r/20241109003759.473460-7-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/hwmon_pmu.c
tools/perf/util/pmus.c
tools/perf/util/pmus.h