diff options
| author | Andrii Nakryiko <[email protected]> | 2023-03-08 10:41:21 -0800 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2023-03-08 16:19:51 -0800 |
| commit | 7e86a8c4ac8d5dcf7dd58f5a4779d1a6ff0a827d (patch) | |
| tree | 902425fa97555d12bae99f5d10119e98aa92d393 /include/linux/timerqueue.h | |
| parent | f59b146092653bcf014ccdc9bd8bc94e79065ce3 (diff) | |
selftests/bpf: implement and test custom testmod_seq iterator
Implement a trivial iterator returning same specified integer value
N times as part of bpf_testmod kernel module. Add selftests to validate
everything works end to end.
We also reuse these tests as "verification-only" tests to validate that
kernel prints the state of custom kernel module-defined iterator correctly:
fp-16=iter_testmod_seq(ref_id=1,state=drained,depth=0)
"testmod_seq" part is an iterator type, and is coming from module's BTF
data dynamically at runtime.
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 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions