diff options
author | Yonghong Song <[email protected]> | 2023-08-27 08:28:32 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2023-09-08 08:42:18 -0700 |
commit | 1bd7931728718bc463c43b78ab74954452e099e3 (patch) | |
tree | 3d5f5ea92c4fe0b8d3e8add120cb88f32ed605a2 /tools/perf/scripts/python/gecko.py | |
parent | dfae1eeee9baa12e27f24a223d699326133e366b (diff) |
selftests/bpf: Add some negative tests
Add a few negative tests for common mistakes with using percpu kptr
including:
- store to percpu kptr.
- type mistach in bpf_kptr_xchg arguments.
- sleepable prog with untrusted arg for bpf_this_cpu_ptr().
- bpf_percpu_obj_new && bpf_obj_drop, and bpf_obj_new && bpf_percpu_obj_drop
- struct with ptr for bpf_percpu_obj_new
- struct with special field (e.g., bpf_spin_lock) for bpf_percpu_obj_new
Signed-off-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions