Lines Matching refs:timer_skel
24 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()
54 ASSERT_EQ(timer_skel->bss->abs_data, 12, "abs_data"); in timer()
57 ASSERT_EQ(timer_skel->bss->pinned_callback_check, 2, "pinned_callback_check"); in timer()
60 ASSERT_EQ(timer_skel->bss->err, 0, "err"); in timer()
63 ASSERT_EQ(timer_skel->bss->ok, 1 | 2 | 4, "ok"); in timer()
65 prog_fd = bpf_program__fd(timer_skel->progs.race); in timer()
85 struct timer *timer_skel = NULL; in serial_test_timer() local
88 timer_skel = timer__open_and_load(); in serial_test_timer()
89 if (!ASSERT_OK_PTR(timer_skel, "timer_skel_load")) in serial_test_timer()
92 err = timer(timer_skel); in serial_test_timer()
94 timer__destroy(timer_skel); in serial_test_timer()