Lines Matching full:events

53 	pfd.events = POLLIN;  in waiter_entry1ap()
80 pfd.events = POLLIN; in waiter_entry1op()
91 struct epoll_event events[2]; in waiter_entry2a() local
94 if (epoll_wait(ctx->efd[0], events, 2, -1) > 0) in waiter_entry2a()
103 struct epoll_event events[2]; in waiter_entry2ap() local
107 pfd.events = POLLIN; in waiter_entry2ap()
109 if (epoll_wait(ctx->efd[0], events, 2, 0) > 0) in waiter_entry2ap()
159 e.events = EPOLLIN; in TEST()
190 e.events = EPOLLIN | EPOLLET; in TEST()
214 struct epoll_event events[2]; in TEST() local
222 events[0].events = EPOLLIN; in TEST()
223 ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[0], events), 0); in TEST()
225 events[0].events = EPOLLIN; in TEST()
226 ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[2], events), 0); in TEST()
231 EXPECT_EQ(epoll_wait(efd, events, 2, 0), 2); in TEST()
232 EXPECT_EQ(epoll_wait(efd, events, 2, 0), 2); in TEST()
252 struct epoll_event events[2]; in TEST() local
260 events[0].events = EPOLLIN | EPOLLET; in TEST()
261 ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[0], events), 0); in TEST()
263 events[0].events = EPOLLIN | EPOLLET; in TEST()
264 ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[2], events), 0); in TEST()
269 EXPECT_EQ(epoll_wait(efd, events, 2, 0), 2); in TEST()
270 EXPECT_EQ(epoll_wait(efd, events, 2, 0), 0); in TEST()
298 e.events = EPOLLIN; in TEST()
304 pfd.events = POLLIN; in TEST()
309 pfd.events = POLLIN; in TEST()
337 e.events = EPOLLIN | EPOLLET; in TEST()
343 pfd.events = POLLIN; in TEST()
348 pfd.events = POLLIN; in TEST()
370 struct epoll_event events[2]; in TEST() local
378 events[0].events = EPOLLIN; in TEST()
379 ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[0], events), 0); in TEST()
381 events[0].events = EPOLLIN; in TEST()
382 ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[2], events), 0); in TEST()
388 pfd.events = POLLIN; in TEST()
390 EXPECT_EQ(epoll_wait(efd, events, 2, 0), 2); in TEST()
393 pfd.events = POLLIN; in TEST()
395 EXPECT_EQ(epoll_wait(efd, events, 2, 0), 2); in TEST()
416 struct epoll_event events[2]; in TEST() local
424 events[0].events = EPOLLIN | EPOLLET; in TEST()
425 ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[0], events), 0); in TEST()
427 events[0].events = EPOLLIN | EPOLLET; in TEST()
428 ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[2], events), 0); in TEST()
434 pfd.events = POLLIN; in TEST()
436 EXPECT_EQ(epoll_wait(efd, events, 2, 0), 2); in TEST()
439 pfd.events = POLLIN; in TEST()
441 EXPECT_EQ(epoll_wait(efd, events, 2, 0), 0); in TEST()
470 e.events = EPOLLIN; in TEST()
513 e.events = EPOLLIN | EPOLLET; in TEST()
546 struct epoll_event events[2]; in TEST() local
557 events[0].events = EPOLLIN; in TEST()
558 ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.sfd[0], events), 0); in TEST()
560 events[0].events = EPOLLIN; in TEST()
561 ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.sfd[2], events), 0); in TEST()
567 if (epoll_wait(ctx.efd[0], events, 2, -1) > 0) in TEST()
595 struct epoll_event events[2]; in TEST() local
606 events[0].events = EPOLLIN | EPOLLET; in TEST()
607 ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.sfd[0], events), 0); in TEST()
609 events[0].events = EPOLLIN | EPOLLET; in TEST()
610 ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.sfd[2], events), 0); in TEST()
616 if (epoll_wait(ctx.efd[0], events, 1, -1) > 0) in TEST()
654 e.events = EPOLLIN; in TEST()
697 e.events = EPOLLIN | EPOLLET; in TEST()
730 struct epoll_event events[2]; in TEST() local
741 events[0].events = EPOLLIN; in TEST()
742 ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.sfd[0], events), 0); in TEST()
744 events[0].events = EPOLLIN; in TEST()
745 ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.sfd[2], events), 0); in TEST()
751 if (epoll_wait(ctx.efd[0], events, 2, -1) > 0) in TEST()
779 struct epoll_event events[2]; in TEST() local
790 events[0].events = EPOLLIN | EPOLLET; in TEST()
791 ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.sfd[0], events), 0); in TEST()
793 events[0].events = EPOLLIN | EPOLLET; in TEST()
794 ASSERT_EQ(epoll_ctl(ctx.efd[0], EPOLL_CTL_ADD, ctx.sfd[2], events), 0); in TEST()
800 if (epoll_wait(ctx.efd[0], events, 1, -1) > 0) in TEST()
841 e.events = EPOLLIN; in TEST()
844 e.events = EPOLLIN; in TEST()
881 e.events = EPOLLIN | EPOLLET; in TEST()
884 e.events = EPOLLIN; in TEST()
921 e.events = EPOLLIN; in TEST()
924 e.events = EPOLLIN | EPOLLET; in TEST()
961 e.events = EPOLLIN | EPOLLET; in TEST()
964 e.events = EPOLLIN | EPOLLET; in TEST()
1002 e.events = EPOLLIN; in TEST()
1005 e.events = EPOLLIN; in TEST()
1011 pfd.events = POLLIN; in TEST()
1016 pfd.events = POLLIN; in TEST()
1050 e.events = EPOLLIN | EPOLLET; in TEST()
1053 e.events = EPOLLIN; in TEST()
1059 pfd.events = POLLIN; in TEST()
1064 pfd.events = POLLIN; in TEST()
1098 e.events = EPOLLIN; in TEST()
1101 e.events = EPOLLIN | EPOLLET; in TEST()
1107 pfd.events = POLLIN; in TEST()
1112 pfd.events = POLLIN; in TEST()
1146 e.events = EPOLLIN | EPOLLET; in TEST()
1149 e.events = EPOLLIN | EPOLLET; in TEST()
1155 pfd.events = POLLIN; in TEST()
1160 pfd.events = POLLIN; in TEST()
1195 e.events = EPOLLIN; in TEST()
1198 e.events = EPOLLIN; in TEST()
1247 e.events = EPOLLIN | EPOLLET; in TEST()
1250 e.events = EPOLLIN; in TEST()
1299 e.events = EPOLLIN; in TEST()
1302 e.events = EPOLLIN | EPOLLET; in TEST()
1351 e.events = EPOLLIN | EPOLLET; in TEST()
1354 e.events = EPOLLIN | EPOLLET; in TEST()
1403 e.events = EPOLLIN; in TEST()
1406 e.events = EPOLLIN; in TEST()
1454 e.events = EPOLLIN | EPOLLET; in TEST()
1457 e.events = EPOLLIN; in TEST()
1505 e.events = EPOLLIN; in TEST()
1508 e.events = EPOLLIN | EPOLLET; in TEST()
1556 e.events = EPOLLIN | EPOLLET; in TEST()
1559 e.events = EPOLLIN | EPOLLET; in TEST()
1607 e.events = EPOLLIN; in TEST()
1610 e.events = EPOLLIN; in TEST()
1659 e.events = EPOLLIN | EPOLLET; in TEST()
1662 e.events = EPOLLIN; in TEST()
1711 e.events = EPOLLIN; in TEST()
1714 e.events = EPOLLIN | EPOLLET; in TEST()
1763 e.events = EPOLLIN | EPOLLET; in TEST()
1766 e.events = EPOLLIN | EPOLLET; in TEST()
1816 e.events = EPOLLIN; in TEST()
1819 e.events = EPOLLIN; in TEST()
1827 pfd.events = POLLIN; in TEST()
1873 e.events = EPOLLIN | EPOLLET; in TEST()
1876 e.events = EPOLLIN; in TEST()
1884 pfd.events = POLLIN; in TEST()
1930 e.events = EPOLLIN; in TEST()
1933 e.events = EPOLLIN | EPOLLET; in TEST()
1941 pfd.events = POLLIN; in TEST()
1987 e.events = EPOLLIN | EPOLLET; in TEST()
1990 e.events = EPOLLIN | EPOLLET; in TEST()
1998 pfd.events = POLLIN; in TEST()
2043 e.events = EPOLLIN; in TEST()
2046 e.events = EPOLLIN; in TEST()
2095 e.events = EPOLLIN | EPOLLET; in TEST()
2098 e.events = EPOLLIN; in TEST()
2147 e.events = EPOLLIN; in TEST()
2150 e.events = EPOLLIN | EPOLLET; in TEST()
2199 e.events = EPOLLIN | EPOLLET; in TEST()
2202 e.events = EPOLLIN | EPOLLET; in TEST()
2252 e.events = EPOLLIN; in TEST()
2255 e.events = EPOLLIN; in TEST()
2263 pfd.events = POLLIN; in TEST()
2308 e.events = EPOLLIN | EPOLLET; in TEST()
2311 e.events = EPOLLIN; in TEST()
2361 e.events = EPOLLIN; in TEST()
2364 e.events = EPOLLIN | EPOLLET; in TEST()
2372 pfd.events = POLLIN; in TEST()
2417 e.events = EPOLLIN | EPOLLET; in TEST()
2420 e.events = EPOLLIN | EPOLLET; in TEST()
2457 struct epoll_event events[2]; in TEST() local
2471 events[0].events = EPOLLIN; in TEST()
2472 ASSERT_EQ(epoll_ctl(efd[1], EPOLL_CTL_ADD, sfd[0], events), 0); in TEST()
2474 events[0].events = EPOLLIN; in TEST()
2475 ASSERT_EQ(epoll_ctl(efd[2], EPOLL_CTL_ADD, sfd[2], events), 0); in TEST()
2477 events[0].events = EPOLLIN; in TEST()
2478 ASSERT_EQ(epoll_ctl(efd[0], EPOLL_CTL_ADD, efd[1], events), 0); in TEST()
2480 events[0].events = EPOLLIN; in TEST()
2481 ASSERT_EQ(epoll_ctl(efd[0], EPOLL_CTL_ADD, efd[2], events), 0); in TEST()
2486 EXPECT_EQ(epoll_wait(efd[0], events, 2, 0), 2); in TEST()
2487 EXPECT_EQ(epoll_wait(efd[0], events, 2, 0), 2); in TEST()
2511 struct epoll_event events[2]; in TEST() local
2525 events[0].events = EPOLLIN; in TEST()
2526 ASSERT_EQ(epoll_ctl(efd[1], EPOLL_CTL_ADD, sfd[0], events), 0); in TEST()
2528 events[0].events = EPOLLIN; in TEST()
2529 ASSERT_EQ(epoll_ctl(efd[2], EPOLL_CTL_ADD, sfd[2], events), 0); in TEST()
2531 events[0].events = EPOLLIN | EPOLLET; in TEST()
2532 ASSERT_EQ(epoll_ctl(efd[0], EPOLL_CTL_ADD, efd[1], events), 0); in TEST()
2534 events[0].events = EPOLLIN | EPOLLET; in TEST()
2535 ASSERT_EQ(epoll_ctl(efd[0], EPOLL_CTL_ADD, efd[2], events), 0); in TEST()
2540 EXPECT_EQ(epoll_wait(efd[0], events, 2, 0), 2); in TEST()
2541 EXPECT_EQ(epoll_wait(efd[0], events, 2, 0), 0); in TEST()
2566 struct epoll_event events[2]; in TEST() local
2580 events[0].events = EPOLLIN; in TEST()
2581 ASSERT_EQ(epoll_ctl(efd[1], EPOLL_CTL_ADD, sfd[0], events), 0); in TEST()
2583 events[0].events = EPOLLIN; in TEST()
2584 ASSERT_EQ(epoll_ctl(efd[2], EPOLL_CTL_ADD, sfd[2], events), 0); in TEST()
2586 events[0].events = EPOLLIN; in TEST()
2587 ASSERT_EQ(epoll_ctl(efd[0], EPOLL_CTL_ADD, efd[1], events), 0); in TEST()
2589 events[0].events = EPOLLIN; in TEST()
2590 ASSERT_EQ(epoll_ctl(efd[0], EPOLL_CTL_ADD, efd[2], events), 0); in TEST()
2596 pfd.events = POLLIN; in TEST()
2598 EXPECT_EQ(epoll_wait(efd[0], events, 2, 0), 2); in TEST()
2601 pfd.events = POLLIN; in TEST()
2603 EXPECT_EQ(epoll_wait(efd[0], events, 2, 0), 2); in TEST()
2628 struct epoll_event events[2]; in TEST() local
2642 events[0].events = EPOLLIN; in TEST()
2643 ASSERT_EQ(epoll_ctl(efd[1], EPOLL_CTL_ADD, sfd[0], events), 0); in TEST()
2645 events[0].events = EPOLLIN; in TEST()
2646 ASSERT_EQ(epoll_ctl(efd[2], EPOLL_CTL_ADD, sfd[2], events), 0); in TEST()
2648 events[0].events = EPOLLIN | EPOLLET; in TEST()
2649 ASSERT_EQ(epoll_ctl(efd[0], EPOLL_CTL_ADD, efd[1], events), 0); in TEST()
2651 events[0].events = EPOLLIN | EPOLLET; in TEST()
2652 ASSERT_EQ(epoll_ctl(efd[0], EPOLL_CTL_ADD, efd[2], events), 0); in TEST()
2658 pfd.events = POLLIN; in TEST()
2660 EXPECT_EQ(epoll_wait(efd[0], events, 2, 0), 2); in TEST()
2663 pfd.events = POLLIN; in TEST()
2665 EXPECT_EQ(epoll_wait(efd[0], events, 2, 0), 0); in TEST()
2705 e.events = EPOLLIN; in TEST()
2708 e.events = EPOLLIN; in TEST()
2711 e.events = EPOLLIN; in TEST()
2714 e.events = EPOLLIN; in TEST()
2770 e.events = EPOLLIN; in TEST()
2773 e.events = EPOLLIN; in TEST()
2776 e.events = EPOLLIN | EPOLLET; in TEST()
2779 e.events = EPOLLIN | EPOLLET; in TEST()
2835 e.events = EPOLLIN; in TEST()
2838 e.events = EPOLLIN; in TEST()
2841 e.events = EPOLLIN; in TEST()
2844 e.events = EPOLLIN; in TEST()
2900 e.events = EPOLLIN; in TEST()
2903 e.events = EPOLLIN; in TEST()
2906 e.events = EPOLLIN | EPOLLET; in TEST()
2909 e.events = EPOLLIN | EPOLLET; in TEST()
2966 e.events = EPOLLIN; in TEST()
2969 e.events = EPOLLIN; in TEST()
2972 e.events = EPOLLIN; in TEST()
2975 e.events = EPOLLIN; in TEST()
2983 pfd.events = POLLIN; in TEST()
3036 e.events = EPOLLIN; in TEST()
3039 e.events = EPOLLIN; in TEST()
3042 e.events = EPOLLIN | EPOLLET; in TEST()
3045 e.events = EPOLLIN | EPOLLET; in TEST()
3053 pfd.events = POLLIN; in TEST()
3086 e.events = EPOLLIN | EPOLLERR | EPOLLET; in epoll59_thread()
3119 e.events = EPOLLIN | EPOLLERR | EPOLLET; in TEST()
3231 e.events = EPOLLIN | EPOLLET; in TEST()
3303 struct epoll_event events[1]; in epoll61_epoll_with_timeout() local
3306 n = epoll_wait(ctx->epfd, events, 1, 11); in epoll61_epoll_with_timeout()
3322 struct epoll_event events[1]; in epoll61_blocking_epoll() local
3324 epoll_wait(ctx->epfd, events, 1, -1); in epoll61_blocking_epoll()
3339 ev.events = EPOLLIN | EPOLLET | EPOLLERR | EPOLLHUP; in TEST()
3362 * If no events are missed, all three threads should eventually in TEST()