Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools/sched_ext: update scx_show_state.py for scx_aborting change

Commit a69040ed57f5 ("sched_ext: Simplify breather mechanism with
scx_aborting flag") removed scx_in_softlockup and scx_breather_depth,
replacing them with scx_aborting.

Update the script accordingly.

Fixes: a69040ed57f5 ("sched_ext: Simplify breather mechanism with scx_aborting flag")
Signed-off-by: Kohei Enju <enjuk@amazon.com>
Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com>
Signed-off-by: Tejun Heo <tj@kernel.org>

authored by

Kohei Enju and committed by
Tejun Heo
c9894e6f f92ff79b

+1 -2
+1 -2
tools/sched_ext/scx_show_state.py
··· 38 38 print(f'switching_all : {read_int("scx_switching_all")}') 39 39 print(f'switched_all : {read_static_key("__scx_switched_all")}') 40 40 print(f'enable_state : {state_str(enable_state)} ({enable_state})') 41 - print(f'in_softlockup : {prog["scx_in_softlockup"].value_()}') 42 - print(f'breather_depth: {read_atomic("scx_breather_depth")}') 41 + print(f'aborting : {prog["scx_aborting"].value_()}') 43 42 print(f'bypass_depth : {prog["scx_bypass_depth"].value_()}') 44 43 print(f'nr_rejected : {read_atomic("scx_nr_rejected")}') 45 44 print(f'enable_seq : {read_atomic("scx_enable_seq")}')