aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorAlexei Starovoitov <[email protected]>2021-07-14 17:54:17 -0700
committerDaniel Borkmann <[email protected]>2021-07-15 22:31:11 +0200
commit61f71e746c72f07097b759809c36e814387bc24f (patch)
treeaa1cea02d78063f25858cd2f30d5b12f9dd3793d /tools/perf/scripts/python/net_dropmonitor.py
parent3540f7c6b96a62b581da5aa3d4c5af9408927bef (diff)
selftests/bpf: Add a test with bpf_timer in inner map.
Check that map-in-map supports bpf timers. Check that indirect "recursion" of timer callbacks works: timer_cb1() { bpf_timer_set_callback(timer_cb2); } timer_cb2() { bpf_timer_set_callback(timer_cb1); } Check that bpf_map_release htab_free_prealloced_timers bpf_timer_cancel_and_free hrtimer_cancel works while timer cb is running. "while true; do ./test_progs -t timer_mim; done" is a great stress test. It caught missing timer cancel in htab->extra_elems. timer_mim_reject.c is a negative test that checks that timer<->map mismatch is prevented. 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/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions