aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/timer_mim_reject.c
diff options
context:
space:
mode:
authorAlexei Starovoitov <[email protected]>2021-07-14 17:54:16 -0700
committerDaniel Borkmann <[email protected]>2021-07-15 22:31:11 +0200
commit3540f7c6b96a62b581da5aa3d4c5af9408927bef (patch)
tree771b22cf946ec9d17b6d2fbdcb0f166995ba9283 /tools/testing/selftests/bpf/progs/timer_mim_reject.c
parent7ddc80a476c2d599246028af5808d15f9e24c109 (diff)
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_reject.c')
0 files changed, 0 insertions, 0 deletions