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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 26, 2020 at 2:22 AM Eelco Chaudron <echaudro@xxxxxxxxxx> 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).
> - For low latency cases where you burn a CPU that constantly polls
>   the queues.
>
> Signed-off-by: Eelco Chaudron <echaudro@xxxxxxxxxx>
> ---

Looks good, thanks. I'd really appreciate if you could follow up with
a fix to perf_buffer__free() as well. If not, I will get to it
eventually anyway :)

Acked-by: Andrii Nakryiko <andriin@xxxxxx>

[...]



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux