Home
last modified time | relevance | path

Searched refs:TH_LOG (Results 1 – 25 of 31) sorted by relevance

12

/linux/tools/testing/selftests/net/
H A Depoll_busy_poll.c56 TH_LOG("error creating unix socket"); in FIXTURE_SETUP()
76 TH_LOG("EPIOCGPARAMS on invalid epoll FD should error"); in TEST_F()
79 TH_LOG("EPIOCGPARAMS on invalid epoll FD should set errno to ENOTTY"); in TEST_F()
86 TH_LOG("EPIOCSPARAMS on invalid epoll FD should error"); in TEST_F()
89 TH_LOG("EPIOCSPARAMS on invalid epoll FD should set errno to ENOTTY"); in TEST_F()
106 TH_LOG("epoll_create1 failed?"); in FIXTURE_SETUP()
123 TH_LOG("unable to free capabilities"); in FIXTURE_TEARDOWN()
142 TH_LOG("ioctl EPIOCGPARAMS should succeed"); in TEST_F()
145 TH_LOG("EPIOCGPARAMS busy_poll_usecs should have been 0"); in TEST_F()
148 TH_LOG("EPIOCGPARAMS busy_poll_budget should have been 0"); in TEST_F()
[all …]
H A Dip_local_port_range.c191 ASSERT_GE(fd, 0) TH_LOG("socket failed"); in TEST_F()
196 EXPECT_TRUE(err) TH_LOG("expected setsockopt(IP_LOCAL_PORT_RANGE) to fail"); in TEST_F()
202 EXPECT_TRUE(err) TH_LOG("expected setsockopt(IP_LOCAL_PORT_RANGE) to fail"); in TEST_F()
208 EXPECT_TRUE(err) TH_LOG("expected setsockopt(IP_LOCAL_PORT_RANGE) to fail"); in TEST_F()
212 ASSERT_TRUE(!err) TH_LOG("close failed"); in TEST_F()
234 TH_LOG("lo %5hu, hi %5hu", t->range_lo, t->range_hi); in TEST_F()
241 ASSERT_GE(fd, 0) TH_LOG("#%d: socket failed", i); in TEST_F()
245 ASSERT_TRUE(!err) TH_LOG("#%d: setsockopt(IP_LOCAL_PORT_RANGE) failed", i); in TEST_F()
248 ASSERT_TRUE(!err) TH_LOG("#%d: bind failed", i); in TEST_F()
252 ASSERT_GE(port, 40000) TH_LOG("#%d: expected port within netns range", i); in TEST_F()
[all …]
H A Dreuseaddr_ports_exhausted.c61 ASSERT_NE(-1, fd) TH_LOG("failed to open socket."); in bind_port()
64 ASSERT_EQ(0, ret) TH_LOG("failed to setsockopt: SO_REUSEADDR."); in bind_port()
67 ASSERT_EQ(0, ret) TH_LOG("failed to setsockopt: SO_REUSEPORT."); in bind_port()
92 ASSERT_NE(-1, fd[0]) TH_LOG("failed to bind."); in TEST()
93 EXPECT_EQ(-1, fd[1]) TH_LOG("should fail to bind."); in TEST()
112 ASSERT_NE(-1, fd[0]) TH_LOG("failed to bind."); in TEST()
115 EXPECT_EQ(-1, fd[1]) TH_LOG("should fail to bind because both sockets succeed to be listened."); in TEST()
117 EXPECT_NE(-1, fd[1]) TH_LOG("should succeed to bind to connect to different destinations."); in TEST()
137 ASSERT_EQ(0, ret) TH_LOG("failed to seteuid: %d.", euid[j]); in TEST()
142 ASSERT_EQ(0, ret) TH_LOG("failed to seteuid: 0."); in TEST()
[all …]
/linux/tools/testing/selftests/hid/
H A Dhid_bpf.c53 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()
[all …]
H A Dhidraw.c31 TH_LOG(fmt, ##__VA_ARGS__); \
43 ASSERT_GE(self->hidraw_fd, 0) TH_LOG("open_hidraw"); in FIXTURE_SETUP()
71 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
93 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
99 ASSERT_OK(err) TH_LOG("couldn't revoke the hidraw fd"); in TEST_F()
109 ASSERT_EQ(err, -1) TH_LOG("read_hidraw"); in TEST_F()
110 ASSERT_EQ(errno, ENODEV) TH_LOG("unexpected error code while reading the hidraw node: %d", in TEST_F()
123 ASSERT_OK(err) TH_LOG("couldn't revoke the hidraw fd"); in TEST_F()
127 ASSERT_EQ(err, -1) TH_LOG("ioctl_hidraw"); in TEST_F()
128 ASSERT_EQ(errno, ENODEV) TH_LOG("unexpected error code while doing an ioctl: %d", in TEST_F()
[all …]
H A Dhid_common.h105 TH_LOG(fmt, ##__VA_ARGS__); \
124 TH_LOG("Cannot write to uhid: %m"); in uhid_write()
127 TH_LOG("Wrong size written to uhid: %zd != %zu", in uhid_write()
235 TH_LOG("Invalid event from uhid-dev: %u", ev.type); in uhid_event()
261 TH_LOG("Cannot poll for fds: %m"); in uhid_read_events_thread()
285 TH_LOG("Could not start the uhid thread: %d", err); in uhid_start_listener()
451 ASSERT_GE(hid->uhid_fd, 0) TH_LOG("open uhid-cdev failed; %d", hid->uhid_fd); in setup_uhid()
456 TH_LOG("create uhid device failed: %d", ret); in setup_uhid()
464 TH_LOG("Could not locate uhid device id: %d", hid->hid_id); in setup_uhid()
468 TH_LOG("could not start udev listener: %d", ret); in setup_uhid()
/linux/tools/testing/selftests/mincore/
H A Dmincore_selftest.c53 TH_LOG("mmap error: %s", strerror(errno)); in TEST()
97 TH_LOG("mmap error: %s", strerror(errno)); in TEST()
102 TH_LOG("Page found in memory before use"); in TEST()
111 TH_LOG("Page not found in memory after use"); in TEST()
123 TH_LOG("Page in memory after being zapped"); in TEST()
156 TH_LOG("mmap error: %s", strerror(errno)); in TEST()
161 TH_LOG("Page found in memory before use"); in TEST()
169 TH_LOG("Page not found in memory after use"); in TEST()
205 TH_LOG("Can't allocate array"); in TEST()
212 TH_LOG("Can't create temporary file: %s", in TEST()
[all …]
/linux/tools/testing/selftests/syscall_user_dispatch/
H A Dsud_test.c70 TH_LOG("Kernel does not support CONFIG_SYSCALL_USER_DISPATCH"); in TEST_SIGNAL()
78 TH_LOG("Unreachable!"); in TEST_SIGNAL()
130 TH_LOG("Should reject bad syscall range"); in TEST()
138 TH_LOG("Should reject bad syscall range"); in TEST()
203 TH_LOG("Kernel does not support CONFIG_SYSCALL_USER_DISPATCH"); in TEST()
210 TH_LOG("Dispatch triggered unexpectedly"); in TEST()
219 TH_LOG("Failed to intercept syscall"); in TEST()
222 TH_LOG("Failed to emulate syscall"); in TEST()
225 TH_LOG("Bad si_code in SIGSYS"); in TEST()
228 TH_LOG("Bad si_errno in SIGSYS"); in TEST()
[all …]
/linux/tools/testing/selftests/pidfd/
H A Dpidfd_setns_test.c153 TH_LOG("%m - Failed to open /proc/self/ns"); in FIXTURE_SETUP()
159 TH_LOG("%m - Failed to open pidfd for process %d", self->pid); in FIXTURE_SETUP()
167 TH_LOG("%m - Failed to open %s namespace for process %d", in FIXTURE_SETUP()
175 TH_LOG("%m - Failed to derive %s namespace from pidfd of process %d", in FIXTURE_SETUP()
197 TH_LOG("%m - Failed to open pidfd for process %d", self->pid); in FIXTURE_SETUP()
218 TH_LOG("%m - Failed to unshare mount namespace for process %d", self->pid); in FIXTURE_SETUP()
222 TH_LOG("%m - Failed to unshare cgroup namespace for process %d", self->pid); in FIXTURE_SETUP()
226 TH_LOG("%m - Failed to unshare ipc namespace for process %d", self->pid); in FIXTURE_SETUP()
230 TH_LOG("%m - Failed to unshare uts namespace for process %d", self->pid); in FIXTURE_SETUP()
234 TH_LOG("%m - Failed to unshare net namespace for process %d", self->pid); in FIXTURE_SETUP()
[all …]
H A Dpidfd_getfd_test.c141 TH_LOG("%s: failed to create socketpair", strerror(errno)); in FIXTURE_SETUP()
231 TH_LOG("getfd succeeded while fetching unknown fd"); in TEST_F()
234 TH_LOG("%s: getfd did not get EBADF", strerror(errno)); in TEST_F()
/linux/tools/testing/selftests/kvm/s390/
H A Ducontrol_test.c137 TH_LOG("create VM 0x%llx", info.cpuid); in FIXTURE_SETUP()
144 TH_LOG(KVM_IOCTL_ERROR(KVM_GET_VCPU_MMAP_SIZE, self->kvm_run_size)); in FIXTURE_SETUP()
159 TH_LOG("VM created %p %p", self->run, self->sie_block); in FIXTURE_SETUP()
165 ASSERT_NE(NULL, self->vm_mem) TH_LOG("malloc failed %u", errno); in FIXTURE_SETUP()
173 TH_LOG("ucas map %p %p 0x%llx", in FIXTURE_SETUP()
176 ASSERT_EQ(0, rc) TH_LOG("ucas map result %d not expected, %s", in FIXTURE_SETUP()
179 TH_LOG("page in %p", (void *)self->base_gpa); in FIXTURE_SETUP()
181 ASSERT_EQ(0, rc) TH_LOG("vcpu fault (%p) result %d not expected, %s", in FIXTURE_SETUP()
459 TH_LOG("errno %s (%i) not expected for ioctl KVM_SET_USER_MEMORY_REGION", in TEST_F()
464 TH_LOG("errno %s (%i) not expected for ioctl KVM_SET_USER_MEMORY_REGION2", in TEST_F()
[all …]
/linux/tools/testing/selftests/riscv/vector/
H A Dvstate_prctl.c44 TH_LOG("GET_CONTROL should fail on kernel/hw without ZVE32X"); in TEST()
46 TH_LOG("GET_CONTROL should fail on kernel/hw without ZVE32X"); in TEST()
58 TH_LOG("SET_CONTROL should fail on kernel/hw without ZVE32X"); in TEST()
60 TH_LOG("SET_CONTROL should fail on kernel/hw without ZVE32X"); in TEST()
73 EXPECT_EQ(0, rc) TH_LOG("Enabling V for current should always succeed"); in TEST()
87 TH_LOG("Disabling V in current thread with V enabled must fail with EPERM(%d)", errno); in TEST()
89 TH_LOG("Disabling V in current thread with V enabled must fail with EPERM(%d)", errno); in TEST()
/linux/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c327 TH_LOG("kcmp() syscall missing (test is less accurate)");\
349 TH_LOG("Kernel does not support CONFIG_SECCOMP"); in TEST()
360 TH_LOG("Kernel does not support CONFIG_SECCOMP"); in TEST_SIGNAL()
365 TH_LOG("Unreachable!"); in TEST_SIGNAL()
376 TH_LOG("Kernel does not support PR_SET_NO_NEW_PRIVS!"); in TEST()
387 TH_LOG("Kernel does not support PR_SET_NO_NEW_PRIVS!"); in TEST()
392 TH_LOG("Kernel does not support CONFIG_SECCOMP_FILTER!"); in TEST()
411 TH_LOG("Expected 0 or unsupported for NO_NEW_PRIVS"); in TEST()
453 TH_LOG("Installing %d insn filter was allowed", prog.len); in TEST()
460 TH_LOG("Installing %d insn filter wasn't allowed", prog.len); in TEST()
[all …]
/linux/tools/testing/selftests/rtc/
H A Drtctest.c58 TH_LOG("Current RTC date/time is %02d/%02d/%02d %02d:%02d:%02d.", in TEST_F()
119 TH_LOG("Continuously reading RTC time for %ds (with %dms breaks after every read).",
146 TH_LOG("Performed %ld RTC time reads.", iter_count);
161 TH_LOG("skip update IRQs not supported.");
190 TH_LOG("skip update IRQs not supported."); in TEST_F()
248 TH_LOG("skip alarms are not supported."); in TEST_F()
255 TH_LOG("Alarm time now set to %02d:%02d:%02d.", in TEST_F()
275 TH_LOG("data: %lx", data); in TEST_F()
318 TH_LOG("skip alarms are not supported."); in TEST_F()
325 TH_LOG("Alarm time now set to %02d/%02d/%02d %02d:%02d:%02d.", in TEST_F()
[all …]
/linux/tools/testing/selftests/ptrace/
H A Dget_syscall_info.c39 TH_LOG("wait #%d: " fmt, \
80 TH_LOG("fork: %m"); in TEST()
87 TH_LOG("PTRACE_TRACEME: %m"); in TEST()
91 TH_LOG("kill SIGSTOP: %m"); in TEST()
H A Dget_set_sud.c29 TH_LOG("PTRACE_TRACEME: %m"); in TEST()
/linux/tools/testing/selftests/prctl/
H A Dset-anon-vma-name-test.c93 TH_LOG("Try to rename the VMA with correct parameters"); in TEST_F()
97 TH_LOG("Try to pass invalid name (with non-printable character \\1) to rename the VMA"); in TEST_F()
100 TH_LOG("Try to rename non-anonymous VMA"); in TEST_F()
/linux/tools/testing/selftests/landlock/
H A Dcommon.h64 TH_LOG("Failed to set capabilities: %s", strerror(errno)); in _init_caps()
94 TH_LOG("Failed to set capability %d: %s", cap, strerror(errno)); in _change_cap()
118 TH_LOG("Failed to set ambient capability %d: %s", cap, in set_ambient_cap()
203 TH_LOG("Failed to enforce ruleset: %s", strerror(errno)); in enforce_ruleset()
H A Dscoped_common.h24 TH_LOG("Failed to create a ruleset: %s", strerror(errno)); in create_scoped_domain()
H A Dptrace_test.c37 TH_LOG("Failed to create a ruleset: %s", strerror(errno)); in create_domain()
267 TH_LOG("Incomplete tests due to Yama restrictions (scope %d)", in TEST_F()
/linux/tools/testing/selftests/net/af_unix/
H A Dmsg_oob.c234 TH_LOG("AF_UNIX :%s", ret[0] < 0 ? strerror(recv_errno[0]) : recv_buf[0]); in __recvpair()
235 TH_LOG("Expected:%s", expected_errno ? strerror(expected_errno) : expected_buf); in __recvpair()
242 TH_LOG("AF_UNIX :%s", ret[0] < 0 ? strerror(recv_errno[0]) : recv_buf[0]); in __recvpair()
243 TH_LOG("TCP :%s", ret[1] < 0 ? strerror(recv_errno[1]) : recv_buf[1]); in __recvpair()
258 TH_LOG("AF_UNIX :%s", ret[0] < 0 ? strerror(recv_errno[0]) : recv_buf[0]); in __recvpair()
259 TH_LOG("Expected:%s", expected_errno ? strerror(expected_errno) : expected_buf); in __recvpair()
267 TH_LOG("AF_UNIX :%s", ret[0] < 0 ? strerror(recv_errno[0]) : recv_buf[0]); in __recvpair()
268 TH_LOG("TCP :%s", ret[1] < 0 ? strerror(recv_errno[1]) : recv_buf[1]); in __recvpair()
/linux/tools/testing/selftests/exec/
H A Dnon-regular.c27 TH_LOG("Not ENOENT: %s", pathname); in rm()
31 TH_LOG("Failed to remove: %s", pathname); in rm()
69 TH_LOG("Could not find viable 'true' binary"); in setup_link()
/linux/tools/testing/selftests/user_events/
H A Duser_events_selftests.h102 TH_LOG("Setup failed due to: %s", message); \
/linux/tools/testing/selftests/mm/
H A Dmdwe_test.c191 TH_LOG("PR_SET_MDWE failed or unsupported"); in FIXTURE_SETUP()
200 TH_LOG("fork failed\n"); in FIXTURE_SETUP()
/linux/tools/testing/selftests/uevent/
H A Duevent_filtering.c356 TH_LOG("Uevent filtering tests require root privileges. Skipping test"); in TEST()
363 TH_LOG(__DEV_FULL " does not exist. Skipping test"); in TEST()

12