diff options
| author | Tejun Heo <tj@kernel.org> | 2026-03-07 16:45:18 -1000 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-03-07 22:45:12 -1000 |
| commit | 93ac9b150e2fba3a5e94e0b20d954a12e4b0907f (patch) | |
| tree | c97941fc6e2631967d21a114315b0b482a46a8d9 /tools/perf/scripts/python | |
| parent | c9c8546cdee64d3f1a54fe09cc2b8c1a8ea80c6d (diff) | |
tools/sched_ext/include: Add libbpf version guard for assoc_struct_ops
Extract the inline bpf_program__assoc_struct_ops() call in SCX_OPS_LOAD()
into a __scx_ops_assoc_prog() helper and wrap it with a libbpf >= 1.7
version guard. bpf_program__assoc_struct_ops() was added in libbpf 1.7;
the guard provides a no-op fallback for older versions. Add the
<bpf/libbpf.h> include needed by the helper, and fix "assumming" typo in
a nearby comment.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Andrea Righi <arighi@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
