/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() 308 TH_LOG("write_nointr() failed"); in change_userns() 313 TH_LOG("read_nointr() failed"); in change_userns() 319 TH_LOG("setid_userns_root() failed"); in change_userns() 333 TH_LOG("read_nointr() failed"); in change_idmaps() 339 TH_LOG("write_id_mapping(UID_MAP) failed"); in change_idmaps() 345 TH_LOG("write_id_mapping(GID_MAP) failed"); in change_idmaps() 350 TH_LOG("write_nointr() failed"); in change_idmaps() 488 TH_LOG("wait_for_pid() failed"); in TEST() [all …]
|
/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() 211 TH_LOG("Can't create temporary file: %s", in TEST() 228 TH_LOG("mmap error: %s", strerror(errno)); in TEST() 234 TH_LOG("Unexpected page in memory"); in TEST() 302 TH_LOG("Can't allocate array"); in TEST() 308 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() 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() 257 TH_LOG("Unreachable!"); in TEST_SIGNAL() 285 TH_LOG("Dispatch triggered unexpectedly"); in TEST() [all …]
|
/linux/tools/testing/selftests/net/ |
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/clone3/ |
A D | clone3_cap_checkpoint_restore.c | 55 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/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/pidfd/ |
A D | pidfd_setns_test.c | 138 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() 467 TH_LOG("%m - Failed to setns to namespaces of %d", in TEST_F() 488 TH_LOG("Managed to correctly setns to %s namespace of %d", in TEST_F() 528 TH_LOG("Managed to setns to %s namespace of %d via pidfd %d", in TEST_F() [all …]
|
A D | pidfd_getfd_test.c | 139 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/tools/testing/selftests/landlock/ |
A D | common.h | 119 TH_LOG("Failed to cap_get_proc: %s", strerror(errno)); in _init_caps() 122 TH_LOG("Failed to cap_clear: %s", strerror(errno)); in _init_caps() 127 TH_LOG("Failed to cap_set_flag: %s", strerror(errno)); in _init_caps() 131 TH_LOG("Failed to cap_set_proc: %s", strerror(errno)); in _init_caps() 134 TH_LOG("Failed to cap_free: %s", strerror(errno)); in _init_caps() 158 TH_LOG("Failed to cap_get_proc: %s", strerror(errno)); in _effective_cap() 161 TH_LOG("Failed to cap_set_flag: %s", strerror(errno)); in _effective_cap() 164 TH_LOG("Failed to cap_set_proc: %s", strerror(errno)); in _effective_cap() 167 TH_LOG("Failed to cap_free: %s", strerror(errno)); in _effective_cap()
|
A D | fs_test.c | 94 TH_LOG("Failed to create directory \"%s\": %s", in mkdir_parents() 107 TH_LOG("Failed to create directory \"%s\": %s", path, in create_directory() 117 TH_LOG("Failed to create file \"%s\": %s", path, in create_file() 472 TH_LOG("No rule list"); in create_ruleset() 475 TH_LOG("Empty rule list"); in create_ruleset() 1429 TH_LOG("Failed to chroot: %s", strerror(errno)); in test_relative_path() 1505 TH_LOG("Failed to open \"%s\": %s", dst_path, in copy_binary() 1510 TH_LOG("Failed to open \"" BINARY_PATH "\": %s", in copy_binary() 1530 TH_LOG("Failed to execute \"%s\": %s", path, in test_execute() 1824 TH_LOG("Failed to make file \"%s\": %s", in test_make_file() [all …]
|
A D | ptrace_test.c | 32 TH_LOG("Failed to create a ruleset: %s", strerror(errno)); in create_domain()
|
/linux/tools/testing/selftests/rtc/ |
A D | rtctest.c | 47 TH_LOG("Current RTC date/time is %02d/%02d/%02d %02d:%02d:%02d.", in TEST_F() 60 TH_LOG("skip update IRQs not supported."); 85 TH_LOG("skip update IRQs not supported."); in TEST_F() 129 TH_LOG("skip alarms are not supported."); in TEST_F() 136 TH_LOG("Alarm time now set to %02d:%02d:%02d.", in TEST_F() 156 TH_LOG("data: %lx", data); in TEST_F() 185 TH_LOG("skip alarms are not supported."); in TEST_F() 231 TH_LOG("skip alarms are not supported."); 238 TH_LOG("Alarm time now set to %02d:%02d:%02d.", 258 TH_LOG("data: %lx", data); [all …]
|
/linux/tools/testing/selftests/seccomp/ |
A D | seccomp_bpf.c | 347 TH_LOG("Unreachable!"); in TEST_SIGNAL() 1109 TH_LOG("sigaction failed"); in TEST_F() 1113 TH_LOG("sigprocmask failed"); in TEST_F() 2617 TH_LOG("setting filter failed"); in TEST_F() 2632 TH_LOG("cond broadcast non-zero"); in TEST_F() 2675 TH_LOG("cond broadcast non-zero"); in TEST_F() 2700 TH_LOG("cond broadcast non-zero"); in TEST_F() 2740 TH_LOG("cond broadcast non-zero"); in TEST_F() 2785 TH_LOG("cond broadcast non-zero"); in TEST_F() 2834 TH_LOG("cond broadcast non-zero"); in TEST_F() [all …]
|
/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/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/sgx/ |
A D | main.c | 133 TH_LOG("0x%016lx 0x%016lx 0x%02x", seg->offset, seg->size, seg->prot); in FIXTURE_SETUP() 178 TH_LOG("%s", maps_line); in FIXTURE_SETUP() 212 TH_LOG("0x%02x 0x%02x 0x%016llx", (run)->exception_vector, \
|
/linux/tools/testing/selftests/uevent/ |
A D | uevent_filtering.c | 354 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/tools/testing/selftests/mount_setattr/ |
A D | mount_setattr_test.c | 1086 TH_LOG("failure: created idmapped mount with negative fd"); in TEST_F() 1104 TH_LOG("failure: created idmapped mount with too large fd value"); in TEST_F() 1127 TH_LOG("failure: created idmapped mount with closed fd"); in TEST_F()
|
/linux/tools/testing/selftests/ |
A D | kselftest_harness.h | 105 #define TH_LOG(fmt, ...) do { \ macro
|
/linux/Documentation/dev-tools/ |
A D | kselftest.rst | 335 :functions: TH_LOG TEST TEST_SIGNAL FIXTURE FIXTURE_DATA FIXTURE_SETUP
|