Home
last modified time | relevance | path

Searched refs:polls (Results 1 – 9 of 9) sorted by relevance

/linux-tools/misc/
H A Dtcpportcheck.c22 struct pollfd polls[1]; in main() local
49 polls[0].fd=sk; in main()
50 polls[0].events = POLLIN|POLLOUT|POLLRDHUP; in main()
51 err = poll(polls, 1, 1000); in main()
56 if (err>0&&polls[0].revents==POLLOUT) printf("remote port active\n"); in main()
/linux-tools/perf/contextswitch/
H A Dperf_cxt_switch_1.cpp85 struct pollfd polls[MAXCPU]; variable
143 polls[k].fd = fd; in main()
144 polls[k].events = POLLIN; in main()
145 polls[k].revents = 0; in main()
155 while (poll(polls, k, -1)>0) { in main()
157 if ((polls[i].revents&POLLIN)==0) continue; in main()
158 fd = polls[i].fd; in main()
H A Dperf_cxt_switch_2.cpp105 struct pollfd polls[MAXCPU]; variable
162 polls[k].fd = fd; in main()
163 polls[k].events = POLLIN; in main()
164 polls[k].revents = 0; in main()
174 while (poll(polls, k, -1)>0) { in main()
176 if ((polls[i].revents&POLLIN)==0) continue; in main()
177 fd = polls[i].fd; in main()
H A Dperf_cxt_switch_3.cpp244 struct pollfd polls[MAXCPU]; variable
399 polls[k].fd = fd; in main()
400 polls[k].events = POLLIN; in main()
401 polls[k].revents = 0; in main()
411 while (poll(polls, k, -1)>0) { in main()
413 if ((polls[i].revents&POLLIN)==0) continue; in main()
414 fd = polls[i].fd; in main()
/linux-tools/perf/kprobe/
H A Dperf_kprobe.cpp102 struct pollfd polls[MAXCPU]; variable
138 polls[k].fd = fd; in main()
139 polls[k].events = POLLIN; in main()
140 polls[k].revents = 0; in main()
150 while (poll(polls, k, -1)>0) { in main()
153 if ((polls[i].revents&POLLIN)==0) continue; in main()
154 fd = polls[i].fd; in main()
/linux-tools/perf/uprobe/
H A Duprobe.cpp140 struct pollfd polls[MAXCPU]; variable
285 polls[k].fd = fd; in main()
286 polls[k].events = POLLIN; in main()
287 polls[k].revents = 0; in main()
297 while (poll(polls, k, -1)>0) { in main()
300 if ((polls[i].revents&POLLIN)==0) continue; in main()
301 fd = polls[i].fd; in main()
/linux-tools/perf/profiler/
H A Dprofiler-kprobe.cpp249 struct pollfd polls[MAXCPU]; variable
403 polls[k].fd = fd; in main()
404 polls[k].events = POLLIN; in main()
405 polls[k].revents = 0; in main()
415 while (poll(polls, k, -1)>0) { in main()
418 if ((polls[i].revents&POLLIN)==0) continue; in main()
419 fd = polls[i].fd; in main()
H A Dprofiler.cpp254 struct pollfd polls[MAXCPU]; variable
435 polls[k].fd = fd; in main()
436 polls[k].events = POLLIN; in main()
437 polls[k].revents = 0; in main()
448 while (poll(polls, k, -1)>0) { in main()
451 if ((polls[i].revents&POLLIN)==0) continue; in main()
452 fd = polls[i].fd; in main()
/linux-tools/perf/execommand/
H A Dperf_comm.cpp121 struct pollfd polls[MAXCPU]; variable