Re: [PATCH bpf-next v2] libbpf: add API to consume the perf ring buffer content

2020-05-26 Thread Daniel Borkmann
On Tue, May 26, 2020 at 11:21:42AM +0200, Eelco Chaudron wrote: > This new API, perf_buffer__consume, can be used as follows: > - When you have a perf ring where wakeup_events is higher than 1, > and you have remaining data in the rings you would like to pull > out on exit (or maybe based on a

Re: [PATCH bpf-next v2] libbpf: add API to consume the perf ring buffer content

2020-05-26 Thread Andrii Nakryiko
On Tue, May 26, 2020 at 2:22 AM Eelco Chaudron wrote: > > This new API, perf_buffer__consume, can be used as follows: > - When you have a perf ring where wakeup_events is higher than 1, > and you have remaining data in the rings you would like to pull > out on exit (or maybe based on a timeout

[PATCH bpf-next v2] libbpf: add API to consume the perf ring buffer content

2020-05-26 Thread Eelco Chaudron
This new API, perf_buffer__consume, can be used as follows: - When you have a perf ring where wakeup_events is higher than 1, and you have remaining data in the rings you would like to pull out on exit (or maybe based on a timeout). - For low latency cases where you burn a CPU that constantly p