]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched_ext: Provides a sysfs 'events' to expose core event counters
authorChangwoo Min <changwoo@igalia.com>
Fri, 14 Feb 2025 09:57:36 +0000 (18:57 +0900)
committerTejun Heo <tj@kernel.org>
Fri, 14 Feb 2025 17:15:41 +0000 (07:15 -1000)
commitad3b301aa05af408462775368bd25d2a05409fe1
tree7e00d999ef1ec42d3ef8ef30d6f1539aad906528
parent3539c6411a7c9d6c5895f78750f93160705cd250
sched_ext: Provides a sysfs 'events' to expose core event counters

Add a sysfs entry at /sys/kernel/sched_ext/root/events to expose core
event counters through the files system interface. Each line of the file
shows the event name and its counter value.

In addition, the format of scx_dump_event() is adjusted as the event name
gets longer.

Signed-off-by: Changwoo Min <changwoo@igalia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext.c