netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf 0/2] bpf: fix the load time reporting and make offload test more resilient
@ 2018-06-14 18:06 Jakub Kicinski
  2018-06-14 18:06 ` [PATCH bpf 1/2] tools: bpftool: improve accuracy of load time Jakub Kicinski
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jakub Kicinski @ 2018-06-14 18:06 UTC (permalink / raw)
  To: alexei.starovoitov, daniel; +Cc: netdev, oss-drivers, Jakub Kicinski

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-06-15  1:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-14 18:06 [PATCH bpf 0/2] bpf: fix the load time reporting and make offload test more resilient Jakub Kicinski
2018-06-14 18:06 ` [PATCH bpf 1/2] tools: bpftool: improve accuracy of load time Jakub Kicinski
2018-06-14 18:06 ` [PATCH bpf 2/2] selftests/bpf: test offloads even with BPF programs present Jakub Kicinski
2018-06-15  1:15 ` [PATCH bpf 0/2] bpf: fix the load time reporting and make offload test more resilient Daniel Borkmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).