diff options
author | 2025-01-31 16:09:28 +0900 | |
---|---|---|
committer | 2025-02-02 07:23:18 -1000 | |
commit | 17103b8504de68958b0ff412ed2ae2e6484fa65f (patch) | |
tree | a8fbe7349b4f1a3ba6fdfb5c4d618619ca1b4166 /scripts/rust_is_available_test.py | |
parent | sched_ext: Move built-in idle CPU selection policy to a separate file (diff) | |
download | wireguard-linux-17103b8504de68958b0ff412ed2ae2e6484fa65f.tar.xz wireguard-linux-17103b8504de68958b0ff412ed2ae2e6484fa65f.zip |
sched_ext: Implement event counter infrastructure
Collect the statistics of specific types of behavior in the sched_ext core,
which are not easily visible but still interesting to an scx scheduler.
An event type is defined in 'struct scx_event_stats.' When an event occurs,
its counter is accumulated using 'scx_add_event()' and '__scx_add_event()'
to per-CPU 'struct scx_event_stats' for efficiency. 'scx_bpf_events()'
aggregates all the per-CPU counters and exposes a system-wide counters.
For convenience and readability of the code, 'scx_agg_event()' and
'scx_dump_event()' are provided.
The collected events can be observed after a BPF scheduler is unloaded
beforea new BPF scheduler is loaded so the per-CPU 'struct scx_event_stats'
are reset.
Signed-off-by: Changwoo Min <changwoo@igalia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'scripts/rust_is_available_test.py')
0 files changed, 0 insertions, 0 deletions