lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180510172443.17238-1-jakub.kicinski@netronome.com>
Date:   Thu, 10 May 2018 10:24:36 -0700
From:   Jakub Kicinski <jakub.kicinski@...ronome.com>
To:     alexei.starovoitov@...il.com, daniel@...earbox.net
Cc:     oss-drivers@...ronome.com, netdev@...r.kernel.org,
        Jakub Kicinski <jakub.kicinski@...ronome.com>
Subject: [PATCH bpf-next 0/7] bpf: add perf event reading loop and move samples closer to libbpf

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ