]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf test hwmon_pmu: Fix event file location
authorIan Rogers <irogers@google.com>
Fri, 6 Dec 2024 04:23:06 +0000 (20:23 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Mon, 9 Dec 2024 23:00:26 +0000 (15:00 -0800)
commitd4e17a322a8fc3266798ec8dee1fbe679078b2bc
treea8356274e7babf26a18346e2207263c57429a85d
parent3f61a12b08bd84e6cf705484c2cb9d5b891882fa
perf test hwmon_pmu: Fix event file location

The temp directory is made and a known fake hwmon PMU created within
it. Prior to this fix the events were being incorrectly written to the
temp directory rather than the fake PMU directory. This didn't impact
the test as the directory fd matched the wrong location, but it
doesn't mirror what a hwmon PMU would actually look like.

Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Arnaldo Carvalho de Melo <acme@kernel.org>
Link: https://lore.kernel.org/r/20241206042306.1055913-2-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/hwmon_pmu.c