Re: [PATCH] perf: fix up some comments and code to properly use the event_source bus
From: Namhyung Kim
Date: Thu Feb 20 2025 - 13:26:24 EST
On Wed, 19 Feb 2025 14:40:56 +0100, Greg Kroah-Hartman wrote:
> In sysfs, the perf events are all located in
> /sys/bus/event_source/devices/ but some places ended up hard-coding the
> location to be at the root of /sys/devices/ which could be very risky as
> you do not exactly know what type of device you are accessing in sysfs
> at that location.
>
> So fix this all up by properly pointing everything at the bus device
> list instead of the root of the sysfs devices/ tree.
>
> [...]
Applied to perf-tools-next, thanks!
Best regards,
Namhyung