diff options
| author | fangqiurong <fangqiurong@kylinos.cn> | 2026-08-11 16:11:43 +0800 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-08-14 23:50:47 -1000 |
| commit | 56bbc91219c0711f1580a8ba7cd60471b6e1684e (patch) | |
| tree | 93926a450ac436114335072ce43710125f60b327 /tools/perf/scripts/python/parallel-perf.py | |
| parent | b27dfc7d8db91a24c772545e9f32739027ab49c9 (diff) | |
sched_ext: Fix scx_bpf_dsq_move_to_local___v2 compat detection
libbpf strips the last ___flavor suffix when resolving kfunc externs, so
the bare ___v2 declaration resolves to scx_bpf_dsq_move_to_local, whose
BTF proto lacks @enq_flags. The extern never matches, bpf_ksym_exists()
returns false on every kernel that has the ___v2 kfunc, and the macro
falls back to ___v1, silently dropping @enq_flags.
Add the trailing ___compat suffix used by the other versioned externs in
this file (scx_bpf_dsq_insert___v2, scx_bpf_reenqueue_local___v2).
Any caller passing non-zero @enq_flags through the compat macro silently
loses them.
Fixes: 860683763ebf ("sched_ext: Add enq_flags to scx_bpf_dsq_move_to_local()")
Cc: stable@vger.kernel.org # v7.1+
Assisted-by: Z.ai:glm-5.2
Signed-off-by: fangqiurong <fangqiurong@kylinos.cn>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions
