Handling multiple concurrent probe users.
authorDerek <“derek0883@gmail.com”>
Mon, 23 Jan 2017 04:58:23 +0000 (20:58 -0800)
committerDerek <“derek0883@gmail.com”>
Mon, 23 Jan 2017 04:58:23 +0000 (20:58 -0800)
commit739581f86c1dc6eb8438805eb4b60fb98f5df479
tree3a78f3dfdbca94cd19f230d78f89353d427009ff
parentb79b589a2dc663431e3a9489178c1ada6f12e8b7
Handling multiple concurrent probe users.
Event naming pattern changed to $(eventname)_bcc_$(pid)
Detect /sys/kernel/debug/tracing/instances in bpf_attach_probe,
if it exist, then will per-instance event, if failed the make global
event instance as same as before.
src/cc/BPF.cc
src/cc/libbpf.c
src/cc/libbpf.h
src/python/bcc/__init__.py
src/python/bcc/libbcc.py