diff options
| author | Alexei Starovoitov <[email protected]> | 2021-07-15 00:54:16 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2021-07-15 20:31:11 +0000 |
| commit | 3540f7c6b96a62b581da5aa3d4c5af9408927bef (patch) | |
| tree | 771b22cf946ec9d17b6d2fbdcb0f166995ba9283 /tools/testing/selftests/bpf/progs/timer_mim.c | |
| parent | bpf: Teach stack depth check about async callbacks. (diff) | |
| download | kernel-3540f7c6b96a62b581da5aa3d4c5af9408927bef.tar.gz kernel-3540f7c6b96a62b581da5aa3d4c5af9408927bef.zip | |
selftests/bpf: Add bpf_timer test.
Add bpf_timer test that creates timers in preallocated and
non-preallocated hash, in array and in lru maps.
Let array timer expire once and then re-arm it for 35 seconds.
Arm lru timer into the same callback.
Then arm and re-arm hash timers 10 times each.
At the last invocation of prealloc hash timer cancel the array timer.
Force timer free via LRU eviction and direct bpf_map_delete_elem.
Signed-off-by: Alexei Starovoitov <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Acked-by: Toke Høiland-Jørgensen <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/timer_mim.c')
0 files changed, 0 insertions, 0 deletions
