From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43C8DC433DF for ; Tue, 26 May 2020 21:15:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 280D5208C3 for ; Tue, 26 May 2020 21:15:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390724AbgEZVPp (ORCPT ); Tue, 26 May 2020 17:15:45 -0400 Received: from www62.your-server.de ([213.133.104.62]:44972 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390435AbgEZVPp (ORCPT ); Tue, 26 May 2020 17:15:45 -0400 Received: from 75.57.196.178.dynamic.wline.res.cust.swisscom.ch ([178.196.57.75] helo=localhost) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1jdgv5-0007kT-O4; Tue, 26 May 2020 23:15:31 +0200 Date: Tue, 26 May 2020 23:15:29 +0200 From: Daniel Borkmann To: Eelco Chaudron Cc: bpf@vger.kernel.org, davem@davemloft.net, netdev@vger.kernel.org, ast@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, andriin@fb.com, toke@redhat.com Subject: Re: [PATCH bpf-next v2] libbpf: add API to consume the perf ring buffer content Message-ID: <20200526211529.GB3853@pc-9.home> References: <159048487929.89441.7465713173442594608.stgit@ebuild> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <159048487929.89441.7465713173442594608.stgit@ebuild> User-Agent: Mutt/1.12.1 (2019-06-15) X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.102.2/25824/Tue May 26 14:27:30 2020) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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 timeout). > - For low latency cases where you burn a CPU that constantly polls > the queues. > > Signed-off-by: Eelco Chaudron Applied, thanks!