1. 10 Feb, 2017 2 commits
    • Rafael Fonseca's avatar
      uobjnew: fix lambda syntax in python3 · 058c46fa
      Rafael Fonseca authored
      $ ./uobjnew
        File "./uobjnew", line 150
          data = sorted(data.items(), key=lambda (k, v): v.num_allocs)
                                                 ^
      SyntaxError: invalid syntax
      058c46fa
    • 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 3 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