Home
last modified time | relevance | path

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

12345678

/tools/testing/selftests/membarrier/
Dmembarrier_test_impl.h229 int status; in test_membarrier_fail() local
231 status = test_membarrier_cmd_fail(); in test_membarrier_fail()
232 if (status) in test_membarrier_fail()
233 return status; in test_membarrier_fail()
234 status = test_membarrier_flags_fail(); in test_membarrier_fail()
235 if (status) in test_membarrier_fail()
236 return status; in test_membarrier_fail()
237 status = test_membarrier_private_expedited_fail(); in test_membarrier_fail()
238 if (status) in test_membarrier_fail()
239 return status; in test_membarrier_fail()
[all …]
/tools/power/acpi/os_specific/service_layers/
Doslinuxtbl.c161 acpi_status status = AE_OK; in acpi_os_get_table_by_address() local
165 status = osl_table_initialize(); in acpi_os_get_table_by_address()
166 if (ACPI_FAILURE(status)) { in acpi_os_get_table_by_address()
167 return (status); in acpi_os_get_table_by_address()
172 status = osl_map_table(address, NULL, &mapped_table); in acpi_os_get_table_by_address()
173 if (ACPI_FAILURE(status)) { in acpi_os_get_table_by_address()
174 return (status); in acpi_os_get_table_by_address()
181 status = AE_BAD_HEADER; in acpi_os_get_table_by_address()
187 status = AE_NO_MEMORY; in acpi_os_get_table_by_address()
196 return (status); in acpi_os_get_table_by_address()
[all …]
/tools/power/acpi/tools/acpidump/
Dapdump.c70 acpi_status status; in ap_is_valid_checksum() local
79 status = acpi_tb_validate_rsdp(rsdp); in ap_is_valid_checksum()
81 status = acpi_tb_verify_checksum(table, table->length); in ap_is_valid_checksum()
84 if (ACPI_FAILURE(status)) { in ap_is_valid_checksum()
193 acpi_status status; in ap_dump_all_tables() local
200 status = in ap_dump_all_tables()
202 if (ACPI_FAILURE(status)) { in ap_dump_all_tables()
206 if (status == AE_LIMIT) { in ap_dump_all_tables()
211 acpi_format_exception(status)); in ap_dump_all_tables()
216 i, acpi_format_exception(status)); in ap_dump_all_tables()
[all …]
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
305 status = ap_do_options(argc, argv); in main()
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()
325 status = ap_dump_table_by_address(action->argument); in main()
[all …]
/tools/testing/selftests/powerpc/
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/
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/nvdimm/test/
Dnfit_test.h45 __u32 status; member
62 __u32 status; member
68 __u32 status; member
72 __u32 status; member
114 __u32 status; member
132 __u32 status; member
143 __u32 status; member
161 __u32 status; member
174 __u32 status; member
192 __u32 status; member
[all …]
/tools/power/acpi/common/
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/
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/pidfd/
Dpidfd.h73 int status, ret; in wait_for_pid() local
76 ret = waitpid(pid, &status, 0); in wait_for_pid()
85 if (!WIFEXITED(status)) { in wait_for_pid()
88 WIFSIGNALED(status), WTERMSIG(status)); in wait_for_pid()
92 ret = WEXITSTATUS(status); in wait_for_pid()
/tools/testing/selftests/x86/
Dfsgsbase_restore.c182 int status; in main() local
185 if (waitpid(chld, &status, 0) != chld || !WIFSTOPPED(status)) in main()
214 if (waitpid(chld, &status, 0) != chld || !WIFSTOPPED(status)) in main()
224 if (waitpid(chld, &status, 0) != chld) in main()
227 if (WIFSIGNALED(status)) { in main()
232 if (!WIFEXITED(status)) { in main()
233 printf("[FAIL]\tTracee stopped for an unexpected reason: %d\n", status); in main()
237 int exitcode = WEXITSTATUS(status); in main()
Dtest_mremap_vdso.c92 int status; in main() local
94 if (waitpid(child, &status, 0) != child || in main()
95 !WIFEXITED(status)) { in main()
98 } else if (WEXITSTATUS(status) != 0) { in main()
100 WEXITSTATUS(status)); in main()
/tools/testing/selftests/breakpoints/
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()
Dbreakpoint_test_arm64.c114 int status; in run_test() local
127 wpid = waitpid(pid, &status, __WALL); in run_test()
133 if (!WIFSTOPPED(status)) { in run_test()
138 if (WSTOPSIG(status) != SIGSTOP) { in run_test()
154 wpid = waitpid(pid, &status, __WALL); in run_test()
161 if (WIFEXITED(status)) { in run_test()
165 if (!WIFSTOPPED(status)) { in run_test()
169 if (WSTOPSIG(status) != SIGTRAP) { in run_test()
186 wpid = waitpid(pid, &status, 0); in run_test()
/tools/testing/kunit/
Dkunit_parser.py21 self.status = TestStatus.SUCCESS
26 return 'TestSuite(' + str(self.status) + ',' + self.name + ',' + str(self.cases) + ')'
33 self.status = TestStatus.SUCCESS
38 return 'TestCase(' + str(self.status) + ',' + self.name + ',' + str(self.log) + ')'
158 test_case.status = TestStatus.TEST_CRASHED
170 test_case.status = TestStatus.SKIPPED
172 if test_case.status == TestStatus.TEST_CRASHED:
175 test_case.status = TestStatus.SUCCESS
177 test_case.status = TestStatus.FAILURE
195 test_case.status = TestStatus.TEST_CRASHED
[all …]
/tools/testing/selftests/ptrace/
Dget_syscall_info.c124 int status; in TEST() local
127 ASSERT_EQ(pid, wait(&status)) { in TEST()
131 if (WIFEXITED(status)) { in TEST()
133 ASSERT_EQ(0, WEXITSTATUS(status)); in TEST()
136 ASSERT_FALSE(WIFSIGNALED(status)) { in TEST()
139 WTERMSIG(status)); in TEST()
141 ASSERT_TRUE(WIFSTOPPED(status)) { in TEST()
143 LOG_KILL_TRACEE("unexpected wait status %#x", status); in TEST()
146 switch (WSTOPSIG(status)) { in TEST()
259 WSTOPSIG(status)); in TEST()
/tools/perf/
Dbuiltin-version.c30 static void on_off_print(const char *status) in on_off_print() argument
34 if (!strcmp(status, "OFF")) in on_off_print()
35 color_fprintf(stdout, PERF_COLOR_RED, "%-3s", status); in on_off_print()
37 color_fprintf(stdout, PERF_COLOR_GREEN, "%-3s", status); in on_off_print()
43 const char *status) in status_print() argument
46 on_off_print(status); in status_print()
/tools/testing/selftests/landlock/
Dptrace_test.c258 int status, err_proc_read; in TEST_F() local
352 ASSERT_EQ(parent, waitpid(parent, &status, 0)); in TEST_F()
353 ASSERT_EQ(1, WIFSTOPPED(status)); in TEST_F()
398 ASSERT_EQ(child, waitpid(child, &status, 0)); in TEST_F()
399 ASSERT_EQ(1, WIFSTOPPED(status)); in TEST_F()
425 ASSERT_EQ(child, waitpid(child, &status, 0)); in TEST_F()
426 ASSERT_EQ(1, WIFSTOPPED(status)); in TEST_F()
432 ASSERT_EQ(child, waitpid(child, &status, 0)); in TEST_F()
433 if (WIFSIGNALED(status) || !WIFEXITED(status) || in TEST_F()
434 WEXITSTATUS(status) != EXIT_SUCCESS) in TEST_F()
/tools/testing/selftests/vm/
Dmemfd_secret.c113 int status; in try_ptrace() local
128 ret = waitpid(ppid, &status, WUNTRACED); in try_ptrace()
129 if ((ret != ppid) || !(WIFSTOPPED(status))) { in try_ptrace()
131 ret, status); in try_ptrace()
143 int status; in check_child_status() local
145 waitpid(pid, &status, 0); in check_child_status()
147 if (WIFEXITED(status) && WEXITSTATUS(status) == KSFT_SKIP) { in check_child_status()
152 if ((WIFEXITED(status) && WEXITSTATUS(status) == KSFT_PASS) || in check_child_status()
153 WIFSIGNALED(status)) { in check_child_status()
Dmap_populate.c35 int status, ret; in parent_f() local
37 ret = read(sock, &status, sizeof(int)); in parent_f()
44 ret = write(sock, &status, sizeof(int)); in parent_f()
47 waitpid(child, &status, 0); in parent_f()
48 BUG_ON(!WIFEXITED(status), "child in unexpected state"); in parent_f()
50 return WEXITSTATUS(status); in parent_f()
/tools/usb/usbip/libsrc/
Dvhci_driver.c52 int port, status, speed, devid; in parse_status() local
59 hub, &port, &status, &speed, in parse_status()
68 hub, port, status, speed, devid); in parse_status()
81 idev->status = status; in parse_status()
88 if (idev->status != VDEV_ST_NULL in parse_status()
89 && idev->status != VDEV_ST_NOTASSIGNED) { in parse_status()
114 char status[MAX_STATUS_NAME+1] = "status"; in refresh_imported_device_list() local
119 snprintf(status, sizeof(status), "status.%d", i); in refresh_imported_device_list()
122 status); in refresh_imported_device_list()
350 if (vhci_driver->idev[i].status == VDEV_ST_NULL) in usbip_vhci_get_free_port()
[all …]
/tools/testing/selftests/timers/
Dclocksource-switch.c125 int count, i, status; in main() local
141 status = -1; in main()
145 status = -1; in main()
156 while (pid != waitpid(pid, &status, WNOHANG)) in main()
159 status = -1; in main()
165 if (status) in main()
/tools/usb/usbip/src/
Dusbip_network.c137 op_common->status = usbip_net_pack_uint32_t(pack, op_common->status); in usbip_net_pack_op_common()
140 int usbip_net_send_op_common(int sockfd, uint32_t code, uint32_t status) in usbip_net_send_op_common() argument
149 op_common.status = status; in usbip_net_send_op_common()
162 int usbip_net_recv_op_common(int sockfd, uint16_t *code, int *status) in usbip_net_recv_op_common() argument
191 *status = ST_ERROR; in usbip_net_recv_op_common()
196 *status = op_common.status; in usbip_net_recv_op_common()
198 if (op_common.status != ST_OK) { in usbip_net_recv_op_common()
199 dbg("request failed at peer: %d", op_common.status); in usbip_net_recv_op_common()
/tools/testing/selftests/powerpc/dscr/
Ddscr_inherit_test.c47 int status; in dscr_inherit() local
49 if (waitpid(pid, &status, 0) == -1) { in dscr_inherit()
54 if (!WIFEXITED(status)) { in dscr_inherit()
59 if (WEXITSTATUS(status) != 0) { in dscr_inherit()
/tools/testing/selftests/seccomp/
Dseccomp_bpf.c792 void *status; in kill_thread_or_group() local
835 ASSERT_EQ(0, pthread_join(thread, &status)); in kill_thread_or_group()
836 ASSERT_EQ(SIBLING_EXIT_UNKILLED, (unsigned long)status); in kill_thread_or_group()
840 ASSERT_EQ(0, pthread_join(thread, &status)); in kill_thread_or_group()
841 ASSERT_NE(SIBLING_EXIT_FAILURE, (unsigned long)status); in kill_thread_or_group()
853 int status; in TEST() local
863 ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0)); in TEST()
866 ASSERT_TRUE(WIFEXITED(status)); in TEST()
867 ASSERT_EQ(42, WEXITSTATUS(status)); in TEST()
872 int status; in TEST() local
[all …]

12345678