Lines Matching refs:timer_skel
7 static int timer(struct timer *timer_skel) in timer() argument
12 err = timer__attach(timer_skel); in timer()
16 ASSERT_EQ(timer_skel->data->callback_check, 52, "callback_check1"); in timer()
17 ASSERT_EQ(timer_skel->data->callback2_check, 52, "callback2_check1"); in timer()
19 prog_fd = bpf_program__fd(timer_skel->progs.test1); in timer()
23 timer__detach(timer_skel); in timer()
27 ASSERT_EQ(timer_skel->data->callback_check, 42, "callback_check2"); in timer()
28 ASSERT_EQ(timer_skel->data->callback2_check, 42, "callback2_check2"); in timer()
31 ASSERT_EQ(timer_skel->bss->bss_data, 10, "bss_data"); in timer()
34 ASSERT_EQ(timer_skel->bss->abs_data, 12, "abs_data"); in timer()
37 ASSERT_EQ(timer_skel->bss->err, 0, "err"); in timer()
40 ASSERT_EQ(timer_skel->bss->ok, 1 | 2 | 4, "ok"); in timer()
48 struct timer *timer_skel = NULL; in serial_test_timer() local
51 timer_skel = timer__open_and_load(); in serial_test_timer()
52 if (!ASSERT_OK_PTR(timer_skel, "timer_skel_load")) in serial_test_timer()
55 err = timer(timer_skel); in serial_test_timer()
57 timer__destroy(timer_skel); in serial_test_timer()