summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2024-12-05 20:23:05 -0800
committerNamhyung Kim <namhyung@kernel.org>2024-12-09 15:00:03 -0800
commit3f61a12b08bd84e6cf705484c2cb9d5b891882fa (patch)
tree3f4b34df133aa1e08c6ca2f41e8ecbc9df892ef0 /tools/perf/scripts/python
parent246dfe3dc199246bd64635163115f2691623fc53 (diff)
perf hwmon_pmu: Use openat rather than dup to refresh directory
The hwmon PMU test will make a temp directory, open the directory with O_DIRECTORY then fill it with contents. As the open is before the filling the contents the later fdopendir may reflect the initial empty state, meaning no events are seen. Change to re-open the directory, rather than dup the fd, so the latest contents are seen. Minor tweaks/additions to debug messages. 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-1-irogers@google.com Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions