Re: [PATCH] perf/core: move all of the pmu devices into their own location

From: Alexander Shishkin
Date: Tue Feb 04 2025 - 02:41:16 EST


Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> writes:

> In sysfs, for some reason, all pmu devices seem to show up in the "root"
> of /sys/devices/ making for a confusing mess as these devices are not
> really at the root of the system at all.
>
> Create a fake root devices, "pmu_bus" and place them all under there if
> they do not already have a parent device set, cleaning up sysfs to look
> more sane.

Yeah, so what happens to the userspace that uses them via /sys/devices/*
directly? Even I have scripts that do that.

Regards,
--
Alex