Re: [PATCH] sched_ext: Provide a sysfs enable_seq counter
From: Tejun Heo
Date: Mon Sep 23 2024 - 12:53:34 EST
On Sat, Sep 21, 2024 at 09:39:21PM +0200, andrea.righi@xxxxxxxxx wrote:
> From: Andrea Righi <andrea.righi@xxxxxxxxx>
>
> 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 <giovanni.gherdovich@xxxxxxxx>
> Cc: Kleber Sacilotto de Souza <kleber.souza@xxxxxxxxxxxxx>
> Cc: Marcelo Henrique Cerri <marcelo.cerri@xxxxxxxxxxxxx>
> Cc: Phil Auld <pauld@xxxxxxxxxx>
> Signed-off-by: Andrea Righi <andrea.righi@xxxxxxxxx>
Applied to sched_ext/for-6.12-fixes.
Thanks.
--
tejun