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.c24 static int timer(struct timer *timer_skel) in timer() argument
31 err = timer__attach(timer_skel); in timer()
35 ASSERT_EQ(timer_skel->data->callback_check, 52, "callback_check1"); in timer()
36 ASSERT_EQ(timer_skel->data->callback2_check, 52, "callback2_check1"); in timer()
37 ASSERT_EQ(timer_skel->bss->pinned_callback_check, 0, "pinned_callback_check1"); in timer()
39 prog_fd = bpf_program__fd(timer_skel->progs.test1); in timer()
43 timer__detach(timer_skel); in timer()
47 ASSERT_EQ(timer_skel->data->callback_check, 42, "callback_check2"); in timer()
48 ASSERT_EQ(timer_skel->data->callback2_check, 42, "callback2_check2"); in timer()
51 ASSERT_EQ(timer_skel->bss->bss_data, 10, "bss_data"); in timer()
[all …]
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 …]