Skip to content

Commit a759bf0

Browse files
committed
sched_ext: Update scx_show_state.py to match scx_ops_bypass_depth's new type
0e7ffff ("scx: Fix raciness in scx_ops_bypass()") converted scx_ops_bypass_depth from an atomic to an int. Update scx_show_state.py accordingly. Signed-off-by: Tejun Heo <[email protected]> Fixes: 0e7ffff ("scx: Fix raciness in scx_ops_bypass()")
1 parent f7d1b58 commit a759bf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/sched_ext/scx_show_state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ def ops_state_str(state):
3535
print(f'switching_all : {read_int("scx_switching_all")}')
3636
print(f'switched_all : {read_static_key("__scx_switched_all")}')
3737
print(f'enable_state : {ops_state_str(enable_state)} ({enable_state})')
38-
print(f'bypass_depth : {read_atomic("scx_ops_bypass_depth")}')
38+
print(f'bypass_depth : {prog["scx_ops_bypass_depth"].value_()}')
3939
print(f'nr_rejected : {read_atomic("scx_nr_rejected")}')
4040
print(f'enable_seq : {read_atomic("scx_enable_seq")}')

0 commit comments

Comments
 (0)