Home
last modified time | relevance | path

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

12

/linux-6.12.1/tools/testing/selftests/net/
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 …]
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 …]
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-6.12.1/tools/testing/selftests/filesystems/binderfs/
Dbinderfs_test.c45 TH_LOG("%s - Failed to unshare mount namespace", in change_mountns()
51 TH_LOG("%s - Failed to mount / as private", in change_mountns()
74 TH_LOG("%s - Failed to create binderfs mountpoint", in __do_binderfs_test()
83 TH_LOG("%s - Failed to mount binderfs", strerror(errno)); in __do_binderfs_test()
94 TH_LOG("%s - Failed to open binder-control device", in __do_binderfs_test()
104 TH_LOG("%s - Failed to allocate new binder device", in __do_binderfs_test()
109 TH_LOG("Allocated new binder device with major %d, minor %d, and name %s", in __do_binderfs_test()
117 TH_LOG("%s - Failed to open my-binder device", in __do_binderfs_test()
127 TH_LOG("%s - Failed to open perform BINDER_VERSION request", in __do_binderfs_test()
132 TH_LOG("Detected binder version: %d", version.protocol_version); in __do_binderfs_test()
[all …]
/linux-6.12.1/tools/testing/selftests/hid/
Dhid_bpf.c63 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()
[all …]
Dhidraw.c34 TH_LOG(fmt, ##__VA_ARGS__); \
59 ASSERT_GE(self->hidraw_fd, 0) TH_LOG("open_hidraw"); in FIXTURE_SETUP()
87 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
109 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
115 ASSERT_OK(err) TH_LOG("couldn't revoke the hidraw fd"); in TEST_F()
125 ASSERT_EQ(err, -1) TH_LOG("read_hidraw"); in TEST_F()
126 ASSERT_EQ(errno, ENODEV) TH_LOG("unexpected error code while reading the hidraw node: %d", in TEST_F()
139 ASSERT_OK(err) TH_LOG("couldn't revoke the hidraw fd"); in TEST_F()
143 ASSERT_EQ(err, -1) TH_LOG("ioctl_hidraw"); in TEST_F()
144 ASSERT_EQ(errno, ENODEV) TH_LOG("unexpected error code while doing an ioctl: %d", in TEST_F()
[all …]
Dhid_common.h95 TH_LOG(fmt, ##__VA_ARGS__); \
114 TH_LOG("Cannot write to uhid: %m"); in uhid_write()
117 TH_LOG("Wrong size written to uhid: %zd != %zu", in uhid_write()
223 TH_LOG("Invalid event from uhid-dev: %u", ev.type); in uhid_event()
249 TH_LOG("Cannot poll for fds: %m"); in uhid_read_events_thread()
273 TH_LOG("Could not start the uhid thread: %d", err); in uhid_start_listener()
307 ASSERT_GE(fd, 0) TH_LOG("open uhid-cdev failed; %d", fd); in setup_uhid()
311 TH_LOG("create uhid device failed: %d", ret); in setup_uhid()
/linux-6.12.1/tools/testing/selftests/mincore/
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-6.12.1/tools/testing/selftests/syscall_user_dispatch/
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-6.12.1/tools/testing/selftests/pidfd/
Dpidfd_setns_test.c192 TH_LOG("%m - Failed to open /proc/self/ns"); in FIXTURE_SETUP()
198 TH_LOG("%m - Failed to open pidfd for process %d", self->pid); in FIXTURE_SETUP()
206 TH_LOG("%m - Failed to open %s namespace for process %d", in FIXTURE_SETUP()
214 TH_LOG("%m - Failed to derive %s namespace from pidfd of process %d", in FIXTURE_SETUP()
236 TH_LOG("%m - Failed to open pidfd for process %d", self->pid); in FIXTURE_SETUP()
257 TH_LOG("%m - Failed to unshare mount namespace for process %d", self->pid); in FIXTURE_SETUP()
261 TH_LOG("%m - Failed to unshare cgroup namespace for process %d", self->pid); in FIXTURE_SETUP()
265 TH_LOG("%m - Failed to unshare ipc namespace for process %d", self->pid); in FIXTURE_SETUP()
269 TH_LOG("%m - Failed to unshare uts namespace for process %d", self->pid); in FIXTURE_SETUP()
273 TH_LOG("%m - Failed to unshare net namespace for process %d", self->pid); in FIXTURE_SETUP()
[all …]
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-6.12.1/tools/testing/selftests/clone3/
Dclone3_cap_checkpoint_restore.c51 TH_LOG("%s - Failed to create new process", strerror(errno)); in call_clone3_set_tid()
59 TH_LOG("I am the child, my PID is %d (expected %d)", getpid(), set_tid[0]); in call_clone3_set_tid()
66 TH_LOG("I am the parent (%d). My child's pid is %d", getpid(), pid); in call_clone3_set_tid()
69 TH_LOG("Child returned %s", strerror(errno)); in call_clone3_set_tid()
84 TH_LOG("[%d] Trying clone3() with CLONE_SET_TID to %d", getpid(), set_tid[0]); in test_clone3_set_tid()
86 TH_LOG("[%d] clone3() with CLONE_SET_TID %d says:%d", getpid(), set_tid[0], ret); in test_clone3_set_tid()
151 TH_LOG("Child has PID %d", getpid()); in TEST()
155 TH_LOG("Waiting for child %d failed", pid); in TEST()
161 TH_LOG("Could not set CAP_CHECKPOINT_RESTORE"); in TEST()
166 TH_LOG("Failed to setgid(65534)"); in TEST()
[all …]
/linux-6.12.1/tools/testing/selftests/arm64/pauth/
Dpac.c210 ASSERT_TRUE(0) TH_LOG("SIGSEGV/SIGILL signal did not occur"); in TEST()
234 ASSERT_NE(0, keyia) TH_LOG("keyia instructions did nothing"); in TEST()
235 ASSERT_NE(0, keyib) TH_LOG("keyib instructions did nothing"); in TEST()
236 ASSERT_NE(0, keyda) TH_LOG("keyda instructions did nothing"); in TEST()
237 ASSERT_NE(0, keydb) TH_LOG("keydb instructions did nothing"); in TEST()
249 ASSERT_NE(0, keyg) TH_LOG("keyg instructions did nothing"); in TEST()
263 TH_LOG("WARNING: Generic PAUTH not enabled. Skipping generic key checks"); in TEST()
287 ASSERT_EQ(0, same) TH_LOG("%d keys clashed every time", same); in TEST()
306 TH_LOG("WARNING: Generic PAUTH not enabled. Skipping generic key checks"); in TEST()
312 ASSERT_EQ(0, ret) TH_LOG("failed to run worker"); in TEST()
[all …]
/linux-6.12.1/tools/testing/selftests/rtc/
Drtctest.c52 TH_LOG("Current RTC date/time is %02d/%02d/%02d %02d:%02d:%02d.", in TEST_F()
95 TH_LOG("Continuously reading RTC time for %ds (with %dms breaks after every read).",
122 TH_LOG("Performed %ld RTC time reads.", iter_count);
137 TH_LOG("skip update IRQs not supported.");
166 TH_LOG("skip update IRQs not supported."); in TEST_F()
214 TH_LOG("skip alarms are not supported."); in TEST_F()
221 TH_LOG("Alarm time now set to %02d:%02d:%02d.", in TEST_F()
241 TH_LOG("data: %lx", data); in TEST_F()
274 TH_LOG("skip alarms are not supported."); in TEST_F()
281 TH_LOG("Alarm time now set to %02d/%02d/%02d %02d:%02d:%02d.", in TEST_F()
[all …]
/linux-6.12.1/tools/testing/selftests/seccomp/
Dseccomp_bpf.c322 TH_LOG("kcmp() syscall missing (test is less accurate)");\
344 TH_LOG("Kernel does not support CONFIG_SECCOMP"); in TEST()
355 TH_LOG("Kernel does not support CONFIG_SECCOMP"); in TEST_SIGNAL()
360 TH_LOG("Unreachable!"); in TEST_SIGNAL()
371 TH_LOG("Kernel does not support PR_SET_NO_NEW_PRIVS!"); in TEST()
382 TH_LOG("Kernel does not support PR_SET_NO_NEW_PRIVS!"); in TEST()
387 TH_LOG("Kernel does not support CONFIG_SECCOMP_FILTER!"); in TEST()
406 TH_LOG("Expected 0 or unsupported for NO_NEW_PRIVS"); in TEST()
448 TH_LOG("Installing %d insn filter was allowed", prog.len); in TEST()
455 TH_LOG("Installing %d insn filter wasn't allowed", prog.len); in TEST()
[all …]
/linux-6.12.1/tools/testing/selftests/kvm/s390x/
Ducontrol_test.c92 TH_LOG("create VM 0x%llx", info.cpuid); in FIXTURE_SETUP()
99 TH_LOG(KVM_IOCTL_ERROR(KVM_GET_VCPU_MMAP_SIZE, self->kvm_run_size)); in FIXTURE_SETUP()
114 TH_LOG("VM created %p %p", self->run, self->sie_block); in FIXTURE_SETUP()
120 ASSERT_NE(NULL, self->vm_mem) TH_LOG("malloc failed %u", errno); in FIXTURE_SETUP()
128 TH_LOG("ucas map %p %p 0x%llx", in FIXTURE_SETUP()
131 ASSERT_EQ(0, rc) TH_LOG("ucas map result %d not expected, %s", in FIXTURE_SETUP()
134 TH_LOG("page in %p", (void *)self->base_gpa); in FIXTURE_SETUP()
136 ASSERT_EQ(0, rc) TH_LOG("vcpu fault (%p) result %d not expected, %s", in FIXTURE_SETUP()
301 TH_LOG("copy code %p to vm mapped memory %p / %p", in TEST_F()
/linux-6.12.1/tools/testing/selftests/prctl/
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-6.12.1/tools/testing/selftests/ptrace/
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()
/linux-6.12.1/tools/testing/selftests/net/af_unix/
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-6.12.1/tools/testing/selftests/landlock/
Dcommon.h91 TH_LOG("Failed to set capabilities: %s", strerror(errno)); in _init_caps()
121 TH_LOG("Failed to set capability %d: %s", cap, strerror(errno)); in _change_cap()
145 TH_LOG("Failed to set ambient capability %d: %s", cap, in set_ambient_cap()
230 TH_LOG("Failed to enforce ruleset: %s", strerror(errno)); in enforce_ruleset()
Dscoped_common.h24 TH_LOG("Failed to create a ruleset: %s", strerror(errno)); in create_scoped_domain()
Dptrace_test.c39 TH_LOG("Failed to create a ruleset: %s", strerror(errno)); in create_domain()
269 TH_LOG("Incomplete tests due to Yama restrictions (scope %d)", in TEST_F()
Dfs_test.c193 TH_LOG("Failed to create directory \"%s\": %s", parent, in mkdir_parents()
207 TH_LOG("Failed to create directory \"%s\": %s", path, in create_directory()
218 TH_LOG("Failed to create file \"%s\": %s", path, in create_file()
292 TH_LOG("Failed to mount the %s filesystem: %s", mnt->type, in prepare_layout_opt()
711 TH_LOG("Failed to open directory \"%s\": %s", path, in add_path_beneath()
717 TH_LOG("Failed to update the ruleset with \"%s\": %s", path, in add_path_beneath()
751 TH_LOG("No rule list"); in create_ruleset()
755 TH_LOG("Empty rule list"); in create_ruleset()
762 TH_LOG("Failed to create a ruleset: %s", strerror(errno)); in create_ruleset()
1652 TH_LOG("Failed to pivot root: %s", strerror(errno)); in TEST_F_FORK()
[all …]
/linux-6.12.1/tools/testing/selftests/exec/
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-6.12.1/tools/testing/selftests/user_events/
Duser_events_selftests.h102 TH_LOG("Setup failed due to: %s", message); \

12