]> Git Repo - linux.git/commit
sched_ext: Provide a sysfs enable_seq counter
authorAndrea Righi <[email protected]>
Sat, 21 Sep 2024 19:39:21 +0000 (21:39 +0200)
committerTejun Heo <[email protected]>
Mon, 23 Sep 2024 16:53:02 +0000 (06:53 -1000)
commit431844b65f4c1b988ccd886f2ed29c138f7bb262
tree3d84bd26e2e6c1be937bc39c65a2fbbf947abb1b
parent62d3726d4cd66f3e48dfe0f0401e0d74e58c2170
sched_ext: Provide a sysfs enable_seq counter

As discussed during the distro-centric session within the sched_ext
Microconference at LPC 2024, introduce a sequence counter that is
incremented every time a BPF scheduler is loaded.

This feature can help distributions in diagnosing potential performance
regressions by identifying systems where users are running (or have ran)
custom BPF schedulers.

Example:

 arighi@virtme-ng~> cat /sys/kernel/sched_ext/enable_seq
 0
 arighi@virtme-ng~> sudo scx_simple
 local=1 global=0
 ^CEXIT: unregistered from user space
 arighi@virtme-ng~> cat /sys/kernel/sched_ext/enable_seq
 1

In this way user-space tools (such as Ubuntu's apport and similar) are
able to gather and include this information in bug reports.

Cc: Giovanni Gherdovich <[email protected]>
Cc: Kleber Sacilotto de Souza <[email protected]>
Cc: Marcelo Henrique Cerri <[email protected]>
Cc: Phil Auld <[email protected]>
Signed-off-by: Andrea Righi <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
Documentation/scheduler/sched-ext.rst
kernel/sched/ext.c
tools/sched_ext/scx_show_state.py
This page took 0.065343 seconds and 4 git commands to generate.