Lines Matching refs:TH_LOG
63 TH_LOG(fmt, ##__VA_ARGS__); \
106 TH_LOG("too many programs are to be loaded"); in load_programs()
119 ASSERT_OK_PTR(prog) TH_LOG("can not find program by name '%s'", programs[i].name); in load_programs()
125 ASSERT_OK_PTR(map) TH_LOG("can not find struct_ops by name '%s'", in load_programs()
130 ASSERT_OK_PTR(ops_hid_id) TH_LOG("unable to retrieve struct_ops data"); in load_programs()
143 ASSERT_OK(err) TH_LOG("hid_skel_load failed: %d", err); in load_programs()
150 ASSERT_OK_PTR(map) TH_LOG("can not find struct_ops by name '%s'", in load_programs()
154 ASSERT_OK_PTR(self->hid_links[i]) TH_LOG("failed to attach struct ops '%s'", in load_programs()
161 ASSERT_GE(self->hidraw_fd, 0) TH_LOG("open_hidraw"); in load_programs()
189 ASSERT_EQ(self->skel->data->callback_check, 52) TH_LOG("callback_check1"); in TEST_F()
190 ASSERT_EQ(self->skel->data->callback2_check, 52) TH_LOG("callback2_check1"); in TEST_F()
198 ASSERT_EQ(self->skel->data->callback_check, 42) TH_LOG("callback_check1"); in TEST_F()
203 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
214 ASSERT_EQ(self->skel->data->callback_check, 47) TH_LOG("callback_check1"); in TEST_F()
219 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
247 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
260 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
279 ASSERT_NULL(link) TH_LOG("unexpected return value when re-attaching the struct_ops"); in TEST_F()
298 ASSERT_OK_PTR(link) TH_LOG("HID-BPF link not created"); in TEST_F()
301 ASSERT_GE(link_fd, 0) TH_LOG("HID-BPF link FD not valid"); in TEST_F()
311 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
321 ASSERT_OK(err) TH_LOG("error while calling bpf_obj_pin"); in TEST_F()
330 ASSERT_GE(self->hidraw_fd, 0) TH_LOG("open_hidraw"); in TEST_F()
341 ASSERT_EQ(err, 6) TH_LOG("read_hidraw_no_bpf"); in TEST_F()
360 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
390 ASSERT_EQ(err, 9) TH_LOG("read_hidraw"); in TEST_F()
393 ASSERT_EQ(buf[2], 0) TH_LOG("leftovers_from_previous_test"); in TEST_F()
425 ASSERT_EQ(err, -1) TH_LOG("read_hidraw"); in TEST_F()
429 ASSERT_OK(err) TH_LOG("error while calling bpf_prog_test_run_opts"); in TEST_F()
436 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
477 ASSERT_OK(err) TH_LOG("error while calling bpf_prog_test_run_opts"); in TEST_F()
478 ASSERT_OK(cond_err) TH_LOG("error while calling waiting for the condition"); in TEST_F()
515 ASSERT_OK(err) TH_LOG("error while calling bpf_prog_test_run_opts"); in TEST_F()
547 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
550 ASSERT_EQ(buf[2], 0) TH_LOG("leftovers_from_previous_test"); in TEST_F()
559 ASSERT_LT(err, 0) TH_LOG("unexpected success while reading HIDIOCGFEATURE: %d", err); in TEST_F()
560 ASSERT_EQ(errno, 20) TH_LOG("unexpected error code while reading HIDIOCGFEATURE: %d", in TEST_F()
569 ASSERT_GE(self->hidraw_fd, 0) TH_LOG("open_hidraw"); in TEST_F()
572 ASSERT_GE(err, 0) TH_LOG("error while reading HIDIOCGFEATURE: %d", err); in TEST_F()
595 ASSERT_EQ(err, 3) TH_LOG("unexpected returned size while reading HIDIOCGFEATURE: %d", err); in TEST_F()
621 ASSERT_EQ(err, 3) TH_LOG("unexpected returned size while reading HIDIOCGFEATURE: %d", err); in TEST_F()
649 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
652 ASSERT_EQ(buf[2], 0) TH_LOG("leftovers_from_previous_test"); in TEST_F()
661 ASSERT_LT(err, 0) TH_LOG("unexpected success while sending hid_hw_output_report: %d", err); in TEST_F()
662 ASSERT_EQ(errno, 25) TH_LOG("unexpected error code while sending hid_hw_output_report: %d", in TEST_F()
671 ASSERT_GE(self->hidraw_fd, 0) TH_LOG("open_hidraw"); in TEST_F()
674 ASSERT_GE(err, 0) TH_LOG("error while sending hid_hw_output_report: %d", err); in TEST_F()
698 ASSERT_EQ(err, 2) TH_LOG("unexpected returned size while sending hid_hw_output_report: %d", in TEST_F()
722 ASSERT_EQ(err, 2) TH_LOG("unexpected returned size while sending hid_hw_output_report: %d", in TEST_F()
750 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
759 ASSERT_EQ(err, 9) TH_LOG("read_hidraw"); in TEST_F()
788 ASSERT_EQ(err, 9) TH_LOG("read_hidraw"); in TEST_F()
795 ASSERT_EQ(err, 9) TH_LOG("read_hidraw"); in TEST_F()
824 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
831 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
838 ASSERT_EQ(err, -1) TH_LOG("read_hidraw"); in TEST_F()
875 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
901 ASSERT_GE(err, 0) TH_LOG("error while reading HIDIOCGRDESCSIZE: %d", err); in TEST_F()
908 ASSERT_GE(err, 0) TH_LOG("error while reading HIDIOCGRDESC: %d", err); in TEST_F()