diff options
| author | Amery Hung <ameryhung@gmail.com> | 2025-08-06 09:25:40 -0700 |
|---|---|---|
| committer | Martin KaFai Lau <martin.lau@kernel.org> | 2025-08-06 16:01:58 -0700 |
| commit | ba7000f1c360f34286f48bd5e670cefbab77ce8f (patch) | |
| tree | bd0accb31af9e24c738fc8a6eb259781a61bd69a /scripts/gdb/linux/timerlist.py | |
| parent | eeb52b6279cfebae07703f772621fb9d5972e541 (diff) | |
selftests/bpf: Test multi_st_ops and calling kfuncs from different programs
Test multi_st_ops and demonstrate how different bpf programs can call
a kfuncs that refers to the struct_ops instance in the same source file
by id. The id is defined as a global vairable and initialized before
attaching the skeleton. Kfuncs that take the id can hide the argument
with a macro to make it almost transparent to bpf program developers.
The test involves two struct_ops returning different values from
.test_1. In syscall and tracing programs, check if the correct value is
returned by a kfunc that calls .test_1.
Signed-off-by: Amery Hung <ameryhung@gmail.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20250806162540.681679-4-ameryhung@gmail.com
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions
