1. 16 Aug, 2016 1 commit
  2. 15 Aug, 2016 2 commits
  3. 14 Aug, 2016 1 commit
  4. 13 Aug, 2016 1 commit
  5. 11 Aug, 2016 6 commits
  6. 09 Aug, 2016 1 commit
  7. 06 Aug, 2016 2 commits
  8. 05 Aug, 2016 4 commits
  9. 03 Aug, 2016 1 commit
  10. 02 Aug, 2016 3 commits
  11. 01 Aug, 2016 5 commits
  12. 31 Jul, 2016 3 commits
  13. 29 Jul, 2016 4 commits
  14. 28 Jul, 2016 4 commits
    • Brenden Blanco's avatar
      ae059841
    • Brenden Blanco's avatar
      Add xdp_drop_count example · 8db68e81
      Brenden Blanco authored
      This adds the xdp drop count example relicensed under ASL2, along with
      some minor modifications to print pkt/s.
      Signed-off-by: default avatarBrenden Blanco <bblanco@plumgrid.com>
      8db68e81
    • Brenden Blanco's avatar
      Merge pull request #634 from Eichhoernchen/xdp_net-next · 89ad9342
      Brenden Blanco authored
      Added XDP support to BCC
      89ad9342
    • Jan Rüth's avatar
      This adds XDP support to BCC as currently supported in net-next. · e0724d73
      Jan Rüth authored
      Concretely, it adds two functions to bcc, namely:
      `attach_xdp` and `remove_xdp`
      which allows to attach an XDP program to a device (given via its name, e.g., en0) (in the future this might change to a specific queue on a device once the kernel offers this interface)
      and `remove_xdp` removes a XDP program from a device. Please note that there can currently be only one program attached to the device and attaching another program replaces the previous.
      
      One example is available to test XDP, in networking/xdp which drops all packets an counts for which protocol a packet was dropped (this is taken from the kernel xdp1 example). Please note that you cannot use the network headers defined in <bcc/proto.h> as they cause llvm/clang to generate instructions not available on XDP layer. On XDP layer you do not have an skb yet, so you are operating on the bare packet data.
      
      XDP support is currently limited to only some network adapters, there is the `mlx4` and there is also a patch available for the `e1000` driver.
      e0724d73
  15. 27 Jul, 2016 2 commits
    • Brenden Blanco's avatar
      Merge pull request #632 from markdrayton/probe-strings · 60b082e0
      Brenden Blanco authored
      Probe registration fixes
      60b082e0
    • Mark Drayton's avatar
      Remove asserts on str probe names · 7c148427
      Mark Drayton authored
      `open_kprobes` is a dict of open kprobes. Its keys are strings for normal
      probes and a tuple for perf buffers. Normal probes need unregistering on script
      exit; perf buffers do not. `cleanup` currently looks for string keys
      (specifically type `str`) when working out what to unregister, which is a bit
      brittle -- in Python2 strings can be both native `str` and `unicode`, depending
      what exactly was passed to `attach-*/detach_*` and whether `from __future__
      import unicode_literals` is used (e.g. #623).
      
      This diff makes the API more relaxed by casting the probe name to `str` to
      match the expectations of `cleanup`. This works in py2 (with and without
      unicode_literals) and py3.
      7c148427