From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Borkmann Subject: Re: [PATCH bpf 0/2] bpf: fix the load time reporting and make offload test more resilient Date: Fri, 15 Jun 2018 03:15:53 +0200 Message-ID: References: <20180614180656.14550-1-jakub.kicinski@netronome.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, oss-drivers@netronome.com To: Jakub Kicinski , alexei.starovoitov@gmail.com Return-path: Received: from www62.your-server.de ([213.133.104.62]:50770 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964924AbeFOBPz (ORCPT ); Thu, 14 Jun 2018 21:15:55 -0400 In-Reply-To: <20180614180656.14550-1-jakub.kicinski@netronome.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 06/14/2018 08:06 PM, Jakub Kicinski wrote: > Hi! > > This small series allows test_offload.py selftest to run on modern > distributions which may create BPF programs for cgroups at boot, > like Ubuntu 18.04. We still expect the program list to not be > altered by any other agent while the test is running, but no longer > depend on there being no BPF programs at all at the start. > > Fixing the test revealed a small problem with bpftool, which doesn't > report the program load time very accurately. Because nanoseconds > were not taken into account reported load time would fluctuate by > 1 second. First patch of the series takes care of fixing that. > > Jakub Kicinski (2): > tools: bpftool: improve accuracy of load time > selftests/bpf: test offloads even with BPF programs present > > tools/bpf/bpftool/prog.c | 4 +++- > tools/testing/selftests/bpf/test_offload.py | 12 ++++++++++-- > 2 files changed, 13 insertions(+), 3 deletions(-) > Applied to bpf, thanks Jakub!