1. 16 Aug, 2017 1 commit
  2. 20 Apr, 2017 1 commit
    • Brenden Blanco's avatar
      Disable non-static function calls · 3f28e7bc
      Brenden Blanco authored
      
      Compiled BPF programs must consist of a single contiguous code block,
      meaning trying to call other function entry points (besides the
      kernel-defined helpers) is not possible. The bcc frontend didn't
      explicitly prohibit this, even though the program would fail to
      compile/load. Add an explicit check and error message.
      
      Fixes: #653
      Signed-off-by: default avatarBrenden Blanco <bblanco@gmail.com>
      3f28e7bc
  3. 29 Mar, 2017 1 commit
  4. 15 Feb, 2016 1 commit
  5. 27 Jan, 2016 1 commit
    • Brenden Blanco's avatar
      Updates to use cmake GLOB and libbcc.so.0 in python init · 5bd0eb21
      Brenden Blanco authored
      
      In order not to miss some files in the tools and examples source
      directories, use cmake file(GLOB) to collect relevant files. To ease the
      implementation, move all tools to be .py suffixed in the source, but
      sans-suffix in the installation (same as before)
      
      In addition, to prevent future API breakage confusion (though of course
      that may still happen), use CDLL("libbcc.so.0") in the bcc __init__.py.
      
      Fixes: #317
      Signed-off-by: default avatarBrenden Blanco <bblanco@plumgrid.com>
      5bd0eb21
  6. 14 Jan, 2016 1 commit
  7. 03 Sep, 2015 1 commit
  8. 26 Aug, 2015 1 commit
  9. 20 Aug, 2015 1 commit
  10. 19 Aug, 2015 1 commit
    • Brenden Blanco's avatar
      Change API of attach_kprobe to take a name argument · 5eef65e6
      Brenden Blanco authored
      
      Per feedback on the attach_kprobe api, change up the arguments to remove
      the load_func that typically preceeds the call. Instead, move this
      inside the attach_kprobe implementation. Also, this makes attach_kprobe
      need to be non-static. The same applies to attach_kretprobe.
      
      Old:
      fn = b.load_func("hello", BPF.KPROBE)
      BPF.attach_kprobe(fn, "sys_clone")
      
      New:
      b.attach_kprobe(event="sys_clone", fn_name="hello")
      
      Note that the kwarg style is not required, but I fixed up the current
      usages to provide readability.
      Signed-off-by: default avatarBrenden Blanco <bblanco@plumgrid.com>
      5eef65e6
  11. 18 Aug, 2015 4 commits