Home
last modified time | relevance | path

Searched refs:timer_skel (Results 1 – 2 of 2) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtimer_mim.c7 static int timer_mim(struct timer_mim *timer_skel) in timer_mim() argument
13 err = timer_mim__attach(timer_skel); in timer_mim()
17 prog_fd = bpf_program__fd(timer_skel->progs.test1); in timer_mim()
21 timer_mim__detach(timer_skel); in timer_mim()
24 cnt1 = READ_ONCE(timer_skel->bss->cnt); in timer_mim()
26 cnt2 = READ_ONCE(timer_skel->bss->cnt); in timer_mim()
33 ASSERT_EQ(timer_skel->bss->err, 0, "err"); in timer_mim()
35 ASSERT_EQ(timer_skel->bss->ok, 1 | 2, "ok"); in timer_mim()
37 close(bpf_map__fd(timer_skel->maps.inner_htab)); in timer_mim()
38 err = bpf_map__delete_elem(timer_skel->maps.outer_arr, &key1, sizeof(key1), 0); in timer_mim()
[all …]
H A Dtimer.c41 static int timer_stress_runner(struct timer *timer_skel, bool async_cancel) in timer()
48 timer_skel->bss->async_cancel = async_cancel; in timer()
49 prog_fd = bpf_program__fd(timer_skel->progs.race); in timer()
65 static int timer_stress(struct timer *timer_skel) in timer()
67 return timer_stress_runner(timer_skel, false); in timer()
70 static int timer_stress_async_cancel(struct timer *timer_skel) in timer()
72 return timer_stress_runner(timer_skel, true); in timer()
87 static int run_nmi_test(struct timer *timer_skel, struct bpf_program *prog) in serial_test_timer()
149 ASSERT_GT(timer_skel->bss->test_hits, 0, "test_hits");
167 static int timer_stress_nmi_race(struct timer *timer_skel)
25 timer(struct timer * timer_skel) timer() argument
86 struct timer *timer_skel = NULL; serial_test_timer() local
[all...]