Lines Matching refs:ret

62 	int ret, pipefd[2], i;
65 ret = pipe(pipefd);
66 if (ret != 0)
80 ret = dup2(pipefd[1], 1);
81 if (ret == -1) {
90 ret = dup2(startup_pipe[0], 3);
91 if (ret == -1) {
108 ret = read(3, &i, sizeof(i));
109 if (ret < 0)
112 if (ret > 0)
114 ret);
117 ret = execl(program, program, NULL);
136 ret = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, child->stdout, &ev);
137 if (ret < 0) {
148 int ret, len, cur_work, cur_read;
150 ret = read(child->stdout, read_data, sizeof(read_data));
151 if (ret < 0) {
160 len = ret;
189 ret = asprintf(&child->output, "%s", work);
190 if (ret == -1)
235 pid_t ret;
241 ret = waitpid(child->pid, &status, 0);
242 if (ret == -1 && errno == EINTR)
245 if (ret == -1) {
311 int ret;
313 ret = asprintf(&child->name, "FPSIMD-%d-%d", cpu, copy);
314 if (ret == -1)
324 int ret;
326 ret = prctl(PR_SVE_SET_VL, vl | PR_SVE_VL_INHERIT);
327 if (ret < 0)
330 ret = asprintf(&child->name, "SVE-VL-%d-%d", vl, cpu);
331 if (ret == -1)
341 int ret;
343 ret = asprintf(&child->name, "SSVE-VL-%d-%d", vl, cpu);
344 if (ret == -1)
347 ret = prctl(PR_SME_SET_VL, vl | PR_SME_VL_INHERIT);
348 if (ret < 0)
349 ksft_exit_fail_msg("Failed to set SME VL %d\n", ret);
358 int ret;
360 ret = prctl(PR_SME_SET_VL, vl | PR_SVE_VL_INHERIT);
361 if (ret < 0)
362 ksft_exit_fail_msg("Failed to set SME VL %d\n", ret);
364 ret = asprintf(&child->name, "ZA-VL-%d-%d", vl, cpu);
365 if (ret == -1)
375 int ret;
377 ret = asprintf(&child->name, "ZT-%d", cpu);
378 if (ret == -1)
414 int ret = 1;
417 while (ret > 0) {
418 ret = epoll_wait(epoll_fd, evs, tests, 0);
419 if (ret < 0) {
426 for (i = 0; i < ret; i++)
438 int ret;
451 ret = sscanf(optarg, "%d", &timeout);
452 if (ret != 1)
508 ret = epoll_create1(EPOLL_CLOEXEC);
509 if (ret < 0)
511 strerror(errno), ret);
512 epoll_fd = ret;
515 ret = pipe(startup_pipe);
516 if (ret != 0)
525 ret = sigaction(SIGINT, &sa, NULL);
526 if (ret < 0)
529 ret = sigaction(SIGTERM, &sa, NULL);
530 if (ret < 0)
534 ret = sigaction(SIGCHLD, &sa, NULL);
535 if (ret < 0)
580 ret = epoll_wait(epoll_fd, evs, tests, 1000);
581 if (ret < 0) {
589 if (ret > 0) {
590 for (i = 0; i < ret; i++) {