Re: [PATCH bpf-next v2 1/2] trace_helpers.c: Add helpers to poll multiple perf FDs for events

2018-06-05 Thread Daniel Borkmann
On 06/05/2018 11:22 AM, Toke Høiland-Jørgensen wrote: > Daniel Borkmann writes: >> On 06/05/2018 12:26 AM, Jakub Kicinski wrote: >>> On Mon, 04 Jun 2018 18:33:56 +0200, Toke Høiland-Jørgensen wrote: This adds two new helper functions to trace_helpers that supports polling multiple perf f

Re: [PATCH bpf-next v2 1/2] trace_helpers.c: Add helpers to poll multiple perf FDs for events

2018-06-05 Thread Toke Høiland-Jørgensen
Daniel Borkmann writes: > On 06/05/2018 12:26 AM, Jakub Kicinski wrote: >> On Mon, 04 Jun 2018 18:33:56 +0200, Toke Høiland-Jørgensen wrote: >>> This adds two new helper functions to trace_helpers that supports polling >>> multiple perf file descriptors for events. These are used to the XDP >>> p

Re: [PATCH bpf-next v2 1/2] trace_helpers.c: Add helpers to poll multiple perf FDs for events

2018-06-04 Thread Daniel Borkmann
On 06/05/2018 12:26 AM, Jakub Kicinski wrote: > On Mon, 04 Jun 2018 18:33:56 +0200, Toke Høiland-Jørgensen wrote: >> This adds two new helper functions to trace_helpers that supports polling >> multiple perf file descriptors for events. These are used to the XDP >> perf_event_output example, which

Re: [PATCH bpf-next v2 1/2] trace_helpers.c: Add helpers to poll multiple perf FDs for events

2018-06-04 Thread Jakub Kicinski
On Mon, 04 Jun 2018 18:33:56 +0200, Toke Høiland-Jørgensen wrote: > This adds two new helper functions to trace_helpers that supports polling > multiple perf file descriptors for events. These are used to the XDP > perf_event_output example, which needs to work with one perf fd per CPU. > > Signed

[PATCH bpf-next v2 1/2] trace_helpers.c: Add helpers to poll multiple perf FDs for events

2018-06-04 Thread Toke Høiland-Jørgensen
This adds two new helper functions to trace_helpers that supports polling multiple perf file descriptors for events. These are used to the XDP perf_event_output example, which needs to work with one perf fd per CPU. Signed-off-by: Toke Høiland-Jørgensen --- tools/testing/selftests/bpf/trace_help