Home
last modified time | relevance | path

Searched refs:tst_brk (Results 1 – 25 of 600) sorted by relevance

12345678910>>...24

/third_party/ltp/testcases/kernel/containers/netns/
Dnetns_helper.sh82 [ $? -eq 32 ] && tst_brk TCONF "setns not supported"
93 tst_brk TBROK \
106 tst_brk TBROK \
112 tst_brk TBROK "fourth argument must be the IPv4 address for veth0"
115 tst_brk TBROK "fifth argument must be the IPv4 address for veth1"
118 tst_brk TBROK "sixth argument must be the IPv6 address for veth0"
121 tst_brk TBROK "seventh argument must be the IPv6 address for veth1"
145 tst_brk TBROK "second argument must be an ip version (ipv4|ipv6)"
165 tst_brk TBROK "unable to create a new network namespace"
171 tst_brk TBROK "unable to create a new network namespace"
[all …]
/third_party/ltp/testcases/lib/
Dtst_test.sh98 *) tst_brk TBROK "Invalid res type '$1'";;
117 tst_brk() function
138 tst_brk TBROK "$@ failed"
146 tst_brk TBROK "$@ failed"
188 _tst_expect_pass tst_brk "$@"
198 _tst_expect_fail tst_brk "$@"
211 tst_brk TBROK "TST_RETRY_FN_EXP_BACKOFF expects 3 parameters"
215 tst_brk TBROK "TST_RETRY_FN_EXP_BACKOFF: tst_sec must be integer ('$tst_sec')"
228 tst_brk TBROK "\"$tst_fun\" timed out"
238 tst_brk TBROK "TST_RETRY_FUNC expects 2 parameters"
[all …]
/third_party/ltp/testcases/kernel/syscalls/fallocate/
Dfallocate04.c76 tst_brk(TFAIL, "not expected file data"); in check_file_data()
86 tst_brk(TCONF, "fallocate() not supported"); in test01()
87 tst_brk(TFAIL | TERRNO, "fallocate() failed"); in test01()
107 tst_brk(TCONF, in test02()
114 tst_brk(TCONF, in test02()
117 tst_brk(TFAIL | TERRNO, "fallocate() failed"); in test02()
126 tst_brk(TFAIL | TERRNO, in test02()
133 tst_brk(TBROK | TERRNO, in test02()
145 tst_brk(TFAIL, "not expected allocated size"); in test02()
162 tst_brk(TCONF, in test03()
[all …]
/third_party/ltp/testcases/kernel/syscalls/sigpending/
Dsigpending02.c41 tst_brk(TCONF, "libc sigpending() is not implemented"); in tested_sigpending()
75 tst_brk(TBROK, "sigprocmask failed"); in test_sigpending()
86 tst_brk(TFAIL, in test_sigpending()
91 tst_brk(TBROK, "raising SIGUSR1 failed"); in test_sigpending()
93 tst_brk(TFAIL, in test_sigpending()
101 tst_brk(TFAIL, "only SIGUSR1 should be pending by now"); in test_sigpending()
105 tst_brk(TBROK, "raising SIGUSR2 failed"); in test_sigpending()
107 tst_brk(TFAIL, in test_sigpending()
115 tst_brk(TFAIL, in test_sigpending()
122 tst_brk(TBROK, "sigprocmask failed"); in test_sigpending()
[all …]
/third_party/ltp/testcases/kernel/security/integrity/ima/tests/
Dima_setup.sh69 tst_brk TCONF "missing $IMA_POLICY (reboot or CONFIG_IMA_WRITE_POLICY=y required)"
72 tst_brk TCONF "cannot read IMA policy (CONFIG_IMA_READ_POLICY=y required)"
80 [ -f $IMA_POLICY ] || tst_brk TCONF "$err"
83 grep -q "Device or resource busy" log && tst_brk TCONF "$err"
102 tst_brk TCONF "IMA policy does not specify '$pattern'"
125tst_brk TCONF "IMA measurement tests require builtin IMA $policy policy (e.g. ima_policy=$policy k…
138 tst_brk TBROK "failed to create $default_dir"
141 tst_brk TBROK "failed to mount $type"
176 [ -d "$IMA_DIR" ] || tst_brk TCONF "IMA not enabled in kernel"
236 [ -z "$DIGEST_INDEX" ] && tst_brk TCONF \
[all …]
/third_party/ltp/testcases/kernel/syscalls/request_key/
Drequest_key04.c29 tst_brk(TBROK | TTERRNO, "failed to join new session keyring"); in do_test()
34 tst_brk(TBROK | TTERRNO, in do_test()
41 tst_brk(TBROK | TTERRNO, in do_test()
48 tst_brk(TBROK | TTERRNO, "failed to read from session keyring"); in do_test()
50 tst_brk(TBROK, "session keyring is not empty"); in do_test()
54 tst_brk(TBROK, "request_key() unexpectedly succeeded"); in do_test()
60 tst_brk(TBROK | TTERRNO, "failed to read from session keyring"); in do_test()
62 tst_brk(TFAIL, "added key to keyring without permission"); in do_test()
Drequest_key03.c53 tst_brk(TBROK | TTERRNO, "failed to join new session keyring"); in test_with_key_type()
63 tst_brk(TBROK | TTERRNO, in test_with_key_type()
96 tst_brk(TBROK | TTERRNO, in test_with_key_type()
102 tst_brk(TBROK | TTERRNO, in test_with_key_type()
116 tst_brk(TBROK | TTERRNO, in test_with_key_type()
143 tst_brk(TBROK, "add_key child %s", tst_strstatus(status)); in test_with_key_type()
157 tst_brk(TBROK, "request_key child %s", tst_strstatus(status)); in test_with_key_type()
/third_party/ltp/lib/
Dtst_wallclock.c29 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()
Dtst_test.c108 tst_brk(TBROK | TERRNO, "open(%s)", shm_path); in setup_ipc()
155 tst_brk(TBROK, IPC_ENV_VAR" is not defined"); in tst_reinit()
158 tst_brk(TBROK, "File %s does not exist!", path); in tst_reinit()
222 tst_brk(TBROK, "Invalid ttype value %i", ttype); in print_result()
378 tst_brk(TBROK, "Child (%i) killed by signal %s", in check_child_status()
383 tst_brk(TBROK, "Child (%i) exited abnormally", pid); in check_child_status()
392 tst_brk(TBROK, "Invalid child (%i) exit value %i", pid, ret); in check_child_status()
415 tst_brk(TBROK | TERRNO, "wait() failed"); in tst_reap_children()
425 tst_brk(TBROK, "test.forks_child must be set!"); in safe_fork()
445 tst_brk(TBROK, "test.forks_child must be set!"); in safe_clone()
[all …]
Dtst_af_alg.c22 tst_brk(TCONF, "kernel doesn't support AF_ALG"); in tst_alg_create()
23 tst_brk(TBROK | TERRNO, "unexpected error creating AF_ALG socket"); in tst_alg_create()
36 tst_brk(TCONF, in tst_alg_bind_addr()
42 tst_brk(TCONF, "kernel doesn't support %s algorithm '%s'", in tst_alg_bind_addr()
46 tst_brk(TBROK | TERRNO, in tst_alg_bind_addr()
60 tst_brk(TBROK, "algorithm type too long: '%s'", algtype); in init_sockaddr_alg()
64 tst_brk(TBROK, "algorithm name too long: '%s'", algname); in init_sockaddr_alg()
119 tst_brk(TBROK | TERRNO, in tst_have_alg()
150 tst_brk(TBROK | TERRNO, in tst_alg_setkey()
161 tst_brk(TBROK | TERRNO, in tst_alg_accept()
[all …]
/third_party/ltp/testcases/kernel/syscalls/fsconfig/
Dfsconfig01.c27 tst_brk(TBROK | TTERRNO, "fsopen() failed"); in run()
31 tst_brk(TFAIL | TTERRNO, "fsconfig(FSCONFIG_SET_FLAG) failed"); in run()
35 tst_brk(TFAIL | TTERRNO, "fsconfig(FSCONFIG_SET_STRING) failed"); in run()
42 tst_brk(TFAIL | TTERRNO, "fsconfig(FSCONFIG_SET_PATH) failed"); in run()
50 tst_brk(TFAIL | TTERRNO, "fsconfig(FSCONFIG_SET_PATH_EMPTY) failed"); in run()
58 tst_brk(TFAIL | TTERRNO, "fsconfig(FSCONFIG_SET_FD) failed"); in run()
63 tst_brk(TFAIL | TTERRNO, "fsconfig(FSCONFIG_CMD_CREATE) failed"); in run()
67 tst_brk(TBROK | TTERRNO, "fsmount() failed"); in run()
74 tst_brk(TBROK | TTERRNO, "move_mount() failed"); in run()
/third_party/ltp/testcases/kernel/syscalls/keyctl/
Dkeyctl07.c41 tst_brk(TBROK, "request_key() unexpectedly succeeded"); in try_to_read_negative_key()
44 tst_brk(TBROK | TTERRNO, in try_to_read_negative_key()
52 tst_brk(TBROK | TTERRNO, "KEYCTL_READ unexpectedly failed"); in try_to_read_negative_key()
54 tst_brk(TBROK, "KEYCTL_READ returned %ld but expected %zu", in try_to_read_negative_key()
65 tst_brk(TFAIL, in try_to_read_negative_key()
69 tst_brk(TFAIL | TTERRNO, in try_to_read_negative_key()
98 tst_brk(TCONF, "syscall not implemented"); in do_test()
100 tst_brk(TBROK, "Child %s", tst_strstatus(status)); in do_test()
/third_party/ltp/libs/libltpswap/
Dlibswap.c21 tst_brk(TBROK, "Insufficient disk space to create swap file"); in make_swapfile()
25 tst_brk(TBROK, "Failed to create swapfile"); in make_swapfile()
49 tst_brk(TCONF, "mkswap on %s not supported", fstype); in is_swap_supported()
51 tst_brk(TFAIL, "mkswap on %s failed", fstype); in is_swap_supported()
57 tst_brk(TCONF, "Swapfile on %s not implemented", fstype); in is_swap_supported()
59 tst_brk(TFAIL | TTERRNO, "swapon on %s failed", fstype); in is_swap_supported()
64 tst_brk(TFAIL | TTERRNO, "swapoff on %s failed", fstype); in is_swap_supported()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmat/
Dhugeshmat04.c42 tst_brk(TFAIL, "Test failed. Hugepage leak inspection."); in test_hugeshmat()
57 tst_brk(TBROK | TERRNO, "shmget"); in shared_hugepage()
63 tst_brk(TCONF, "failed to find free unmapped range"); in shared_hugepage()
69 tst_brk(TBROK | TERRNO, "shmat"); in shared_hugepage()
87 tst_brk(TCONF, "Not enough hugepages for testing."); in setup()
96 tst_brk(TCONF, "Needed > 2GB RAM, have: %ld", mem_total); in setup()
99 tst_brk(TCONF, "shmmax too low, have: %ld", new_shmmax); in setup()
106 tst_brk(TCONF, "No enough hugepages for testing."); in setup()
/third_party/ltp/testcases/kernel/controllers/cpuset/
Dcpuset_regression_test.sh127 tst_brk TCONF "Either kernel does not support cpuset controller or feature not enabled"
145 tst_brk TBROK "Both cpuset.cpu_exclusive and cpu_exclusive do not exist"
152 tst_brk TCONF "There are already cpuset groups, so at least two cpus are required."
158 [ $? -ne 0 ] && tst_brk TBROK "Unable to prepare existing cpuset cgroups"
164 [ $? -ne 0 ] && tst_brk TBROK "'echo 1 > ${root_cpuset_dir}/${cpu_exclusive}' failed"
202 [ $? -ne 0 ] && tst_brk TFAIL "'echo 1 > ${root_cpuset_dir}/testdir/${cpu_exclusive}' failed"
206 tst_brk TFAIL "${cpu_exclusive} is '${cpu_exclusive_tmp}', expected '1'"
211 [ $? -ne 0 ] && tst_brk TFAIL "'echo 0 > ${root_cpuset_dir}/testdir/${cpus}' failed"
215 tst_brk TFAIL "${cpus} is '${cpus_value}', expected '0'"
/third_party/ltp/testcases/kernel/mem/swapping/
Dswapping01.c65 tst_brk(TCONF, "test is not designed for 32-bit system."); in test_swapping()
74 tst_brk(TCONF, "zram-swap is being used!"); in test_swapping()
100 tst_brk(TCONF, "Not enough available mem to test."); in init_meminfo()
103 tst_brk(TCONF, "Not enough swap space to test: swap_free_init(%ldkB) < mem_over_max(%ldkB)", in init_meminfo()
122 tst_brk(TBROK | TERRNO, "kill"); in do_alloc()
135 tst_brk(TBROK, "child was not stopped."); in check_swapping()
151 tst_brk(TFAIL, "heavy swapping detected: " in check_swapping()
/third_party/ltp/testcases/kernel/syscalls/move_pages/
Dmove_pages12.c173 tst_brk(TBROK | TERRNO, "Cannot allocate hugepage"); in do_test()
182 tst_brk(TBROK, "Failed to mmap at desired addr"); in do_test()
224 tst_brk(TCONF, "Cannot allocate huge pages"); in alloc_free_huge_on_node()
226 tst_brk(TBROK | TERRNO, "mmap(..., MAP_HUGETLB, ...) failed"); in alloc_free_huge_on_node()
231 tst_brk(TBROK | TERRNO, "numa_bitmask_alloc() failed"); in alloc_free_huge_on_node()
238 tst_brk(TCONF, "Cannot mbind huge pages"); in alloc_free_huge_on_node()
240 tst_brk(TBROK | TERRNO, "mbind() failed"); in alloc_free_huge_on_node()
247 tst_brk(TCONF, "Cannot lock huge pages"); in alloc_free_huge_on_node()
248 tst_brk(TBROK | TTERRNO, "mlock failed"); in alloc_free_huge_on_node()
264 tst_brk(TCONF, "Huge page not supported"); in setup()
[all …]
/third_party/ltp/testcases/network/dhcp/
Ddhcp_lib.sh42 [ $TST_IPV6 ] && tst_brk TCONF "wicked not supported on IPv6"
62 tst_brk TBROK "failed to add veth $iface0"
65 ip link set up $iface0 || tst_brk TBROK "failed to bring $iface0 up"
66 ip link set up $iface1 || tst_brk TBROK "failed to bring $iface1 up"
68 stop_dhcp || tst_brk TBROK "Failed to stop dhcp server"
79 tst_brk TBROK "failed to add ip address"
128 tst_brk TBROK "Failed to start $dhcp_name"
135 tst_brk TBROK "Failed to start $dhcp_name"
156 dhclient -$TST_IPVER $iface1 || tst_brk TBROK "dhclient failed"
/third_party/ltp/testcases/kernel/syscalls/execve/
Dexecve01_child.c18 tst_brk(TFAIL, "argc is %d, expected 2", argc); in main()
21 tst_brk(TFAIL, "argv[1] is %s, expected 'canary'", argv[1]); in main()
26 tst_brk(TFAIL, "LTP_TEST_ENV_VAR is missing"); in main()
29 tst_brk(TFAIL, "LTP_TEST_ENV_VAR='%s', expected test", env); in main()
32 tst_brk(TFAIL, "PATH is in environment"); in main()
/third_party/ltp/testcases/kernel/syscalls/execle/
Dexecle01_child.c18 tst_brk(TFAIL, "argc is %d, expected 2", argc); in main()
21 tst_brk(TFAIL, "argv[1] is %s, expected 'canary'", argv[1]); in main()
26 tst_brk(TFAIL, "LTP_TEST_ENV_VAR is missing"); in main()
29 tst_brk(TFAIL, "LTP_TEST_ENV_VAR='%s', expected test", env); in main()
32 tst_brk(TFAIL, "PATH is in environment"); in main()
/third_party/ltp/testcases/kernel/syscalls/ptrace/
Dptrace07.c106 tst_brk(TBROK | TTERRNO, "PTRACE_ATTACH failed"); in do_test()
112 tst_brk(TCONF, "GETREGSET/SETREGSET is unsupported"); in do_test()
115 tst_brk(TCONF, "NT_X86_XSTATE is unsupported"); in do_test()
118 tst_brk(TCONF, "CPU doesn't support XSAVE instruction"); in do_test()
120 tst_brk(TBROK | TTERRNO, in do_test()
141 tst_brk(TBROK | TTERRNO, in do_test()
156 tst_brk(TBROK | TTERRNO, "PTRACE_DETACH failed"); in do_test()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/
Dhugemmap06.c43 tst_brk(TCONF, "System RAM is not enough to test."); in setup()
78 tst_brk(TCONF, in do_mmap()
82 tst_brk(TBROK | TERRNO, "Cannot allocate hugepage"); in do_mmap()
91 tst_brk(TBROK | TRERRNO, in do_mmap()
100 tst_brk(TFAIL | TERRNO, "mmap failed"); in do_mmap()
108 tst_brk(TBROK | TRERRNO, in do_mmap()
113 tst_brk(TFAIL | TERRNO, "huge munmap failed"); in do_mmap()
/third_party/ltp/testcases/kernel/syscalls/swapon/
Dswapon03.c46 tst_brk(TBROK, "Setup failed, quitting the test"); in verify_swapon()
95 tst_brk(TBROK, "Cleanup failed, quitting the test"); in verify_swapon()
114 tst_brk(TFAIL | TERRNO, "Failed to call seteuid"); in setup_swap()
118 tst_brk(TFAIL | TERRNO, in setup_swap()
125 tst_brk(TFAIL | TERRNO, in setup_swap()
139 tst_brk(TFAIL, "Failed to find existing number of swapfiles"); in setup_swap()
177 tst_brk(TFAIL, "Failed to setup swaps"); in setup_swap()
257 tst_brk(TCONF, "swap not supported by kernel"); in setup()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmdt/
Dhugeshmdt01.c60 tst_brk(TBROK | TERRNO, "shmat #2: reattach"); in hugeshmdt_test()
70 tst_brk(TBROK | TERRNO, "shmctl"); in check_functionality()
109 tst_brk(TBROK, "unexpected signal received: %d", sig); in sighandler()
118 tst_brk(TCONF, "No enough hugepages for testing."); in setup()
130 tst_brk(TBROK | TERRNO, "shmget"); in setup()
135 tst_brk(TBROK | TERRNO, "shmat #1"); in setup()
/third_party/ltp/testcases/kernel/io/ltp-aiodio/
Ddio_read.c49 tst_brk(TBROK, "pwrite: %s", tst_strerrno(-w)); in do_buffered_writes()
51 tst_brk(TBROK, "pwrite: wrote %lld bytes out of %lld", w, wsize); in do_buffered_writes()
80 tst_brk(TBROK, "pread: %s", tst_strerrno(-w)); in do_direct_reads()
82 tst_brk(TBROK, "pread: read %lld bytes out of %lld", w, rsize); in do_direct_reads()
107 tst_brk(TBROK, "Invalid number of children '%s'", str_numchildren); in setup()
110 tst_brk(TBROK, "Invalid file size '%s'", str_filesize); in setup()
113 tst_brk(TBROK, "Invalid write blocks size '%s'", str_writesize); in setup()
116 tst_brk(TBROK, "Invalid read blocks size '%s'", str_readsize); in setup()

12345678910>>...24