History

sched_ext: Update scx_show_state.py to match scx_ops_bypass_depth's new type

0e7ffff1b811 ("scx: Fix raciness in scx_ops_bypass()") converted scx_ops_bypass_depth from an atomic to an int. Update scx_show_state.py accordingly.

Tejun Heo committed 2 years ago

Commit a759bf01 parent f7d1b581 file · +1 −1Browse files

Unified · Split

tools/sched_ext/scx_show_state.py+1−1
@@ -35,6 +35,6 @@ print(f'enabled : {read_static_key("__scx_ops_enabled")}') · 34 unmodified lines
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")}')

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t