1. 10 Feb, 2017 1 commit
    • Rafael Fonseca's avatar
      usdt: convert text from bytes to str · 3d981513
      Rafael Fonseca authored
      This fixes a TypeError in python 3, e.g, when executing uobjnew
      
      Traceback (most recent call last):
        File "./uobjnew", line 134, in <module>
          bpf = BPF(text=program, usdt_contexts=[usdt])
        File "/usr/lib/python3.5/site-packages/bcc/__init__.py", line 224, in __init__
          text = usdt_text + text
      TypeError: can't concat bytes to str
      3d981513
  2. 09 Feb, 2017 17 commits
  3. 08 Feb, 2017 4 commits
  4. 07 Feb, 2017 8 commits
  5. 06 Feb, 2017 3 commits
  6. 05 Feb, 2017 2 commits
  7. 04 Feb, 2017 1 commit
  8. 03 Feb, 2017 4 commits
    • Kenny Yu's avatar
      b83af356
    • Kenny Yu's avatar
      Fix a few small typos · d07b7597
      Kenny Yu authored
      d07b7597
    • Kenny Yu's avatar
      Address comments from https://github.com/iovisor/bcc/pull/936 · e7dff43a
      Kenny Yu authored
      - Remove dependency on networkx. I did this by copying only the parts I needed
        from networkx, and adapting it to only use what I needed. These include:
        `DiGraph`, `strongly_connected_components`, `simple_cyles`
      
      - Symbolize global and static mutexes. In order to do this, I subshell out to
        `subshell`. This isn't very efficient, but this only happens at the end of
        the program if a deadlock is found, so it's not too bad.
      
      - `--verbose` mode to print graph statistics
      
      - Make `--binary` flag optional. Not needed by default, However, this is needed
        on kernels without this recent kernel patch
        (https://lkml.org/lkml/2017/1/13/585, submitted 2 weeks ago): we can't attach
        a uprobe on a binary that has `:` in the path name. Instead, we can create a
        symlink without `:` in the path and pass that to the `--binary` argument
        instead.
      e7dff43a
    • Jesper Dangaard Brouer's avatar
      docs: keep track of when prealloc of map elements were introduced · e682846d
      Jesper Dangaard Brouer authored
      Kernel v4.6-rc1~91^2~108^2~6
       commit 6c9059817432 ("bpf: pre-allocate hash map elements")
      
      Introduced default preallocation of mem elements to solve a deadlock
      (when kprobe'ing the memory allocator itself).
      
      This change is also a performance enhancement.
      
      The commit also introduced a map_flags on BPF_MAP_CREATE, which can disable
      this preallocation again BPF_F_NO_PREALLOC.
      Signed-off-by: default avatarJesper Dangaard Brouer <brouer@redhat.com>
      e682846d