Home
last modified time | relevance | path

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

12

/linux-6.6.21/tools/testing/selftests/net/
Dip_local_port_range.c175 ASSERT_GE(fd, 0) TH_LOG("socket failed"); in TEST_F()
180 EXPECT_TRUE(err) TH_LOG("expected setsockopt(IP_LOCAL_PORT_RANGE) to fail"); in TEST_F()
186 EXPECT_TRUE(err) TH_LOG("expected setsockopt(IP_LOCAL_PORT_RANGE) to fail"); in TEST_F()
192 EXPECT_TRUE(err) TH_LOG("expected setsockopt(IP_LOCAL_PORT_RANGE) to fail"); in TEST_F()
196 ASSERT_TRUE(!err) TH_LOG("close failed"); in TEST_F()
218 TH_LOG("lo %5hu, hi %5hu", t->range_lo, t->range_hi); in TEST_F()
225 ASSERT_GE(fd, 0) TH_LOG("#%d: socket failed", i); in TEST_F()
229 ASSERT_TRUE(!err) TH_LOG("#%d: setsockopt(IP_LOCAL_PORT_RANGE) failed", i); in TEST_F()
232 ASSERT_TRUE(!err) TH_LOG("#%d: bind failed", i); in TEST_F()
236 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 …]
Dso_incoming_cpu.c231 TH_LOG("SO_INCOMING_CPU is very likely to be " in verify_incoming_cpu()
/linux-6.6.21/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()
73 TH_LOG("%s - Failed to create binderfs mountpoint", in __do_binderfs_test()
82 TH_LOG("%s - Failed to mount binderfs", strerror(errno)); in __do_binderfs_test()
93 TH_LOG("%s - Failed to open binder-control device", in __do_binderfs_test()
103 TH_LOG("%s - Failed to allocate new binder device", in __do_binderfs_test()
108 TH_LOG("Allocated new binder device with major %d, minor %d, and name %s", in __do_binderfs_test()
116 TH_LOG("%s - Failed to open my-binder device", in __do_binderfs_test()
126 TH_LOG("%s - Failed to open perform BINDER_VERSION request", in __do_binderfs_test()
131 TH_LOG("Detected binder version: %d", version.protocol_version); in __do_binderfs_test()
[all …]
/linux-6.6.21/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.6.21/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()
189 TH_LOG("Kernel does not support CONFIG_SYSCALL_USER_DISPATCH"); in TEST()
196 TH_LOG("Dispatch triggered unexpectedly"); in TEST()
205 TH_LOG("Failed to intercept syscall"); in TEST()
208 TH_LOG("Failed to emulate syscall"); in TEST()
211 TH_LOG("Bad si_code in SIGSYS"); in TEST()
214 TH_LOG("Bad si_errno in SIGSYS"); in TEST()
[all …]
/linux-6.6.21/tools/testing/selftests/clone3/
Dclone3_cap_checkpoint_restore.c55 TH_LOG("%s - Failed to create new process", strerror(errno)); in call_clone3_set_tid()
63 TH_LOG("I am the child, my PID is %d (expected %d)", getpid(), set_tid[0]); in call_clone3_set_tid()
70 TH_LOG("I am the parent (%d). My child's pid is %d", getpid(), pid); in call_clone3_set_tid()
73 TH_LOG("Child returned %s", strerror(errno)); in call_clone3_set_tid()
88 TH_LOG("[%d] Trying clone3() with CLONE_SET_TID to %d", getpid(), set_tid[0]); in test_clone3_set_tid()
90 TH_LOG("[%d] clone3() with CLONE_SET_TID %d says:%d", getpid(), set_tid[0], ret); in test_clone3_set_tid()
155 TH_LOG("Child has PID %d", getpid()); in TEST()
159 TH_LOG("Waiting for child %d failed", pid); in TEST()
165 TH_LOG("Could not set CAP_CHECKPOINT_RESTORE"); in TEST()
170 TH_LOG("Failed to setgid(65534)"); in TEST()
[all …]
/linux-6.6.21/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.6.21/tools/testing/selftests/hid/
Dhid_bpf.c108 TH_LOG(fmt, ##__VA_ARGS__); \
123 TH_LOG("Cannot write to uhid: %m"); in uhid_write()
126 TH_LOG("Wrong size written to uhid: %zd != %zu", in uhid_write()
225 TH_LOG("Invalid event from uhid-dev: %u", ev.type); in uhid_event()
251 TH_LOG("Cannot poll for fds: %m"); in uhid_read_events_thread()
275 TH_LOG("Could not start the uhid thread: %d", err); in uhid_start_listener()
309 ASSERT_GE(fd, 0) TH_LOG("open uhid-cdev failed; %d", fd); in setup_uhid()
313 TH_LOG("create uhid device failed: %d", ret); in setup_uhid()
475 TH_LOG(fmt, ##__VA_ARGS__); \
524 TH_LOG("too many programs are to be loaded"); in load_programs()
[all …]
/linux-6.6.21/tools/testing/selftests/pidfd/
Dpidfd_setns_test.c138 TH_LOG("%m - Failed to open /proc/self/ns"); in FIXTURE_SETUP()
147 TH_LOG("%m - Failed to open %s namespace for process %d", in FIXTURE_SETUP()
155 TH_LOG("%m - Failed to open pidfd for process %d", self->pid); in FIXTURE_SETUP()
170 TH_LOG("%m - Failed to open pidfd for process %d", self->pid); in FIXTURE_SETUP()
240 TH_LOG("%m - Failed to open %s namespace for process %d", in FIXTURE_SETUP()
253 TH_LOG("%m - Failed to open %s namespace for process %d", in FIXTURE_SETUP()
266 TH_LOG("%m - Failed to open %s namespace for process %d", in FIXTURE_SETUP()
392 TH_LOG("%m - Failed to setns to %s namespace of %d via pidfd %d", in TEST_F()
404 TH_LOG("setns failed to place us correctly into %s namespace of %d via pidfd %d", in TEST_F()
408 TH_LOG("Managed to correctly setns to %s namespace of %d via pidfd %d", in TEST_F()
[all …]
Dpidfd_getfd_test.c139 TH_LOG("%s: failed to create socketpair", strerror(errno)); in FIXTURE_SETUP()
225 TH_LOG("getfd succeeded while fetching unknown fd"); in TEST_F()
228 TH_LOG("%s: getfd did not get EBADF", strerror(errno)); in TEST_F()
/linux-6.6.21/tools/testing/selftests/landlock/
Dcommon.h124 TH_LOG("Failed to cap_get_proc: %s", strerror(errno)); in _init_caps()
128 TH_LOG("Failed to cap_clear: %s", strerror(errno)); in _init_caps()
134 TH_LOG("Failed to cap_set_flag: %s", strerror(errno)); in _init_caps()
139 TH_LOG("Failed to cap_set_proc: %s", strerror(errno)); in _init_caps()
143 TH_LOG("Failed to cap_free: %s", strerror(errno)); in _init_caps()
166 TH_LOG("Failed to cap_get_proc: %s", strerror(errno)); in _effective_cap()
170 TH_LOG("Failed to cap_set_flag: %s", strerror(errno)); in _effective_cap()
174 TH_LOG("Failed to cap_set_proc: %s", strerror(errno)); in _effective_cap()
178 TH_LOG("Failed to cap_free: %s", strerror(errno)); in _effective_cap()
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.c173 TH_LOG("Failed to create directory \"%s\": %s", parent, in mkdir_parents()
187 TH_LOG("Failed to create directory \"%s\": %s", path, in create_directory()
198 TH_LOG("Failed to create file \"%s\": %s", path, in create_file()
272 TH_LOG("Failed to mount the %s filesystem: %s", mnt->type, in prepare_layout_opt()
621 TH_LOG("Failed to open directory \"%s\": %s", path, in add_path_beneath()
627 TH_LOG("Failed to update the ruleset with \"%s\": %s", path, in add_path_beneath()
661 TH_LOG("No rule list"); in create_ruleset()
665 TH_LOG("Empty rule list"); in create_ruleset()
672 TH_LOG("Failed to create a ruleset: %s", strerror(errno)); in create_ruleset()
688 TH_LOG("Failed to enforce ruleset: %s", strerror(errno)); in enforce_ruleset()
[all …]
/linux-6.6.21/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.6.21/tools/testing/selftests/seccomp/
Dseccomp_bpf.c320 TH_LOG("kcmp() syscall missing (test is less accurate)");\
342 TH_LOG("Kernel does not support CONFIG_SECCOMP"); in TEST()
353 TH_LOG("Kernel does not support CONFIG_SECCOMP"); in TEST_SIGNAL()
358 TH_LOG("Unreachable!"); in TEST_SIGNAL()
369 TH_LOG("Kernel does not support PR_SET_NO_NEW_PRIVS!"); in TEST()
380 TH_LOG("Kernel does not support PR_SET_NO_NEW_PRIVS!"); in TEST()
385 TH_LOG("Kernel does not support CONFIG_SECCOMP_FILTER!"); in TEST()
404 TH_LOG("Expected 0 or unsupported for NO_NEW_PRIVS"); in TEST()
446 TH_LOG("Installing %d insn filter was allowed", prog.len); in TEST()
453 TH_LOG("Installing %d insn filter wasn't allowed", prog.len); in TEST()
[all …]
/linux-6.6.21/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.6.21/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()
Dget_set_sud.c29 TH_LOG("PTRACE_TRACEME: %m"); in TEST()
/linux-6.6.21/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.6.21/tools/testing/selftests/mm/
Dmdwe_test.c81 TH_LOG("PR_SET_MDWE failed or unsupported"); in FIXTURE_SETUP()
90 TH_LOG("fork failed\n"); in FIXTURE_SETUP()
/linux-6.6.21/tools/testing/selftests/user_events/
Duser_events_selftests.h102 TH_LOG("Setup failed due to: %s", message); \
/linux-6.6.21/tools/testing/selftests/uevent/
Duevent_filtering.c354 TH_LOG("Uevent filtering tests require root privileges. Skipping test"); in TEST()
361 TH_LOG(__DEV_FULL " does not exist. Skipping test"); in TEST()
/linux-6.6.21/tools/testing/selftests/sgx/
Dmain.c188 TH_LOG("Failed to load the test enclave."); in setup_test_encl()
231 TH_LOG("0x%016lx 0x%016lx 0x%02x", seg->offset, seg->size, seg->prot); in setup_test_encl()
240 TH_LOG("%s", maps_line); in setup_test_encl()
246 TH_LOG("Failed to initialize the test enclave."); in setup_test_encl()
278 TH_LOG("0x%02x 0x%02x 0x%016llx", (run)->exception_vector, \
402 TH_LOG("Creating an enclave with %lu bytes heap may take a while ...",
457 TH_LOG("Changing type of %zd bytes to trimmed may take a while ...",
473 TH_LOG("Entering enclave to run EACCEPT for each page of %zd bytes may take a while ...",
494 TH_LOG("Removing %zd bytes from enclave may take a while ...",
/linux-6.6.21/tools/testing/selftests/mount_setattr/
Dmount_setattr_test.c1080 TH_LOG("failure: created idmapped mount with negative fd"); in TEST_F()
1098 TH_LOG("failure: created idmapped mount with too large fd value"); in TEST_F()
1121 TH_LOG("failure: created idmapped mount with closed fd"); in TEST_F()

12