Lines Matching refs:TH_LOG

53 	TH_LOG(fmt, ##__VA_ARGS__); \
83 TH_LOG("too many programs are to be loaded"); in load_programs()
96 ASSERT_OK_PTR(prog) TH_LOG("can not find program by name '%s'", programs[i].name); in load_programs()
102 ASSERT_OK_PTR(map) TH_LOG("can not find struct_ops by name '%s'", in load_programs()
107 ASSERT_OK_PTR(ops_hid_id) TH_LOG("unable to retrieve struct_ops data"); in load_programs()
120 ASSERT_OK(err) TH_LOG("hid_skel_load failed: %d", err); in load_programs()
127 ASSERT_OK_PTR(map) TH_LOG("can not find struct_ops by name '%s'", in load_programs()
131 ASSERT_OK_PTR(self->hid_links[i]) TH_LOG("failed to attach struct ops '%s'", in load_programs()
138 ASSERT_GE(self->hidraw_fd, 0) TH_LOG("open_hidraw"); in load_programs()
166 ASSERT_EQ(self->skel->data->callback_check, 52) TH_LOG("callback_check1"); in TEST_F()
167 ASSERT_EQ(self->skel->data->callback2_check, 52) TH_LOG("callback2_check1"); in TEST_F()
175 ASSERT_EQ(self->skel->data->callback_check, 42) TH_LOG("callback_check1"); in TEST_F()
180 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
191 ASSERT_EQ(self->skel->data->callback_check, 47) TH_LOG("callback_check1"); in TEST_F()
196 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
224 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
237 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
256 ASSERT_NULL(link) TH_LOG("unexpected return value when re-attaching the struct_ops"); in TEST_F()
275 ASSERT_OK_PTR(link) TH_LOG("HID-BPF link not created"); in TEST_F()
278 ASSERT_GE(link_fd, 0) TH_LOG("HID-BPF link FD not valid"); in TEST_F()
288 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
298 ASSERT_OK(err) TH_LOG("error while calling bpf_obj_pin"); in TEST_F()
307 ASSERT_GE(self->hidraw_fd, 0) TH_LOG("open_hidraw"); in TEST_F()
318 ASSERT_EQ(err, 6) TH_LOG("read_hidraw_no_bpf"); in TEST_F()
337 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
367 ASSERT_EQ(err, 9) TH_LOG("read_hidraw"); in TEST_F()
370 ASSERT_EQ(buf[2], 0) TH_LOG("leftovers_from_previous_test"); in TEST_F()
402 ASSERT_EQ(err, -1) TH_LOG("read_hidraw"); in TEST_F()
406 ASSERT_OK(err) TH_LOG("error while calling bpf_prog_test_run_opts"); in TEST_F()
413 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
454 ASSERT_OK(err) TH_LOG("error while calling bpf_prog_test_run_opts"); in TEST_F()
455 ASSERT_OK(cond_err) TH_LOG("error while calling waiting for the condition"); in TEST_F()
492 ASSERT_OK(err) TH_LOG("error while calling bpf_prog_test_run_opts"); in TEST_F()
524 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
527 ASSERT_EQ(buf[2], 0) TH_LOG("leftovers_from_previous_test"); in TEST_F()
536 ASSERT_LT(err, 0) TH_LOG("unexpected success while reading HIDIOCGFEATURE: %d", err); in TEST_F()
537 ASSERT_EQ(errno, 20) TH_LOG("unexpected error code while reading HIDIOCGFEATURE: %d", in TEST_F()
546 ASSERT_GE(self->hidraw_fd, 0) TH_LOG("open_hidraw"); in TEST_F()
549 ASSERT_GE(err, 0) TH_LOG("error while reading HIDIOCGFEATURE: %d", err); in TEST_F()
572 ASSERT_EQ(err, 3) TH_LOG("unexpected returned size while reading HIDIOCGFEATURE: %d", err); in TEST_F()
598 ASSERT_EQ(err, 3) TH_LOG("unexpected returned size while reading HIDIOCGFEATURE: %d", err); in TEST_F()
626 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
629 ASSERT_EQ(buf[2], 0) TH_LOG("leftovers_from_previous_test"); in TEST_F()
638 ASSERT_LT(err, 0) TH_LOG("unexpected success while sending hid_hw_output_report: %d", err); in TEST_F()
639 ASSERT_EQ(errno, 25) TH_LOG("unexpected error code while sending hid_hw_output_report: %d", in TEST_F()
648 ASSERT_GE(self->hidraw_fd, 0) TH_LOG("open_hidraw"); in TEST_F()
651 ASSERT_GE(err, 0) TH_LOG("error while sending hid_hw_output_report: %d", err); in TEST_F()
675 ASSERT_EQ(err, 2) TH_LOG("unexpected returned size while sending hid_hw_output_report: %d", in TEST_F()
699 ASSERT_EQ(err, 2) TH_LOG("unexpected returned size while sending hid_hw_output_report: %d", in TEST_F()
727 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
736 ASSERT_EQ(err, 9) TH_LOG("read_hidraw"); in TEST_F()
765 ASSERT_EQ(err, 9) TH_LOG("read_hidraw"); in TEST_F()
772 ASSERT_EQ(err, 9) TH_LOG("read_hidraw"); in TEST_F()
801 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
808 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
815 ASSERT_EQ(err, -1) TH_LOG("read_hidraw"); in TEST_F()
852 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
878 ASSERT_GE(err, 0) TH_LOG("error while reading HIDIOCGRDESCSIZE: %d", err); in TEST_F()
885 ASSERT_GE(err, 0) TH_LOG("error while reading HIDIOCGRDESC: %d", err); in TEST_F()