scx/scheds/rust/scx_rusty/src
Andrea Righi d76551bbd3 scx_rusty: fix stats map initialization
The stats map in scx_rusty is a BPF_MAP_TYPE_PERCPU_ARRAY, with its size
determined by num_possible_cpus(). Initializing it with nr_cpu_ids() can
result in errors such as:

 Error: Failed to zero stat

 Caused by:
     number of values 6 != number of cpus 8

Fix by using num_possible_cpus() to initialize it.

Fixes: 263e02f6 ("rusty: Use nr_cpu_ids instead of nr_cpus_possible")
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
2024-06-30 17:37:14 +02:00
..
bpf rusty: Use nr_cpu_ids instead of nr_cpus_possible 2024-06-21 12:57:19 -05:00
bpf_intf.rs Restructure scheds folder names 2023-12-17 13:14:31 -08:00
bpf_skel.rs Restructure scheds folder names 2023-12-17 13:14:31 -08:00
domain.rs topology: Don't allocate on calls to span() 2024-04-23 22:59:42 -05:00
load_balance.rs Revert "scx_rusty: Refactor ridx assignment in populate_tasks_by_load" 2024-06-26 17:35:22 -04:00
main.rs scx_rusty: fix stats map initialization 2024-06-30 17:37:14 +02:00
tuner.rs rusty: Dynamically scale slice according to system util 2024-05-03 14:17:58 -05:00