also tryed with sudo scx_lavd -v
❯ sudo scx_lavd -v
[sudo] Mot de passe de franck :
23:53:33 [INFO] Autopilot mode is enabled by default.
23:53:33 [DEBUG] Opts {
autopilot: true,
autopower: false,
performance: false,
powersave: false,
balanced: false,
slice_max_us: 3000,
slice_min_us: 300,
no_core_compaction: false,
prefer_smt_core: false,
prefer_little_core: false,
no_prefer_turbo_core: false,
no_freq_scaling: false,
stats: None,
monitor: None,
monitor_sched_samples: None,
verbose: 1,
version: false,
help_stats: false,
}
libbpf: loaded kernel BTF from '/sys/kernel/btf/vmlinux'
libbpf: loading object 'bpf_bpf' from buffer
libbpf: elf: section(2) .symtab, size 18984, link 1, flags 0, type=2
libbpf: elf: section(3) .text, size 20416, link 0, flags 6, type=1
libbpf: sec '.text': found program 'do_set_power_profile' at insn offset 0 (0 bytes), code size 123 insns (984 bytes)
libbpf: sec '.text': found program 'pick_idle_cpu' at insn offset 123 (984 bytes), code size 517 insns (4136 bytes)
libbpf: sec '.text': found program 'calc_lat_cri' at insn offset 640 (5120 bytes), code size 238 insns (1904 bytes)
libbpf: sec '.text': found program 'update_sys_stat' at insn offset 878 (7024 bytes), code size 1569 insns (12552 bytes)
libbpf: sec '.text': found program 'set_on_core_type' at insn offset 2447 (19576 bytes), code size 88 insns (704 bytes)
libbpf: sec '.text': found program 'update_timer_cb' at insn offset 2535 (20280 bytes), code size 17 insns (136 bytes)
libbpf: elf: section(4) syscall, size 32, link 0, flags 6, type=1
libbpf: sec 'syscall': found program 'set_power_profile' at insn offset 0 (0 bytes), code size 4 insns (32 bytes)
libbpf: elf: section(5) fexit/__futex_wait, size 336, link 0, flags 6, type=1
libbpf: sec 'fexit/__futex_wait': found program 'fexit___futex_wait' at insn offset 0 (0 bytes), code size 42 insns (336 bytes)
libbpf: elf: section(6) fexit/futex_wait_multiple, size 344, link 0, flags 6, type=1
libbpf: sec 'fexit/futex_wait_multiple': found program 'fexit_futex_wait_multiple' at insn offset 0 (0 bytes), code size 43 insns (344 bytes)
libbpf: elf: section(7) fexit/futex_wait_requeue_pi, size 336, link 0, flags 6, type=1
libbpf: sec 'fexit/futex_wait_requeue_pi': found program 'fexit_futex_wait_requeue_pi' at insn offset 0 (0 bytes), code size 42 insns (336 bytes)
libbpf: elf: section(8) fexit/futex_wake, size 384, link 0, flags 6, type=1
libbpf: sec 'fexit/futex_wake': found program 'fexit_futex_wake' at insn offset 0 (0 bytes), code size 48 insns (384 bytes)
libbpf: elf: section(9) fexit/futex_wake_op, size 384, link 0, flags 6, type=1
libbpf: sec 'fexit/futex_wake_op': found program 'fexit_futex_wake_op' at insn offset 0 (0 bytes), code size 48 insns (384 bytes)
libbpf: elf: section(10) fexit/futex_lock_pi, size 336, link 0, flags 6, type=1
libbpf: sec 'fexit/futex_lock_pi': found program 'fexit_futex_lock_pi' at insn offset 0 (0 bytes), code size 42 insns (336 bytes)
libbpf: elf: section(11) fexit/futex_unlock_pi, size 360, link 0, flags 6, type=1
libbpf: sec 'fexit/futex_unlock_pi': found program 'fexit_futex_unlock_pi' at insn offset 0 (0 bytes), code size 45 insns (360 bytes)
libbpf: elf: section(12) struct_ops/lavd_select_cpu, size 872, link 0, flags 6, type=1
libbpf: sec 'struct_ops/lavd_select_cpu': found program 'lavd_select_cpu' at insn offset 0 (0 bytes), code size 109 insns (872 bytes)
.
.
.
; reinit_cpumask_for_performance = true; @ power.bpf.c:255
55: (18) r1 = 0xffffa72b22d9e108 ; frame1: R1_w=map_value(map=bpf_bpf.bss,ks=4,vs=4536,off=264)
57: (73) *(u8 *)(r1 +0) = r2 ; frame1: R1_w=map_value(map=bpf_bpf.bss,ks=4,vs=4536,off=264) R2_w=1
; debugln("Set the scheduler's power profile to performance mode: %d", util); @ power.bpf.c:256
58: (18) r1 = 0xffffa72b22f87128 ; frame1: R1_w=map_value(map=bpf_bpf.rodata,ks=4,vs=3675,off=296)
60: (71) r1 = *(u8 *)(r1 +0) ; frame1: R1=1
61: (16) if w1 == 0x0 goto pc+64 ; frame1: R1=1
62: (18) r1 = 0xffffa72b22f87d30 ; frame1: R1_w=map_value(map=bpf_bpf.rodata,ks=4,vs=3675,off=3376)
64: (b4) w2 = 66 ; frame1: R2_w=66
65: (18) r3 = 0xffff929d0af3df20 ; frame1: R3_w=map_value(map=.rodata.str1.1,ks=4,vs=63)
67: (b4) w4 = 256 ; frame1: R4_w=256
68: (05) goto pc+54
; @ power.bpf.c:0
123: (bc) w5 = w6 ; frame1: R5_w=0 R6=0
124: (85) call bpf_trace_printk#6
program of this type cannot use helper bpf_trace_printk#6
processed 54 insns (limit 1000000) max_states_per_insn 0 total_states 4 peak_states 4 mark_read 4
-- END PROG LOAD LOG --
libbpf: prog 'set_power_profile': failed to load: -22
libbpf: failed to load object 'bpf_bpf'
libbpf: failed to load BPF skeleton 'bpf_bpf': -22
Error: Failed to load BPF program
Caused by:
Invalid argument (os error 22)