| /linux/tools/testing/selftests/net/ |
| A D | epoll_busy_poll.c | 56 TH_LOG("error creating unix socket"); in FIXTURE_SETUP() 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() 235 TH_LOG("couldn't clear CAP_NET_ADMIN"); in TEST_F() 253 TH_LOG("couldn't restore CAP_NET_ADMIN"); in TEST_F() 291 TH_LOG("EPIOCGPARAMS should not error"); in TEST_F() 294 TH_LOG("params.busy_poll_usecs incorrect"); in TEST_F() 297 TH_LOG("params.busy_poll_budget incorrect"); in TEST_F() 300 TH_LOG("params.prefer_busy_poll incorrect"); in TEST_F() [all …]
|
| A D | ip_local_port_range.c | 191 ASSERT_GE(fd, 0) TH_LOG("socket failed"); in TEST_F() 212 ASSERT_TRUE(!err) TH_LOG("close failed"); in TEST_F() 283 TH_LOG("lo %5hu, hi %5hu, expected %5hu", in TEST_F() 294 ASSERT_TRUE(!err) TH_LOG("bind failed"); in TEST_F() 321 ASSERT_TRUE(!err) TH_LOG("bind failed"); in TEST_F() 336 ASSERT_GE(fd, 0) TH_LOG("socket failed"); in TEST_F() 347 ASSERT_TRUE(!err) TH_LOG("close failed"); in TEST_F() 369 ASSERT_GE(fd, 0) TH_LOG("socket failed"); in TEST_F() 379 ASSERT_TRUE(!err) TH_LOG("bind failed"); in TEST_F() 411 ASSERT_TRUE(!err) TH_LOG("close failed"); in TEST_F() [all …]
|
| A D | reuseaddr_ports_exhausted.c | 61 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() 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() 145 ASSERT_NE(-1, fd[0]) TH_LOG("failed to bind."); in TEST() [all …]
|
| /linux/tools/testing/selftests/filesystems/binderfs/ |
| A D | binderfs_test.c | 45 TH_LOG("%s - Failed to unshare mount namespace", in change_mountns() 51 TH_LOG("%s - Failed to mount / as private", in change_mountns() 310 TH_LOG("write_nointr() failed"); in change_userns() 315 TH_LOG("read_nointr() failed"); in change_userns() 321 TH_LOG("setid_userns_root() failed"); in change_userns() 335 TH_LOG("read_nointr() failed"); in change_idmaps() 341 TH_LOG("write_id_mapping(UID_MAP) failed"); in change_idmaps() 347 TH_LOG("write_id_mapping(GID_MAP) failed"); in change_idmaps() 352 TH_LOG("write_nointr() failed"); in change_idmaps() 491 TH_LOG("wait_for_pid() failed"); in TEST() [all …]
|
| /linux/tools/testing/selftests/hid/ |
| A D | hid_bpf.c | 63 TH_LOG(fmt, ##__VA_ARGS__); \ 203 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); 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() 311 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); 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() 436 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F() 547 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F() [all …]
|
| A D | hidraw.c | 34 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() 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() 168 ASSERT_EQ(ready, 1) TH_LOG("poll return value"); in TEST_F() 173 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F() [all …]
|
| A D | hid_common.h | 95 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/tools/testing/selftests/mincore/ |
| A D | mincore_selftest.c | 53 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() 161 TH_LOG("Page found in memory before use"); in TEST() 205 TH_LOG("Can't allocate array"); in TEST() 212 TH_LOG("Can't create temporary file: %s", in TEST() 234 TH_LOG("mmap error: %s", strerror(errno)); in TEST() 240 TH_LOG("Unexpected page in memory"); in TEST() 310 TH_LOG("Can't allocate array"); in TEST() 316 TH_LOG("Can't create temporary file: %s", in TEST() [all …]
|
| /linux/tools/testing/selftests/syscall_user_dispatch/ |
| A D | sud_test.c | 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() 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() 271 TH_LOG("Unreachable!"); in TEST_SIGNAL() 299 TH_LOG("Dispatch triggered unexpectedly"); in TEST() [all …]
|
| /linux/tools/testing/selftests/pidfd/ |
| A D | pidfd_setns_test.c | 192 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() 236 TH_LOG("%m - Failed to open pidfd for process %d", self->pid); in FIXTURE_SETUP() 356 TH_LOG("%m - Failed to open %s namespace for process %d", in FIXTURE_SETUP() 369 TH_LOG("%m - Failed to open %s namespace for process %d", in FIXTURE_SETUP() 382 TH_LOG("%m - Failed to open %s namespace for process %d", in FIXTURE_SETUP() 641 TH_LOG("%m - Failed to setns to namespaces of %d", in TEST_F() 662 TH_LOG("Managed to correctly setns to %s namespace of %d", in TEST_F() 711 TH_LOG("Managed to setns to %s namespace of %d via nsfd %d", in TEST_F() [all …]
|
| A D | pidfd_getfd_test.c | 141 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/clone3/ |
| A D | clone3_cap_checkpoint_restore.c | 51 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/tools/testing/selftests/arm64/pauth/ |
| A D | pac.c | 210 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() 287 ASSERT_EQ(0, same) TH_LOG("%d keys clashed every time", same); in TEST() 312 ASSERT_EQ(0, ret) TH_LOG("failed to run worker"); in TEST() 324 ASSERT_EQ(0, same) TH_LOG("exec() did not change %d keys", same); in TEST() 340 ASSERT_EQ(0, ret) TH_LOG("failed to run worker"); in TEST() [all …]
|
| /linux/tools/testing/selftests/rtc/ |
| A D | rtctest.c | 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() 324 TH_LOG("skip alarms are not supported."); 331 TH_LOG("Alarm time now set to %02d:%02d:%02d.", 351 TH_LOG("data: %lx", data); [all …]
|
| /linux/tools/testing/selftests/seccomp/ |
| A D | seccomp_bpf.c | 360 TH_LOG("Unreachable!"); in TEST_SIGNAL() 1124 TH_LOG("sigaction failed"); in TEST_F() 1128 TH_LOG("sigprocmask failed"); in TEST_F() 2687 TH_LOG("setting filter failed"); in TEST_F() 2702 TH_LOG("cond broadcast non-zero"); in TEST_F() 2745 TH_LOG("cond broadcast non-zero"); in TEST_F() 2770 TH_LOG("cond broadcast non-zero"); in TEST_F() 2810 TH_LOG("cond broadcast non-zero"); in TEST_F() 2855 TH_LOG("cond broadcast non-zero"); in TEST_F() 2904 TH_LOG("cond broadcast non-zero"); in TEST_F() [all …]
|
| /linux/tools/testing/selftests/kvm/s390x/ |
| A D | ucontrol_test.c | 92 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/tools/testing/selftests/prctl/ |
| A D | set-anon-vma-name-test.c | 93 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/ptrace/ |
| A D | get_syscall_info.c | 39 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/tools/testing/selftests/landlock/ |
| A D | common.h | 91 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()
|
| A D | scoped_common.h | 24 TH_LOG("Failed to create a ruleset: %s", strerror(errno)); in create_scoped_domain()
|
| A D | ptrace_test.c | 39 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()
|
| A D | fs_test.c | 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() 711 TH_LOG("Failed to open directory \"%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() 1889 TH_LOG("Failed to chroot: %s", strerror(errno)); in test_relative_path() 1897 TH_LOG("Failed to chroot: %s", strerror(errno)); in test_relative_path() 1974 TH_LOG("Failed to open \"" BINARY_PATH "\": %s", in copy_binary() 1995 TH_LOG("Failed to execute \"%s\": %s", path, in test_execute() 5225 TH_LOG("Failed to create directory \"%s\": %s", in FIXTURE_SETUP() [all …]
|
| /linux/tools/testing/selftests/net/af_unix/ |
| A D | msg_oob.c | 234 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/ |
| A D | non-regular.c | 27 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/ |
| A D | user_events_selftests.h | 102 TH_LOG("Setup failed due to: %s", message); \
|