Fix tools still referencing ProcUtils (#625)
authorTeng Qin <palmtenor@gmail.com>
Sun, 31 Jul 2016 17:17:07 +0000 (10:17 -0700)
committer4ast <alexei.starovoitov@gmail.com>
Sun, 31 Jul 2016 17:17:07 +0000 (10:17 -0700)
commit9b04a6ffeb7f7d7ba1a1d7df56571e938b6e1190
treee7de15539dffb229caf6a434f150aef28647fd5c
parent4ba52382f7ab0e42459ddbb09c79d25df03e4c2b
Fix tools still referencing ProcUtils (#625)

Recent USDT change removed `procstat.py`, which the `argdist` and `trace` tools are still referencing. This diff moves the only method (`which`) they are using into the `BPF` class.

Also, make `BPF.find_library` not to call `decode()` on `None`.
src/python/bcc/__init__.py
tools/argdist.py
tools/trace.py