1. 23 Mar, 2018 1 commit
    • Yonghong Song's avatar
      skip kprobe functions outside normal text section · 1034bd44
      Yonghong Song authored
      Fix issue #1634.
      
      When kernel is about to attach a kprobe, the following functions
      are called:
        register_kprobe
          check_kprobe_address_safe
            kernel_text_address
              core_kernel_text
      
      In core_kernel_text, we have:
              if (addr >= (unsigned long)_stext &&
                  addr < (unsigned long)_etext)
                      return 1;
      
      Basically, any address outside of [_stext, _etext] will
      be rejected.
      
      The functions marked as __init are outside [_stext, _etext].
      That is why vfs_caches_init_early and vfs_caches_init
      are rejected by trace_kprobe.
      Given a regex, this patch avoided attaching these functions
      if their func addresses are outside [_stext, _etext] range.
      Signed-off-by: default avatarYonghong Song <yhs@fb.com>
      1034bd44
  2. 21 Mar, 2018 1 commit
    • Andreas Gerstmayr's avatar
      debian: add python3-bcc package · e0d808ec
      Andreas Gerstmayr authored
      This patch extends the PYTHON_CMD cmake variable to allow a list of
      Python binaries and installs the bcc Python bindings for each Python
      installation. The Debian control files are updated to generate bindings
      for Python 2 and Python 3. Compiled Python files are excluded from the
      Debian packages.
      Signed-off-by: default avatarAndreas Gerstmayr <andreas@gerstmayr.me>
      e0d808ec
  3. 20 Mar, 2018 2 commits
  4. 19 Mar, 2018 3 commits
  5. 18 Mar, 2018 1 commit
    • Nirmoy Das's avatar
      properly retrieve IP address from array for python2.7 · 505f98d3
      Nirmoy Das authored
      for python2.7 IP address(src_ip,dst_ip) conversion doesn't work
      as expected and throws
      
      Traceback (most recent call last):
        File "_ctypes/callbacks.c", line 315, in 'calling callback function'
        File "/usr/local/lib/python2.7/site-packages/bcc/table.py", line 526, in raw_cb_
          callback(cpu, data, size)
        File "./examples/networking/tc_perf_event.py", line 60, in print_skb_event
          (cpu, socket.inet_ntop(socket.AF_INET6, src_ip),
      ValueError: invalid length of packed IP address string
      
      IP string looks like
      [254, 128, 0, 0, 0, 0, 0, 0, 156, 237, 12, 255, 254, 42, 90, 31]
      Signed-off-by: default avatarNirmoy Das <ndas@suse.de>
      505f98d3
  6. 15 Mar, 2018 2 commits
  7. 14 Mar, 2018 4 commits
  8. 12 Mar, 2018 1 commit
  9. 10 Mar, 2018 2 commits
  10. 09 Mar, 2018 2 commits
  11. 08 Mar, 2018 4 commits
  12. 06 Mar, 2018 3 commits
  13. 05 Mar, 2018 2 commits
  14. 04 Mar, 2018 3 commits
  15. 03 Mar, 2018 4 commits
  16. 02 Mar, 2018 2 commits
  17. 01 Mar, 2018 3 commits