/third_party/ltp/lib/ |
D | safe_macros.c | 35 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_basename() 51 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_chdir() 54 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_chdir() 70 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_close() 73 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_close() 89 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_creat() 92 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_creat() 108 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_dirname() 123 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_getcwd() 138 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_getpwnam() [all …]
|
D | tst_safe_macros.c | 29 tst_brk_(file, lineno, TBROK | TERRNO, in safe_setpgid() 32 tst_brk_(file, lineno, TBROK | TERRNO, in safe_setpgid() 47 tst_brk_(file, lineno, TBROK | TERRNO, "getpgid(%i) failed", in safe_getpgid() 50 tst_brk_(file, lineno, TBROK | TERRNO, in safe_getpgid() 64 tst_brk_(file, lineno, TBROK | TERRNO, in safe_setgroups() 67 tst_brk_(file, lineno, TBROK | TERRNO, in safe_setgroups() 82 tst_brk_(file, lineno, TBROK | TERRNO, in safe_getgroups() 85 tst_brk_(file, lineno, TBROK | TERRNO, in safe_getgroups() 99 tst_brk_(filename, lineno, TBROK | TERRNO, in safe_personality() 102 tst_brk_(filename, lineno, TBROK | TERRNO, in safe_personality() [all …]
|
D | tst_safe_sysv_ipc.c | 71 tst_brk_(file, lineno, TBROK | TERRNO, "msgget(%i, %x) failed", in safe_msgget() 74 tst_brk_(file, lineno, TBROK | TERRNO, in safe_msgget() 90 tst_brk_(file, lineno, TBROK | TERRNO, in safe_msgsnd() 94 tst_brk_(file, lineno, TBROK | TERRNO, in safe_msgsnd() 110 tst_brk_(file, lineno, TBROK | TERRNO, in safe_msgrcv() 114 tst_brk_(file, lineno, TBROK | TERRNO, in safe_msgrcv() 130 tst_brk_(file, lineno, TBROK | TERRNO, in safe_msgctl() 133 tst_brk_(file, lineno, TBROK | TERRNO, in safe_msgctl() 149 tst_brk_(file, lineno, TBROK | TERRNO, in safe_shmget() 152 tst_brk_(file, lineno, TBROK | TERRNO, in safe_shmget() [all …]
|
D | safe_net.c | 128 tst_brkm_(file, lineno, ttype | TERRNO, cleanup_fn, in safe_socket() 131 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_socket() 157 tst_brkm_(file, lineno, ttype | TERRNO, NULL, in safe_socketpair() 161 tst_brkm_(file, lineno, TBROK | TERRNO, NULL, in safe_socketpair() 175 tst_brkm_(file, lineno, TBROK | TERRNO, NULL, in safe_getsockopt() 179 tst_brkm_(file, lineno, TBROK | TERRNO, NULL, in safe_getsockopt() 195 tst_brkm_(file, lineno, TBROK | TERRNO, NULL, in safe_setsockopt() 199 tst_brkm_(file, lineno, TBROK | TERRNO, NULL, in safe_setsockopt() 215 tst_brkm_(file, lineno, TBROK | TERRNO, NULL, in safe_send() 219 tst_brkm_(file, lineno, TBROK | TERRNO, NULL, in safe_send() [all …]
|
D | tst_wallclock.c | 29 tst_brk(TBROK | TERRNO, "tst_clock_gettime() realtime failed"); in tst_wallclock_save() 33 tst_brk(TCONF | TERRNO, in tst_wallclock_save() 37 tst_brk(TBROK | TERRNO, "tst_clock_gettime() monotonic failed"); in tst_wallclock_save() 55 tst_brk(TBROK | TERRNO, "tst_clock_gettime() monotonic failed"); in tst_wallclock_restore() 64 tst_brk(TBROK | TERRNO, "tst_clock_settime() realtime failed"); in tst_wallclock_restore() 84 tst_brk(TBROK | TERRNO, "tst_rtc_gettime() realtime failed"); in tst_rtc_clock_save() 87 tst_brk(TBROK | TERRNO, "tst_clock_gettime() monotonic failed"); in tst_rtc_clock_save() 104 tst_brk(TBROK | TERRNO, "tst_clock_gettime() monotonic failed"); in tst_rtc_clock_restore() 117 tst_brk(TBROK | TERRNO, "tst_rtc_settime() realtime failed"); in tst_rtc_clock_restore()
|
D | safe_file_ops.c | 131 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_file_scanf() 156 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_file_scanf() 185 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in file_lines_scanf() 262 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_file_vprintf() 274 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_file_vprintf() 357 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_touch() 361 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_touch() 369 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_touch() 373 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_touch() 382 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_touch() [all …]
|
D | tst_device.c | 100 tst_resm(TINFO | TERRNO, in tst_find_free_loopdev() 105 tst_resm(TBROK | TERRNO, "Failed to open " LOOP_CONTROL_FILE); in tst_find_free_loopdev() 151 tst_resm(TWARN | TERRNO, "open('%s', O_RDWR) failed", dev); in tst_attach_device() 157 tst_resm(TWARN | TERRNO, "open('%s', O_RDWR) failed", file); in tst_attach_device() 165 tst_resm(TWARN | TERRNO, "ioctl(%s, LOOP_SET_FD, %s) failed", in tst_attach_device() 180 tst_resm(TWARN | TERRNO, in tst_attach_device() 200 tst_resm(TWARN | TERRNO, "stat() failed"); in tst_get_device_size() 211 tst_resm(TWARN | TERRNO, in tst_get_device_size() 217 tst_resm(TWARN | TERRNO, in tst_get_device_size() 224 tst_resm(TWARN | TERRNO, in tst_get_device_size() [all …]
|
D | tst_safe_timerfd.c | 22 tst_brk_(file, lineno, TTYPE | TERRNO, in safe_timerfd_create() 25 tst_brk_(file, lineno, TBROK | TERRNO, in safe_timerfd_create() 41 tst_brk_(file, lineno, TTYPE | TERRNO, in safe_timerfd_gettime() 44 tst_brk_(file, lineno, TBROK | TERRNO, in safe_timerfd_gettime() 61 tst_brk_(file, lineno, TTYPE | TERRNO, in safe_timerfd_settime() 64 tst_brk_(file, lineno, TBROK | TERRNO, in safe_timerfd_settime()
|
/third_party/ltp/testcases/kernel/pty/ |
D | pty01.c | 83 tst_brkm(TBROK | TERRNO, NULL, "ptsname() call failed"); in test1() 87 tst_brkm(TBROK | TERRNO, NULL, "grantpt() call failed"); in test1() 91 tst_brkm(TBROK | TERRNO, NULL, "stat(%s) failed", slavename); in test1() 110 tst_brkm(TBROK | TERRNO, NULL, "unlockpt() failed"); in test1() 123 tst_brkm(TFAIL | TERRNO, NULL, "write to master"); in test1() 128 tst_brkm(TFAIL | TERRNO, NULL, "read from slave"); in test1() 141 tst_brkm(TFAIL | TERRNO, NULL, "write to slave"); in test1() 146 tst_brkm(TFAIL | TERRNO, NULL, "read from master"); in test1() 176 tst_brkm(TBROK | TERRNO, NULL, "close of slave"); in test1() 179 tst_brkm(TBROK | TERRNO, NULL, "close of master"); in test1() [all …]
|
/third_party/ltp/testcases/kernel/device-drivers/rtc/ |
D | rtc01.c | 73 tst_resm(TFAIL | TERRNO, "RTC_RD_TIME ioctl failed"); in read_alarm_test() 103 tst_resm(TCONF | TERRNO, "RTC_ALM_SET not supported"); in read_alarm_test() 105 tst_resm(TFAIL | TERRNO, "RTC_ALM_SET ioctl failed"); in read_alarm_test() 113 tst_resm(TCONF | TERRNO, "RTC_ALM_READ not suported"); in read_alarm_test() 115 tst_resm(TFAIL | TERRNO, "RTC_ALM_READ ioctl failed"); in read_alarm_test() 126 tst_resm(TINFO | TERRNO, "RTC_AIE_ON ioctl failed"); in read_alarm_test() 141 tst_resm(TFAIL | TERRNO, "select failed"); in read_alarm_test() 146 tst_resm(TFAIL | TERRNO, "read failed"); in read_alarm_test() 158 tst_resm(TFAIL | TERRNO, "RTC_AIE_OFF ioctl failed"); in read_alarm_test() 181 tst_resm(TCONF | TERRNO, "RTC_UIE_ON not supported"); in update_interrupts_test() [all …]
|
/third_party/ltp/include/ |
D | tst_safe_clocks.h | 26 tst_brk_(file, lineno, TBROK | TERRNO, in safe_clock_getres() 29 tst_brk_(file, lineno, TBROK | TERRNO, in safe_clock_getres() 45 tst_brk_(file, lineno, TBROK | TERRNO, in safe_clock_gettime() 48 tst_brk_(file, lineno, TBROK | TERRNO, in safe_clock_gettime() 65 tst_brk_(file, lineno, TBROK | TERRNO, in safe_clock_settime() 68 tst_brk_(file, lineno, TBROK | TERRNO, in safe_clock_settime() 85 tst_brk_(file, lineno, TBROK | TERRNO, in safe_timer_create() 88 tst_brk_(file, lineno, TBROK | TERRNO, in safe_timer_create() 106 tst_brk_(file, lineno, TBROK | TERRNO, in safe_timer_settime() 109 tst_brk_(file, lineno, TBROK | TERRNO, in safe_timer_settime() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/eventfd/ |
D | eventfd01.c | 93 tst_resm(TINFO | TERRNO, "error clearing counter"); in clear_counter() 121 tst_resm(TINFO | TERRNO, "error setting counter value"); in set_counter() 138 tst_resm(TBROK | TERRNO, "error reading eventfd"); in read_test() 168 tst_resm(TFAIL | TERRNO, "read failed (wanted EAGAIN)"); in read_eagain_test() 232 tst_resm(TFAIL | TERRNO, "read failed (wanted EINVAL)"); in read_einval_test() 251 tst_resm(TFAIL | TERRNO, in write_einval_test() 278 tst_resm(TFAIL | TERRNO, in write_einval2_test() 309 tst_resm(TBROK | TERRNO, "select() failed"); in readfd_set_test() 341 tst_resm(TBROK | TERRNO, "select() failed"); in readfd_not_set_test() 375 tst_resm(TBROK | TERRNO, "select: error getting fd status"); in writefd_set_test() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl11.c | 110 tst_brkm(TBROK | TERRNO, cleanup, in setup() 123 tst_resm(TFAIL | TERRNO, "fcntl on file failed"); in do_child() 182 tst_resm(TFAIL | TERRNO, "fcntl on file failed"); in unlock_file() 265 tst_brkm(TBROK | TERRNO, cleanup, in main() 271 tst_brkm(TBROK | TERRNO, cleanup, "fork failed"); in main() 284 tst_resm(TFAIL | TERRNO, "fcntl on file failed"); in main() 287 tst_resm(TFAIL | TERRNO, "fcntl on file failed"); in main() 322 tst_resm(TFAIL | TERRNO, "fcntl on file failed"); in main() 325 tst_resm(TFAIL | TERRNO, "fcntl on file failed"); in main() 360 tst_resm(TFAIL | TERRNO, "fcntl on file failed"); in main() [all …]
|
D | fcntl01.c | 67 tst_resm(TBROK | TERRNO, "open failed"); in main() 77 tst_resm(TFAIL | TERRNO, "fcntl(.., 1) failed"); in main() 84 tst_resm(TFAIL | TERRNO, "fcntl(.., fd2[3]) failed"); in main() 91 tst_resm(TFAIL | TERRNO, "fcntl(.., fd2[5]) failed"); in main() 104 tst_resm(TBROK | TERRNO, "fcntl(.., O_NDELAY) failed"); in main() 113 tst_resm(TFAIL | TERRNO, "fcntl(.., O_APPEND) failed"); in main() 144 tst_resm(TFAIL | TERRNO, in main() 152 tst_resm(TFAIL | TERRNO, in main() 163 tst_resm(TFAIL | TERRNO, in main()
|
/third_party/ltp/testcases/kernel/syscalls/clone/ |
D | clone02.c | 152 tst_resm(TWARN | TERRNO, in main() 193 tst_brkm(TBROK | TERRNO, cleanup, "sprintf() failed"); in setup() 199 tst_resm(TWARN | TERRNO, "unlink(%s) failed", file_name); in cleanup() 210 tst_resm(TWARN | TERRNO, "getcwd() failed in test_setup()"); in test_setup() 226 tst_resm(TWARN | TERRNO, "open() failed in test_setup()"); in test_setup() 242 tst_resm(TWARN | TERRNO, "sigaction() failed in test_setup()"); in test_setup() 323 tst_resm(TWARN | TERRNO, "close failed in test_FILES"); in test_FILES() 341 tst_resm(TWARN | TERRNO, "tst_get_tmpdir failed"); in test_FS() 344 tst_resm(TWARN | TERRNO, "chdir failed in test_FS"); in test_FS() 370 tst_resm(TWARN | TERRNO, "signal failed in test_SIG"); in test_SIG() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/mmap/ |
D | mmap10.c | 130 tst_brkm(TBROK | TERRNO, cleanup, "open"); in mmapzero() 135 tst_brkm(TFAIL | TERRNO, cleanup, "mmap"); in mmapzero() 139 tst_brkm(TBROK | TERRNO, cleanup, "madvise"); in mmapzero() 146 tst_brkm(TBROK | TERRNO, cleanup, "fork"); in mmapzero() 149 tst_brkm(TFAIL | TERRNO, cleanup, "munmap"); in mmapzero() 157 tst_brkm(TBROK | TERRNO, cleanup, "fork"); in mmapzero() 160 tst_brkm(TFAIL | TERRNO, cleanup, in mmapzero() 166 tst_brkm(TBROK | TERRNO, cleanup, "fork"); in mmapzero() 169 tst_brkm(TFAIL | TERRNO, cleanup, in mmapzero() 179 tst_resm(TFAIL | TERRNO, "munmap all"); in mmapzero() [all …]
|
D | mmap02.c | 83 tst_resm(TFAIL | TERRNO, "mmap of %s failed", TEMPFILE); in main() 92 tst_brkm(TFAIL | TERRNO, cleanup, in main() 111 tst_brkm(TFAIL | TERRNO, cleanup, "munmapping failed"); in main() 142 tst_brkm(TFAIL | TERRNO, cleanup, "opening %s failed", in setup() 149 tst_brkm(TFAIL | TERRNO, cleanup, in setup() 158 tst_brkm(TFAIL | TERRNO, cleanup, "fchmod(%s, 0444) failed", in setup() 164 tst_brkm(TFAIL | TERRNO, cleanup, "closing %s failed", in setup()
|
/third_party/ltp/testcases/kernel/syscalls/writev/ |
D | writev02.c | 114 tst_brkm(TFAIL | TERRNO, cleanup, in main() 118 tst_brkm(TFAIL | TERRNO, cleanup, in main() 122 tst_brkm(TFAIL | TERRNO, cleanup, in main() 127 tst_brkm(TFAIL | TERRNO, cleanup, in main() 132 tst_brkm(TFAIL | TERRNO, cleanup, "close failed"); in main() 135 tst_brkm(TFAIL | TERRNO, cleanup, in main() 185 tst_brkm(TBROK | TERRNO, cleanup, "mmap failed"); in setup() 196 tst_resm(TWARN | TERRNO, "unmap failed"); in cleanup() 198 tst_resm(TWARN | TERRNO, "unlink failed"); in cleanup() 218 tst_resm(TFAIL | TERRNO, "unlink failed"); in sighandler() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/mount/ |
D | mount03.c | 147 tst_resm(TWARN | TERRNO, in test_rwflag() 165 tst_resm(TWARN | TERRNO, in test_rwflag() 172 tst_resm(TWARN | TERRNO, "mknod(2) failed to create %s", in test_rwflag() 183 tst_resm(TWARN | TERRNO, "opening %s failed", file); in test_rwflag() 203 tst_resm(TWARN | TERRNO, in test_rwflag() 212 tst_resm(TWARN | TERRNO, "writing to %s failed", file); in test_rwflag() 237 tst_resm(TWARN | TERRNO, "read() Fails on %s", file); in test_rwflag() 269 tst_resm(TBROK | TERRNO, "fork failed"); in test_rwflag() 274 tst_resm(TWARN | TERRNO, in test_rwflag() 295 tst_resm(TWARN | TERRNO, "opening %s failed", file); in test_rwflag() [all …]
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
D | hugemmap02.c | 69 tst_brk(TBROK | TERRNO, "no empty region to use"); in test_hugemmap() 75 tst_brk(TBROK | TERRNO, "mmap failed on nfildes"); in test_hugemmap() 81 tst_brk(TBROK | TERRNO, "no empty region to use"); in test_hugemmap() 88 tst_res(TFAIL | TERRNO, "huge mmap failed unexpectedly" in test_hugemmap() 95 tst_res(TFAIL | TERRNO, "huge mmap failed unexpectedly" in test_hugemmap() 106 tst_res(TFAIL | TERRNO, in test_hugemmap() 111 tst_res(TFAIL | TERRNO, "huge munmap failed"); in test_hugemmap() 113 tst_res(TFAIL | TERRNO, "munmap failed"); in test_hugemmap()
|
/third_party/ltp/testcases/kernel/syscalls/msync/ |
D | msync02.c | 121 tst_brkm(TBROK | TERRNO, cleanup, "open failed"); in setup() 126 tst_brkm(TBROK | TERRNO, cleanup, "write failed"); in setup() 135 tst_brkm(TBROK | TERRNO, cleanup, "mmap failed"); in setup() 139 tst_brkm(TBROK | TERRNO, cleanup, "lseek failed"); in setup() 143 tst_brkm(TBROK | TERRNO, cleanup, "write failed"); in setup() 149 tst_resm(TBROK | TERRNO, "munmap failed"); in cleanup() 153 tst_resm(TWARN | TERRNO, "close failed"); in cleanup()
|
/third_party/ltp/testcases/kernel/syscalls/setns/ |
D | setns02.c | 47 tst_res(TFAIL|TERRNO, CP"uname"); in do_child_newuts() 52 tst_res(TFAIL|TERRNO, CP"sethostname"); in do_child_newuts() 54 tst_res(TFAIL|TERRNO, CP"uname"); in do_child_newuts() 66 tst_res(TFAIL|TERRNO, CP"setns"); in do_child_newuts() 70 tst_res(TFAIL|TERRNO, CP"uname"); in do_child_newuts() 89 tst_res(TPASS|TERRNO, CP"shmat failed as expected"); in do_child_newipc() 98 tst_res(TFAIL|TERRNO, CP"setns"); in do_child_newipc() 104 tst_res(TFAIL|TERRNO, CP"shmat failed after setns"); in do_child_newipc() 126 tst_brk(TBROK|TERRNO, "ltp_clone"); in test_flag()
|
/third_party/ltp/testcases/kernel/syscalls/kill/ |
D | kill02.c | 245 tst_brkm(TBROK | TERRNO, cleanup, in main() 259 tst_brkm(TBROK | TERRNO, cleanup, in main() 272 tst_brkm(TBROK | TERRNO, cleanup, in main() 282 tst_brkm(TBROK | TERRNO, cleanup, "fork failed"); in main() 385 tst_brkm(TBROK | TERRNO, NULL, "read() failed"); in parent_rout() 463 tst_brkm(TBROK | TERRNO, NULL, in child1_rout() 480 tst_brkm(TBROK | TERRNO, NULL, "fork failed"); in child1_rout() 490 tst_brkm(TBROK | TERRNO, NULL, "self_exec() failed"); in child1_rout() 504 tst_brkm(TBROK | TERRNO, NULL, "fork failed"); in child1_rout() 717 tst_brkm(TBROK | TERRNO, NULL, in setup() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/move_pages/ |
D | move_pages03.c | 98 tst_resm(TWARN | TERRNO, "error post semaphore"); in child() 102 tst_resm(TWARN | TERRNO, "error wait semaphore"); in child() 123 tst_brkm(TBROK | TERRNO, cleanup, "get_allowed_nodes: %d", ret); in main() 155 tst_resm(TBROK | TERRNO, "forking child failed"); in main() 163 tst_resm(TWARN | TERRNO, "error wait semaphore"); in main() 168 tst_resm(TFAIL|TERRNO, "move_pages failed"); in main() 179 tst_resm(TWARN | TERRNO, "error post semaphore"); in main()
|
/third_party/ltp/testcases/kernel/syscalls/brk/ |
D | brk02.c | 29 tst_res(TFAIL | TERRNO, "Cannot expand brk() by page size"); in brk_down_vmas() 35 tst_res(TFAIL | TERRNO, "Cannot expand brk() by 2x page size"); in brk_down_vmas() 40 tst_res(TFAIL | TERRNO, "Cannot mprotect new VMA"); in brk_down_vmas() 46 tst_res(TFAIL | TERRNO, "Cannot expand brk() after mprotect"); in brk_down_vmas() 51 tst_res(TFAIL | TERRNO, "Cannot restore brk() to start address"); in brk_down_vmas()
|