diff options
| author | Ian Rogers <irogers@google.com> | 2025-06-24 12:03:23 -0700 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2025-07-02 19:05:26 -0700 |
| commit | d1f18106778b4d1af5ca6bde191e05e075c7e697 (patch) | |
| tree | 82554e72dda6a057f6d0ab493810b77a541267c8 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 7a8557fc4aa12cffc97e5c8a1b8b8fd0275464b2 (diff) | |
perf hwmon_pmu: Hold path rather than fd
Hold the path to the hwmon_pmu rather than the file descriptor. The
file descriptor is somewhat problematic in that it reflects the
directory state when opened, something that may vary in testing. Using
a path simplifies testing and to some extent cleanup as the hwmon_pmu
is owned by the pmus list and intentionally global and leaked when
perf terminates, the file descriptor being left open looks like a
leak.
Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250624190326.2038704-4-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
