[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180614180656.14550-1-jakub.kicinski@netronome.com>
Date: Thu, 14 Jun 2018 11:06:54 -0700
From: Jakub Kicinski <jakub.kicinski@...ronome.com>
To: alexei.starovoitov@...il.com, daniel@...earbox.net
Cc: netdev@...r.kernel.org, oss-drivers@...ronome.com,
Jakub Kicinski <jakub.kicinski@...ronome.com>
Subject: [PATCH bpf 0/2] bpf: fix the load time reporting and make offload test more resilient
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(-)
--
2.17.1
Powered by blists - more mailing lists