Home
last modified time | relevance | path

Searched refs:read_pipe (Results 1 – 15 of 15) sorted by relevance

/tools/testing/selftests/powerpc/pmu/ebb/
Debb_on_child_test.c23 static int victim_child(union pipe read_pipe, union pipe write_pipe) in victim_child() argument
27 FAIL_IF(wait_for_parent(read_pipe)); in victim_child()
32 FAIL_IF(wait_for_parent(read_pipe)); in victim_child()
46 union pipe read_pipe, write_pipe; in ebb_on_child() local
50 FAIL_IF(pipe(read_pipe.fds) == -1); in ebb_on_child()
56 exit(victim_child(write_pipe, read_pipe)); in ebb_on_child()
59 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in ebb_on_child()
73 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in ebb_on_child()
Debb_on_willing_child_test.c23 static int victim_child(union pipe read_pipe, union pipe write_pipe) in victim_child() argument
25 FAIL_IF(wait_for_parent(read_pipe)); in victim_child()
53 union pipe read_pipe, write_pipe; in ebb_on_willing_child() local
57 FAIL_IF(pipe(read_pipe.fds) == -1); in ebb_on_willing_child()
63 exit(victim_child(write_pipe, read_pipe)); in ebb_on_willing_child()
67 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in ebb_on_willing_child()
Dtask_event_vs_ebb_test.c38 union pipe read_pipe, write_pipe; in task_event_vs_ebb() local
43 FAIL_IF(pipe(read_pipe.fds) == -1); in task_event_vs_ebb()
49 exit(ebb_child(write_pipe, read_pipe)); in task_event_vs_ebb()
60 if (sync_with_child(read_pipe, write_pipe)) in task_event_vs_ebb()
65 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in task_event_vs_ebb()
Dcpu_event_vs_ebb_test.c39 union pipe read_pipe, write_pipe; in cpu_event_vs_ebb() local
48 FAIL_IF(pipe(read_pipe.fds) == -1); in cpu_event_vs_ebb()
54 exit(ebb_child(write_pipe, read_pipe)); in cpu_event_vs_ebb()
65 if (sync_with_child(read_pipe, write_pipe)) in cpu_event_vs_ebb()
70 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in cpu_event_vs_ebb()
Dtask_event_pinned_vs_ebb_test.c40 union pipe read_pipe, write_pipe; in task_event_pinned_vs_ebb() local
45 FAIL_IF(pipe(read_pipe.fds) == -1); in task_event_pinned_vs_ebb()
51 exit(ebb_child(write_pipe, read_pipe)); in task_event_pinned_vs_ebb()
62 if (sync_with_child(read_pipe, write_pipe)) in task_event_pinned_vs_ebb()
67 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in task_event_pinned_vs_ebb()
Debb_vs_cpu_event_test.c39 union pipe read_pipe, write_pipe; in ebb_vs_cpu_event() local
48 FAIL_IF(pipe(read_pipe.fds) == -1); in ebb_vs_cpu_event()
54 exit(ebb_child(write_pipe, read_pipe)); in ebb_vs_cpu_event()
58 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in ebb_vs_cpu_event()
68 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in ebb_vs_cpu_event()
Dcpu_event_pinned_vs_ebb_test.c41 union pipe read_pipe, write_pipe; in cpu_event_pinned_vs_ebb() local
50 FAIL_IF(pipe(read_pipe.fds) == -1); in cpu_event_pinned_vs_ebb()
56 exit(ebb_child(write_pipe, read_pipe)); in cpu_event_pinned_vs_ebb()
67 if (sync_with_child(read_pipe, write_pipe)) in cpu_event_pinned_vs_ebb()
72 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in cpu_event_pinned_vs_ebb()
Debb.h73 int ebb_child(union pipe read_pipe, union pipe write_pipe);
Debb.c340 int ebb_child(union pipe read_pipe, union pipe write_pipe) in ebb_child() argument
345 FAIL_IF(wait_for_parent(read_pipe)); in ebb_child()
375 FAIL_IF(wait_for_parent(read_pipe)); in ebb_child()
/tools/testing/selftests/powerpc/pmu/
Dlib.c64 int sync_with_child(union pipe read_pipe, union pipe write_pipe) in sync_with_child() argument
69 FAIL_IF(read(read_pipe.read_fd, &c, 1) != 1); in sync_with_child()
76 int wait_for_parent(union pipe read_pipe) in wait_for_parent() argument
80 FAIL_IF(read(read_pipe.read_fd, &c, 1) != 1); in wait_for_parent()
128 static int eat_cpu_child(union pipe read_pipe, union pipe write_pipe) in eat_cpu_child() argument
139 wait_for_parent(read_pipe); in eat_cpu_child()
149 union pipe read_pipe, write_pipe; in eat_cpu() local
157 if (pipe(read_pipe.fds) == -1) in eat_cpu()
165 exit(eat_cpu_child(write_pipe, read_pipe)); in eat_cpu()
167 if (sync_with_child(read_pipe, write_pipe)) { in eat_cpu()
Dlib.h26 extern int sync_with_child(union pipe read_pipe, union pipe write_pipe);
27 extern int wait_for_parent(union pipe read_pipe);
/tools/virtio/virtio-trace/
Dtrace-agent-rw.c35 rw_ti->read_pipe = -1; in rw_thread_info_new()
83 rw_ti->read_pipe = data_pipe[1]; in rw_thread_init()
129 rlen = splice(ts->in_fd, NULL, ts->read_pipe, NULL, in rw_thread_main()
Dtrace-agent.h38 int read_pipe; member
Dtrace-agent.c251 close(s->rw_ti[i]->read_pipe); in agent_info_free()
DREADME6 - splice a page of ring-buffer to read_pipe without memory copying