summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2024-12-06 07:23:05 +0300
committerNamhyung Kim <namhyung@kernel.org>2024-12-10 02:00:03 +0300
commit3f61a12b08bd84e6cf705484c2cb9d5b891882fa (patch)
tree3f4b34df133aa1e08c6ca2f41e8ecbc9df892ef0 /tools/perf/scripts/python/exported-sql-viewer.py
parent246dfe3dc199246bd64635163115f2691623fc53 (diff)
downloadlinux-3f61a12b08bd84e6cf705484c2cb9d5b891882fa.tar.xz
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/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions