/linux-4.4.14/tools/testing/selftests/powerpc/pmu/ebb/ |
H A D | ebb_on_child_test.c | 23 static int victim_child(union pipe read_pipe, union pipe write_pipe) victim_child() argument 27 FAIL_IF(wait_for_parent(read_pipe)); victim_child() 32 FAIL_IF(wait_for_parent(read_pipe)); victim_child() 46 union pipe read_pipe, write_pipe; ebb_on_child() local 52 FAIL_IF(pipe(read_pipe.fds) == -1); ebb_on_child() 58 exit(victim_child(write_pipe, read_pipe)); ebb_on_child() 61 FAIL_IF(sync_with_child(read_pipe, write_pipe)); ebb_on_child() 75 FAIL_IF(sync_with_child(read_pipe, write_pipe)); ebb_on_child()
|
H A D | ebb_on_willing_child_test.c | 23 static int victim_child(union pipe read_pipe, union pipe write_pipe) victim_child() argument 25 FAIL_IF(wait_for_parent(read_pipe)); victim_child() 53 union pipe read_pipe, write_pipe; ebb_on_willing_child() local 59 FAIL_IF(pipe(read_pipe.fds) == -1); ebb_on_willing_child() 65 exit(victim_child(write_pipe, read_pipe)); ebb_on_willing_child() 69 FAIL_IF(sync_with_child(read_pipe, write_pipe)); ebb_on_willing_child()
|
H A D | cpu_event_pinned_vs_ebb_test.c | 41 union pipe read_pipe, write_pipe; cpu_event_pinned_vs_ebb() local 52 FAIL_IF(pipe(read_pipe.fds) == -1); cpu_event_pinned_vs_ebb() 58 exit(ebb_child(write_pipe, read_pipe)); cpu_event_pinned_vs_ebb() 69 if (sync_with_child(read_pipe, write_pipe)) cpu_event_pinned_vs_ebb() 74 FAIL_IF(sync_with_child(read_pipe, write_pipe)); cpu_event_pinned_vs_ebb()
|
H A D | cpu_event_vs_ebb_test.c | 39 union pipe read_pipe, write_pipe; cpu_event_vs_ebb() local 50 FAIL_IF(pipe(read_pipe.fds) == -1); cpu_event_vs_ebb() 56 exit(ebb_child(write_pipe, read_pipe)); cpu_event_vs_ebb() 67 if (sync_with_child(read_pipe, write_pipe)) cpu_event_vs_ebb() 72 FAIL_IF(sync_with_child(read_pipe, write_pipe)); cpu_event_vs_ebb()
|
H A D | ebb_vs_cpu_event_test.c | 39 union pipe read_pipe, write_pipe; ebb_vs_cpu_event() local 50 FAIL_IF(pipe(read_pipe.fds) == -1); ebb_vs_cpu_event() 56 exit(ebb_child(write_pipe, read_pipe)); ebb_vs_cpu_event() 60 FAIL_IF(sync_with_child(read_pipe, write_pipe)); ebb_vs_cpu_event() 70 FAIL_IF(sync_with_child(read_pipe, write_pipe)); ebb_vs_cpu_event()
|
H A D | task_event_pinned_vs_ebb_test.c | 40 union pipe read_pipe, write_pipe; task_event_pinned_vs_ebb() local 47 FAIL_IF(pipe(read_pipe.fds) == -1); task_event_pinned_vs_ebb() 53 exit(ebb_child(write_pipe, read_pipe)); task_event_pinned_vs_ebb() 64 if (sync_with_child(read_pipe, write_pipe)) task_event_pinned_vs_ebb() 69 FAIL_IF(sync_with_child(read_pipe, write_pipe)); task_event_pinned_vs_ebb()
|
H A D | task_event_vs_ebb_test.c | 38 union pipe read_pipe, write_pipe; task_event_vs_ebb() local 45 FAIL_IF(pipe(read_pipe.fds) == -1); task_event_vs_ebb() 51 exit(ebb_child(write_pipe, read_pipe)); task_event_vs_ebb() 62 if (sync_with_child(read_pipe, write_pipe)) task_event_vs_ebb() 67 FAIL_IF(sync_with_child(read_pipe, write_pipe)); task_event_vs_ebb()
|
H A D | ebb.h | 74 int ebb_child(union pipe read_pipe, union pipe write_pipe);
|
H A D | ebb.c | 351 int ebb_child(union pipe read_pipe, union pipe write_pipe) ebb_child() argument 356 FAIL_IF(wait_for_parent(read_pipe)); ebb_child() 386 FAIL_IF(wait_for_parent(read_pipe)); ebb_child()
|
/linux-4.4.14/tools/testing/selftests/powerpc/pmu/ |
H A D | lib.h | 26 extern int sync_with_child(union pipe read_pipe, union pipe write_pipe); 27 extern int wait_for_parent(union pipe read_pipe);
|
H A D | lib.c | 59 int sync_with_child(union pipe read_pipe, union pipe write_pipe) sync_with_child() argument 64 FAIL_IF(read(read_pipe.read_fd, &c, 1) != 1); sync_with_child() 71 int wait_for_parent(union pipe read_pipe) wait_for_parent() argument 75 FAIL_IF(read(read_pipe.read_fd, &c, 1) != 1); wait_for_parent() 123 static int eat_cpu_child(union pipe read_pipe, union pipe write_pipe) eat_cpu_child() argument 134 wait_for_parent(read_pipe); eat_cpu_child() 144 union pipe read_pipe, write_pipe; eat_cpu() local 152 if (pipe(read_pipe.fds) == -1) eat_cpu() 160 exit(eat_cpu_child(write_pipe, read_pipe)); eat_cpu() 162 if (sync_with_child(read_pipe, write_pipe)) { eat_cpu()
|
/linux-4.4.14/tools/virtio/virtio-trace/ |
H A D | trace-agent.h | 30 * @read_pipe: fd of read pipe 38 int read_pipe; member in struct:rw_thread_info
|
H A D | trace-agent-rw.c | 35 rw_ti->read_pipe = -1; rw_thread_info_new() 83 rw_ti->read_pipe = data_pipe[1]; rw_thread_init() 129 rlen = splice(ts->in_fd, NULL, ts->read_pipe, NULL, rw_thread_main()
|
H A D | trace-agent.c | 251 close(s->rw_ti[i]->read_pipe); agent_info_free()
|
/linux-4.4.14/drivers/net/wireless/orinoco/ |
H A D | orinoco_usb.c | 251 int read_pipe; member in struct:ezusb_priv 759 usb_fill_bulk_urb(upriv->read_urb, upriv->udev, upriv->read_pipe, ezusb_submit_in_urb() 1625 upriv->read_pipe = usb_rcvbulkpipe(udev, ezusb_probe()
|