All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/7] bpf: add perf event reading loop and move samples closer to libbpf
@ 2018-05-10 17:24 Jakub Kicinski
  2018-05-10 17:24 ` [PATCH bpf-next 1/7] tools: bpftool: use PERF_SAMPLE_TIME instead of reading the clock Jakub Kicinski
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Jakub Kicinski @ 2018-05-10 17:24 UTC (permalink / raw)
  To: alexei.starovoitov, daniel; +Cc: oss-drivers, netdev, Jakub Kicinski

Hi!

This series started out as a follow up to the bpftool perf event dumping
patches.

As suggested by Daniel patch 1 makes use of PERF_SAMPLE_TIME to simplify
code and improve accuracy of timestamps.

Remaining patches are trying to move perf event loop into libbpf as
suggested by Alexei.  One user for this new function is bpftool which
links with libbpf nicely, the other, unfortunately, is in samples/bpf.
Remaining patches make samples/bpf link against full libbpf.a (not just
a handful of objects).  Once we have full power of libbpf at our disposal
we can convert some of XDP samples to use libbpf loader instead of
bpf_load.c.  My understanding is that this is the desired direction,
at least for networking code.


Jakub Kicinski (7):
  tools: bpftool: use PERF_SAMPLE_TIME instead of reading the clock
  samples: bpf: rename struct bpf_map_def to avoid conflict with libbpf
  samples: bpf: compile and link against full libbpf
  tools: bpf: move the event reading loop to libbpf
  tools: bpf: improve comments in libbpf.h
  tools: bpf: don't complain about no kernel version for networking code
  samples: bpf: convert some XDP samples from bpf_load to libbpf

 samples/bpf/Makefile                        |  37 +++++--
 samples/bpf/bpf_load.c                      |  10 +-
 samples/bpf/bpf_load.h                      |   4 +-
 samples/bpf/trace_output_user.c             |   6 +-
 samples/bpf/xdp1_user.c                     |  31 ++++--
 samples/bpf/xdp_adjust_tail_user.c          |  36 ++++---
 samples/bpf/xdp_rxq_info_user.c             |  46 ++++++---
 tools/bpf/bpftool/map_perf_ring.c           |  83 ++++-----------
 tools/lib/bpf/Makefile                      |   2 +-
 tools/lib/bpf/libbpf.c                      | 107 ++++++++++++++++++--
 tools/lib/bpf/libbpf.h                      |  61 ++++++-----
 tools/testing/selftests/bpf/Makefile        |   2 +-
 tools/testing/selftests/bpf/test_progs.c    |   6 +-
 tools/testing/selftests/bpf/trace_helpers.c |  87 ++++++----------
 tools/testing/selftests/bpf/trace_helpers.h |  11 +-
 15 files changed, 307 insertions(+), 222 deletions(-)

-- 
2.17.0

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

end of thread, other threads:[~2018-05-11 21:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-10 17:24 [PATCH bpf-next 0/7] bpf: add perf event reading loop and move samples closer to libbpf Jakub Kicinski
2018-05-10 17:24 ` [PATCH bpf-next 1/7] tools: bpftool: use PERF_SAMPLE_TIME instead of reading the clock Jakub Kicinski
2018-05-10 17:24 ` [PATCH bpf-next 2/7] samples: bpf: rename struct bpf_map_def to avoid conflict with libbpf Jakub Kicinski
2018-05-10 17:24 ` [PATCH bpf-next 3/7] samples: bpf: compile and link against full libbpf Jakub Kicinski
2018-05-11 21:47   ` Jakub Kicinski
2018-05-10 17:24 ` [PATCH bpf-next 4/7] tools: bpf: move the event reading loop to libbpf Jakub Kicinski
2018-05-10 17:24 ` [PATCH bpf-next 5/7] tools: bpf: improve comments in libbpf.h Jakub Kicinski
2018-05-10 17:24 ` [PATCH bpf-next 6/7] tools: bpf: don't complain about no kernel version for networking code Jakub Kicinski
2018-05-10 17:24 ` [PATCH bpf-next 7/7] samples: bpf: convert some XDP samples from bpf_load to libbpf Jakub Kicinski
2018-05-11  0:06 ` [PATCH bpf-next 0/7] bpf: add perf event reading loop and move samples closer " Daniel Borkmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.