Re: [PATCH v1 1/2] perf hwmon_pmu: Use openat rather than dup to refresh directory

From: Namhyung Kim
Date: Wed Dec 11 2024 - 12:24:08 EST


On Thu, 05 Dec 2024 20:23:05 -0800, Ian Rogers wrote:

> 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.
>
> [...]

Applied to perf-tools, thanks!

Best regards,
Namhyung