Lines Matching refs:timer_skel
7 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()
42 cnt1 = READ_ONCE(timer_skel->bss->cnt); in timer_mim()
45 cnt2 = READ_ONCE(timer_skel->bss->cnt); in timer_mim()
58 struct timer_mim *timer_skel = NULL; in serial_test_timer_mim() local
67 timer_skel = timer_mim__open_and_load(); in serial_test_timer_mim()
68 if (!ASSERT_OK_PTR(timer_skel, "timer_skel_load")) in serial_test_timer_mim()
71 err = timer_mim(timer_skel); in serial_test_timer_mim()
74 timer_mim__destroy(timer_skel); in serial_test_timer_mim()