| /tools/testing/selftests/kselftest_harness/ |
| A D | harness-selftest.c | 19 TH_LOG("before"); in TEST() 23 TH_LOG("after"); in TEST() 27 TH_LOG("before"); in TEST() 31 TH_LOG("after"); in TEST() 35 TH_LOG("before"); in TEST_SIGNAL() 37 TH_LOG("after"); in TEST_SIGNAL() 42 TH_LOG("before"); in TEST_SIGNAL() 44 TH_LOG("after"); in TEST_SIGNAL() 53 TH_LOG("setup"); in FIXTURE_SETUP() 66 TH_LOG("after"); in TEST_F() [all …]
|
| /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 …]
|
| /tools/testing/selftests/pci_endpoint/ |
| A D | pci_endpoint_test.c | 95 EXPECT_FALSE(ret) TH_LOG("Consecutive BAR test failed"); in TEST_F() 103 ASSERT_EQ(0, ret) TH_LOG("Can't set Legacy IRQ type"); in TEST_F() 109 EXPECT_FALSE(ret) TH_LOG("Test failed for Legacy IRQ"); in TEST_F() 117 ASSERT_EQ(0, ret) TH_LOG("Can't set MSI IRQ type"); in TEST_F() 124 EXPECT_FALSE(ret) TH_LOG("Test failed for MSI%d", i); in TEST_F() 133 ASSERT_EQ(0, ret) TH_LOG("Can't set MSI-X IRQ type"); in TEST_F() 185 ASSERT_EQ(0, ret) TH_LOG("Can't set AUTO IRQ type"); in TEST_F() 190 EXPECT_FALSE(ret) TH_LOG("Test failed for size (%ld)", in TEST_F() 204 ASSERT_EQ(0, ret) TH_LOG("Can't set AUTO IRQ type"); in TEST_F() 223 ASSERT_EQ(0, ret) TH_LOG("Can't set AUTO IRQ type"); in TEST_F() [all …]
|
| /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() 309 TH_LOG("write_nointr() failed"); in change_userns() 314 TH_LOG("read_nointr() failed"); in change_userns() 320 TH_LOG("setid_userns_root() failed"); in change_userns() 334 TH_LOG("read_nointr() failed"); in change_idmaps() 340 TH_LOG("write_id_mapping(UID_MAP) failed"); in change_idmaps() 346 TH_LOG("write_id_mapping(GID_MAP) failed"); in change_idmaps() 351 TH_LOG("write_nointr() failed"); in change_idmaps() 490 TH_LOG("wait_for_pid() failed"); in TEST() [all …]
|
| /tools/testing/selftests/hid/ |
| A D | hidraw.c | 31 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() 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() 152 ASSERT_EQ(ready, 1) TH_LOG("poll return value"); in TEST_F() 157 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F() [all …]
|
| A D | hid_bpf.c | 53 TH_LOG(fmt, ##__VA_ARGS__); \ 180 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); 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() 288 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); 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() 413 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F() 524 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F() [all …]
|
| A D | hid_common.h | 105 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()
|
| /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() 305 TH_LOG("Can't allocate array"); in TEST() 311 TH_LOG("Can't create temporary file: %s", in TEST() [all …]
|
| /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 …]
|
| /tools/testing/selftests/pidfd/ |
| A D | pidfd_setns_test.c | 108 TH_LOG("%m - Failed to open /proc/self/ns"); in FIXTURE_SETUP() 114 TH_LOG("%m - Failed to open pidfd for process %d", self->pid); in FIXTURE_SETUP() 122 TH_LOG("%m - Failed to open %s namespace for process %d", in FIXTURE_SETUP() 152 TH_LOG("%m - Failed to open pidfd for process %d", self->pid); in FIXTURE_SETUP() 272 TH_LOG("%m - Failed to open %s namespace for process %d", in FIXTURE_SETUP() 285 TH_LOG("%m - Failed to open %s namespace for process %d", in FIXTURE_SETUP() 298 TH_LOG("%m - Failed to open %s namespace for process %d", in FIXTURE_SETUP() 557 TH_LOG("%m - Failed to setns to namespaces of %d", in TEST_F() 578 TH_LOG("Managed to correctly setns to %s namespace of %d", in TEST_F() 627 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()
|
| /tools/testing/selftests/arm64/pauth/ |
| A D | pac.c | 213 ASSERT_TRUE(0) TH_LOG("SIGSEGV/SIGILL signal did not occur"); in TEST() 237 ASSERT_NE(0, keyia) TH_LOG("keyia instructions did nothing"); in TEST() 238 ASSERT_NE(0, keyib) TH_LOG("keyib instructions did nothing"); in TEST() 239 ASSERT_NE(0, keyda) TH_LOG("keyda instructions did nothing"); in TEST() 240 ASSERT_NE(0, keydb) TH_LOG("keydb instructions did nothing"); in TEST() 252 ASSERT_NE(0, keyg) TH_LOG("keyg instructions did nothing"); in TEST() 290 ASSERT_EQ(0, same) TH_LOG("%d keys clashed every time", same); in TEST() 315 ASSERT_EQ(0, ret) TH_LOG("failed to run worker"); in TEST() 327 ASSERT_EQ(0, same) TH_LOG("exec() did not change %d keys", same); in TEST() 343 ASSERT_EQ(0, ret) TH_LOG("failed to run worker"); in TEST() [all …]
|
| /tools/testing/selftests/syscall_user_dispatch/ |
| A D | sud_test.c | 76 TH_LOG("Kernel does not support CONFIG_SYSCALL_USER_DISPATCH"); in TEST_SIGNAL() 84 TH_LOG("Unreachable!"); in TEST_SIGNAL() 233 TH_LOG("Dispatch triggered unexpectedly"); in TEST() 242 TH_LOG("Failed to intercept syscall"); in TEST() 245 TH_LOG("Failed to emulate syscall"); in TEST() 248 TH_LOG("Bad si_code in SIGSYS"); in TEST() 251 TH_LOG("Bad si_errno in SIGSYS"); in TEST() 294 TH_LOG("Unreachable!"); in TEST_SIGNAL() 314 TH_LOG("Failed to unset syscall user dispatch"); in TEST() 322 TH_LOG("Dispatch triggered unexpectedly"); in TEST() [all …]
|
| /tools/testing/selftests/net/can/ |
| A D | test_raw_filter.c | 71 TH_LOG("failed to create CAN_RAW socket: %d", errno); in FIXTURE_SETUP() 76 TH_LOG("failed SIOCGIFINDEX: %d", errno); in FIXTURE_SETUP() 86 TH_LOG("failed bind socket: %d", errno); in FIXTURE_SETUP() 345 TH_LOG("filters: can_id = 0x%08X can_mask = 0x%08X", in TEST_F() 350 TH_LOG("failed to send CAN frames"); in TEST_F() 370 TH_LOG("too many frames received"); in TEST_F() 373 TH_LOG("too few frames received"); in TEST_F() 377 TH_LOG("failed to read frame %d, err: %d", i, errno); in TEST_F() 382 TH_LOG("received wrong can_id"); in TEST_F() 384 TH_LOG("received wrong test case"); in TEST_F() [all …]
|
| /tools/testing/selftests/riscv/vector/ |
| A D | vstate_prctl.c | 44 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()
|
| /tools/testing/selftests/kvm/s390/ |
| A D | ucontrol_test.c | 137 TH_LOG("create VM 0x%llx", info.cpuid); in FIXTURE_SETUP() 159 TH_LOG("VM created %p %p", self->run, self->sie_block); in FIXTURE_SETUP() 173 TH_LOG("ucas map %p %p 0x%llx", in FIXTURE_SETUP() 179 TH_LOG("page in %p", (void *)self->base_gpa); in FIXTURE_SETUP() 476 TH_LOG("copy code %p to vm mapped memory %p / %p", in TEST_F() 541 TH_LOG("copy code %p to vm mapped memory %p / %p", in TEST_F() 581 TH_LOG("copy code %p to vm mapped memory %p / %p", in TEST_F() 741 TH_LOG("test %s", uc_flic_attr_tests[i].name); in TEST_F() 752 TH_LOG("expected dev attr missing %s", in TEST_F() 757 TH_LOG("get dev attr rc not expected on %s %s (%i)", in TEST_F() [all …]
|
| /tools/testing/selftests/rtc/ |
| A D | rtctest.c | 151 TH_LOG("Performed %ld RTC time reads.", iter_count); 166 TH_LOG("skip update IRQs not supported."); 195 TH_LOG("skip update IRQs not supported."); in TEST_F() 255 TH_LOG("skip alarms are not supported."); in TEST_F() 262 TH_LOG("Alarm time now set to %02d:%02d:%02d.", in TEST_F() 282 TH_LOG("data: %lx", data); in TEST_F() 327 TH_LOG("skip alarms are not supported."); in TEST_F() 387 TH_LOG("skip alarms are not supported."); 394 TH_LOG("Alarm time now set to %02d:%02d:%02d.", 414 TH_LOG("data: %lx", data); [all …]
|
| /tools/testing/selftests/seccomp/ |
| A D | seccomp_bpf.c | 371 TH_LOG("Unreachable!"); in TEST_SIGNAL() 1135 TH_LOG("sigaction failed"); in TEST_F() 1139 TH_LOG("sigprocmask failed"); in TEST_F() 2692 TH_LOG("setting filter failed"); in TEST_F() 2707 TH_LOG("cond broadcast non-zero"); in TEST_F() 2750 TH_LOG("cond broadcast non-zero"); in TEST_F() 2775 TH_LOG("cond broadcast non-zero"); in TEST_F() 2815 TH_LOG("cond broadcast non-zero"); in TEST_F() 2860 TH_LOG("cond broadcast non-zero"); in TEST_F() 2909 TH_LOG("cond broadcast non-zero"); in TEST_F() [all …]
|
| /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()
|
| /tools/testing/selftests/landlock/ |
| A D | common.h | 68 TH_LOG("Failed to set capabilities: %s", strerror(errno)); in _init_caps() 98 TH_LOG("Failed to set capability %d: %s", cap, strerror(errno)); in _change_cap() 122 TH_LOG("Failed to set ambient capability %d: %s", cap, in set_ambient_cap() 207 TH_LOG("Failed to enforce ruleset: %s", strerror(errno)); in enforce_ruleset() 221 TH_LOG("Failed to create a ruleset: %s", strerror(errno)); in drop_access_rights()
|
| A D | scoped_common.h | 24 TH_LOG("Failed to create a ruleset: %s", strerror(errno)); in create_scoped_domain()
|
| /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()
|
| /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()
|