Home
last modified time | relevance | path

Searched refs:status (Results 1 – 25 of 292) sorted by relevance

12345678910>>...12

/tools/testing/selftests/membarrier/
A Dmembarrier_test_impl.h262 int status; in test_membarrier_fail() local
265 if (status) in test_membarrier_fail()
268 if (status) in test_membarrier_fail()
271 if (status) in test_membarrier_fail()
288 int status; in test_membarrier_success() local
291 if (status) in test_membarrier_success()
294 if (status) in test_membarrier_success()
297 if (status) in test_membarrier_success()
317 if (status) in test_membarrier_success()
320 if (status) in test_membarrier_success()
[all …]
/tools/power/acpi/os_specific/service_layers/
A Doslinuxtbl.c167 return (status); in acpi_os_get_table_by_address()
174 return (status); in acpi_os_get_table_by_address()
196 return (status); in acpi_os_get_table_by_address()
239 status = in acpi_os_get_table_by_name()
248 if (ACPI_FAILURE(status) && status == AE_LIMIT) { in acpi_os_get_table_by_name()
253 status = in acpi_os_get_table_by_name()
260 return (status); in acpi_os_get_table_by_name()
384 return (status); in acpi_os_get_table_by_index()
925 status = in osl_get_bios_table()
1015 status = in osl_list_customized_tables()
[all …]
/tools/include/nolibc/sys/
A Dwait.h28 return my_syscall4(__NR_wait4, pid, status, options, rusage); in sys_wait4()
37 return __sysret(sys_wait4(pid, status, options, rusage)); in wait4()
54 pid_t waitpid(pid_t pid, int *status, int options) in waitpid() argument
85 *status = 0; in waitpid()
88 *status = (info.si_status & 0xff) << 8; in waitpid()
91 *status = info.si_status & 0x7f; in waitpid()
94 *status = (info.si_status & 0x7f) | 0x80; in waitpid()
98 *status = (info.si_status << 8) + 0x7f; in waitpid()
101 *status = 0xffff; in waitpid()
111 pid_t wait(int *status) in wait() argument
[all …]
/tools/power/acpi/tools/acpidump/
A Dapdump.c70 acpi_status status; in ap_is_valid_checksum() local
86 if (ACPI_FAILURE(status)) { in ap_is_valid_checksum()
195 acpi_status status; in ap_dump_all_tables() local
202 status = in ap_dump_all_tables()
204 if (ACPI_FAILURE(status)) { in ap_dump_all_tables()
208 if (status == AE_LIMIT) { in ap_dump_all_tables()
252 acpi_status status; in ap_dump_table_by_address() local
259 if (ACPI_FAILURE(status)) { in ap_dump_table_by_address()
267 if (ACPI_FAILURE(status)) { in ap_dump_table_by_address()
298 acpi_status status; in ap_dump_table_by_name() local
[all …]
A Dapmain.c133 acpi_status status; in ap_do_options() local
177 status = in ap_do_options()
179 if (ACPI_FAILURE(status)) { in ap_do_options()
293 int status = 0; in main() local
306 if (status > 0) { in main()
309 if (status < 0) { in main()
310 return (status); in main()
320 status = ap_dump_all_tables(); in main()
346 if (status) { in main()
347 return (status); in main()
[all …]
/tools/testing/selftests/sched_ext/
A Drunner.c53 switch (status) { in status_to_result()
65 enum scx_test_status status, in print_test_result() argument
82 enum scx_test_status status; in run_test() local
86 status = test->setup(&context); in run_test()
87 if (status != SCX_TEST_PASS) in run_test()
88 return status; in run_test()
91 status = test->run(context); in run_test()
96 return status; in run_test()
158 enum scx_test_status status; in main() local
183 status = run_test(test); in main()
[all …]
A Dinit_enable_count.c23 int ret, i, status; in run_test() local
55 SCX_FAIL_IF(waitpid(pids[i], &status, 0) != pids[i], in run_test()
59 status); in run_test()
92 SCX_FAIL_IF(waitpid(pids[i], &status, 0) != pids[i], in run_test()
96 status); in run_test()
107 SCX_FAIL_IF(waitpid(pids[i], &status, 0) != pids[i], in run_test()
111 status); in run_test()
142 enum scx_test_status status; in run() local
144 status = run_test(true); in run()
145 if (status != SCX_TEST_PASS) in run()
[all …]
/tools/testing/selftests/bpf/progs/
A Dcrypto_sanity.c18 int status; variable
64 status = 0; in skb_crypto_setup()
67 status = -EINVAL; in skb_crypto_setup()
76 status = err; in skb_crypto_setup()
82 status = err; in skb_crypto_setup()
97 status = err; in decrypt_sanity()
103 status = -ENOENT; in decrypt_sanity()
109 status = -ENOENT; in decrypt_sanity()
131 status = 0; in encrypt_sanity()
135 status = err; in encrypt_sanity()
[all …]
A Dcgrp_kfunc_common.h33 long status; in cgrps_kfunc_map_value_lookup() local
35 status = bpf_probe_read_kernel(&id, sizeof(id), &cgrp->self.id); in cgrps_kfunc_map_value_lookup()
36 if (status) in cgrps_kfunc_map_value_lookup()
45 long status; in cgrps_kfunc_map_insert() local
49 status = bpf_probe_read_kernel(&id, sizeof(id), &cgrp->self.id); in cgrps_kfunc_map_insert()
50 if (status) in cgrps_kfunc_map_insert()
51 return status; in cgrps_kfunc_map_insert()
54 status = bpf_map_update_elem(&__cgrps_kfunc_map, &id, &local, BPF_NOEXIST); in cgrps_kfunc_map_insert()
55 if (status) in cgrps_kfunc_map_insert()
56 return status; in cgrps_kfunc_map_insert()
A Dtask_kfunc_common.h33 long status; in tasks_kfunc_map_value_lookup() local
35 status = bpf_probe_read_kernel(&pid, sizeof(pid), &p->pid); in tasks_kfunc_map_value_lookup()
36 if (status) in tasks_kfunc_map_value_lookup()
45 long status; in tasks_kfunc_map_insert() local
49 status = bpf_probe_read_kernel(&pid, sizeof(pid), &p->pid); in tasks_kfunc_map_insert()
50 if (status) in tasks_kfunc_map_insert()
51 return status; in tasks_kfunc_map_insert()
54 status = bpf_map_update_elem(&__tasks_kfunc_map, &pid, &local, BPF_NOEXIST); in tasks_kfunc_map_insert()
55 if (status) in tasks_kfunc_map_insert()
56 return status; in tasks_kfunc_map_insert()
A Dcrypto_bench.c19 int status; variable
32 status = 0; in crypto_setup()
35 status = -EINVAL; in crypto_setup()
44 status = err; in crypto_setup()
50 status = err; in crypto_setup()
64 status = -ENOENT; in crypto_encrypt()
70 status = -ENOENT; in crypto_encrypt()
77 status = bpf_crypto_encrypt(ctx, &psrc, &pdst, NULL); in crypto_encrypt()
101 status = bpf_crypto_decrypt(ctx, &psrc, &pdst, NULL); in crypto_decrypt()
A Dcrypto_basic.c11 int status; variable
24 status = 0; in crypto_release()
29 status = err; in crypto_release()
50 status = 0; in crypto_acquire()
55 status = err; in crypto_acquire()
A Dcgrp_kfunc_success.c52 long status; in BPF_PROG() local
57 status = cgrps_kfunc_map_insert(cgrp); in BPF_PROG()
58 if (status) in BPF_PROG()
69 long status; in BPF_PROG() local
74 status = cgrps_kfunc_map_insert(cgrp); in BPF_PROG()
75 if (status) { in BPF_PROG()
112 long status; in BPF_PROG() local
117 status = cgrps_kfunc_map_insert(cgrp); in BPF_PROG()
118 if (status) { in BPF_PROG()
/tools/testing/selftests/firmware/
A Dfw_upload.sh67 local status="$2"
78 local status
83 status=$(cat "$DIR"/"$name"/status)
84 if [ "$status" = "$expected" ]; then
126 local status
128 for status in $progress_states; do
129 inject_error $name $status $error_abort
130 if ! await_status $name $status; then
151 local status
154 for status in $progress_states; do
[all …]
/tools/testing/selftests/mm/
A Dhugetlb-read-hwpoison.c30 switch (status) { in status_to_str()
146 return status; in test_hugetlb_read()
157 status = TEST_FAILED; in test_hugetlb_read()
160 status = TEST_PASSED; in test_hugetlb_read()
166 status = TEST_FAILED; in test_hugetlb_read()
169 return status; in test_hugetlb_read()
183 return status; in test_hugetlb_read_hwpoison()
194 status = TEST_FAILED; in test_hugetlb_read_hwpoison()
215 status = TEST_PASSED; in test_hugetlb_read_hwpoison()
232 status = TEST_FAILED; in test_hugetlb_read_hwpoison()
[all …]
/tools/testing/selftests/powerpc/
A Dharness.c30 int rc, status; in run_test() local
53 rc = waitpid(pid, &status, 0); in run_test()
76 if (WIFEXITED(status)) in run_test()
77 status = WEXITSTATUS(status); in run_test()
79 if (WIFSIGNALED(status)) in run_test()
80 printf("!! child died by signal %d\n", WTERMSIG(status)); in run_test()
84 status = 1; /* Signal or other */ in run_test()
87 return status; in run_test()
/tools/spi/
A Dspidev_fdx.c21 int status; in do_read() local
30 status = read(fd, buf, len); in do_read()
31 if (status < 0) { in do_read()
35 if (status != len) { in do_read()
40 printf("read(%2d, %2d): %02x %02x,", len, status, in do_read()
42 status -= 2; in do_read()
44 while (status-- > 0) in do_read()
53 int status; in do_msg() local
68 status = ioctl(fd, SPI_IOC_MESSAGE(2), xfer); in do_msg()
69 if (status < 0) { in do_msg()
[all …]
/tools/testing/selftests/x86/
A Damx.c324 int status; in test_dynamic_state() local
327 wait(&status); in test_dynamic_state()
328 if (!WIFEXITED(status) || WEXITSTATUS(status)) in test_dynamic_state()
341 int status; in test_dynamic_state() local
344 if (!WIFEXITED(status) || WEXITSTATUS(status)) in test_dynamic_state()
382 int status; in test_dynamic_state() local
386 if (!WIFEXITED(status) || WEXITSTATUS(status)) in test_dynamic_state()
445 int status; in test_fork() local
448 if (!WIFEXITED(status) || WEXITSTATUS(status)) in test_fork()
463 int status; in test_fork() local
[all …]
A Dfsgsbase_restore.c181 int status; in main() local
184 if (waitpid(chld, &status, 0) != chld || !WIFSTOPPED(status)) in main()
213 if (waitpid(chld, &status, 0) != chld || !WIFSTOPPED(status)) in main()
223 if (waitpid(chld, &status, 0) != chld) in main()
226 if (WIFSIGNALED(status)) { in main()
231 if (!WIFEXITED(status)) { in main()
232 printf("[FAIL]\tTracee stopped for an unexpected reason: %d\n", status); in main()
236 int exitcode = WEXITSTATUS(status); in main()
/tools/testing/selftests/riscv/vector/
A Dv_helpers.c32 int rc, pid, status; in launch_test() local
55 rc = waitpid(-1, &status, 0); in launch_test()
61 if ((WIFEXITED(status) && WEXITSTATUS(status) == -1) || in launch_test()
62 WIFSIGNALED(status)) { in launch_test()
67 return WEXITSTATUS(status); in launch_test()
A Dvstate_exec_nolibc.c9 int rc, pid, status, test_inherit = 0, xtheadvector = 0; in main() local
71 rc = waitpid(-1, &status, 0); in main()
73 if (WIFEXITED(status) && WEXITSTATUS(status) == -1) { in main()
78 if (WIFSIGNALED(status)) { in main()
79 if (WTERMSIG(status) != SIGILL) { in main()
93 ctrl_c = WEXITSTATUS(status); in main()
/tools/testing/selftests/powerpc/ptrace/
A Dptrace-perf-hwbreak.c192 int status; in ptrace_fork_child() local
205 FAIL_IF_MSG(!WIFSTOPPED(status), "Child is not stopped"); in ptrace_fork_child()
233 int status; /* Stop status of child after waitpid */ in same_watch_addr_test() local
263 FAIL_IF_MSG(!WIFSTOPPED(status), "Child is not stopped"); in same_watch_addr_test()
278 FAIL_IF_MSG(!WIFSTOPPED(status), "Child is not stopped"); in same_watch_addr_test()
296 FAIL_IF_MSG(!WIFSTOPPED(status), "Child is not stopped"); in same_watch_addr_test()
306 FAIL_IF_MSG(!WIFSTOPPED(status), "Child is not stopped"); in same_watch_addr_test()
321 FAIL_IF_MSG(!WIFSTOPPED(status), "Child is not stopped"); in same_watch_addr_test()
339 FAIL_IF_MSG(!WIFSTOPPED(status), "Child is not stopped"); in same_watch_addr_test()
354 FAIL_IF_MSG(!WIFSTOPPED(status), "Child is not stopped"); in same_watch_addr_test()
[all …]
/tools/power/acpi/common/
A Dcmfsize.c33 acpi_status status; in cm_get_file_size() local
42 status = fseek(file, 0, SEEK_END); in cm_get_file_size()
43 if (ACPI_FAILURE(status)) { in cm_get_file_size()
54 status = fseek(file, current_offset, SEEK_SET); in cm_get_file_size()
55 if (ACPI_FAILURE(status)) { in cm_get_file_size()
/tools/perf/arch/x86/tests/
A Dbp-modify.c62 int status; in bp_modify1() local
67 waitpid(child, &status, 0); in bp_modify1()
68 if (WIFEXITED(status)) { in bp_modify1()
106 waitpid(child, &status, 0); in bp_modify1()
107 if (WIFEXITED(status)) { in bp_modify1()
139 int status; in bp_modify2() local
144 waitpid(child, &status, 0); in bp_modify2()
145 if (WIFEXITED(status)) { in bp_modify2()
182 waitpid(child, &status, 0); in bp_modify2()
183 if (WIFEXITED(status)) { in bp_modify2()
/tools/testing/selftests/breakpoints/
A Dstep_after_suspend_test.c52 int status; in run_test() local
63 wpid = waitpid(pid, &status, __WALL); in run_test()
68 if (!WIFSTOPPED(status)) { in run_test()
72 if (WSTOPSIG(status) != SIGSTOP) { in run_test()
90 wpid = waitpid(pid, &status, __WALL); in run_test()
95 if (WIFEXITED(status)) { in run_test()
100 if (!WIFSTOPPED(status)) { in run_test()
104 if (WSTOPSIG(status) != SIGTRAP) { in run_test()
116 wpid = waitpid(pid, &status, __WALL); in run_test()
121 if (!WIFEXITED(status)) { in run_test()

Completed in 26 milliseconds

12345678910>>...12