diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-19 20:29:31 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-19 20:29:31 +0300 |
| commit | 11a8642b7035ff558fb84d7761e93525c84e4908 (patch) | |
| tree | aa1f501fcf8f3a5474d26658731782e061cccc15 /integrationtests | |
| parent | c67b34fca467fc4e5e8aba7a1b8929d8aa55a833 (diff) | |
z6: add KindPoll wiring for poll/select ready counts
Diffstat (limited to 'integrationtests')
| -rw-r--r-- | integrationtests/polling_test.go | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/integrationtests/polling_test.go b/integrationtests/polling_test.go index cea535e..a09cab2 100644 --- a/integrationtests/polling_test.go +++ b/integrationtests/polling_test.go @@ -24,6 +24,10 @@ func TestPollingEpollTracepoints(t *testing.T) { {Tracepoint: "enter_epoll_ctl", Comm: "ioworkload", MinCount: 1}, {Tracepoint: "enter_epoll_wait", Comm: "ioworkload", MinCount: 1}, {Tracepoint: "enter_epoll_pwait", Comm: "ioworkload", MinCount: 1}, + {Tracepoint: "enter_poll", Comm: "ioworkload", MinCount: 1}, + {Tracepoint: "enter_ppoll", Comm: "ioworkload", MinCount: 1}, + {Tracepoint: "enter_select", Comm: "ioworkload", MinCount: 1}, + {Tracepoint: "enter_pselect6", Comm: "ioworkload", MinCount: 1}, }) if !hasTracepoint(result, "enter_epoll_pwait2") { @@ -44,12 +48,19 @@ func TestPollingEpollReadyCountInParquet(t *testing.T) { t.Fatalf("expected parquet rows for workload PID %d", pid) } - wantReadyCount := map[string]bool{"epoll_wait": false, "epoll_pwait": false} + wantReadyCount := map[string]bool{ + "epoll_wait": false, + "epoll_pwait": false, + "poll": false, + "ppoll": false, + "select": false, + "pselect6": false, + } var sawPwait2 bool var sawPwait2ReadyCount bool for _, row := range rows { switch row.Syscall { - case "epoll_wait", "epoll_pwait": + case "epoll_wait", "epoll_pwait", "poll", "ppoll", "select", "pselect6": if row.Ret > 0 { wantReadyCount[row.Syscall] = true } |
