diff options
| author | Andrii Nakryiko <[email protected]> | 2024-01-03 17:38:46 -0800 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2024-01-03 21:22:49 -0800 |
| commit | 67fe459144dd629855bd9fb4b12bd9c4f792a8cf (patch) | |
| tree | 2b5cc2eb9763c03f430888445f6bdc77f113e349 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | 2f38fe689470055440bf80fc644920023a643a82 (diff) | |
selftests/bpf: add arg:ctx cases to test_global_funcs tests
Add a few extra cases of global funcs with context arguments. This time
rely on "arg:ctx" decl_tag (__arg_ctx macro), but put it next to
"classic" cases where context argument has to be of an exact type that
BPF verifier expects (e.g., bpf_user_pt_regs_t for kprobe/uprobe).
Colocating all these cases separately from other global func args that
rely on arg:xxx decl tags (in verifier_global_subprogs.c) allows for
simpler backwards compatibility testing on old kernels. All the cases in
test_global_func_ctx_args.c are supposed to work on older kernels, which
was manually validated during development.
Acked-by: Jiri Olsa <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions