diff options
| author | Amery Hung <ameryhung@gmail.com> | 2026-06-18 23:35:20 -0700 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-06-21 18:10:04 -0700 |
| commit | a6ff26f360c87b7c9f76f493bcecb9223d87e9db (patch) | |
| tree | 004e66c20636acb510ebd36d62477b89c1a0f2d8 /tools/perf/scripts/python/stackcollapse.py | |
| parent | f08aaee3152d0dfc578b3f2586932d82062701dd (diff) | |
selftests/bpf: Test cgroup link replace with BPF_F_PREORDER
Add a cgroup_preorder case that attaches a normal and a BPF_F_PREORDER
program to a cgroup (effective order [2, 1]), then replaces the normal
link's program via bpf_link_update() and checks the effective order
becomes [2, 3] — i.e. only the non-preorder slot changes. Without the
replace_effective_prog() fix the array is corrupted and the order is
wrong.
Signed-off-by: Amery Hung <ameryhung@gmail.com>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20260619063520.2690547-3-ameryhung@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
