have uniform uprobe event names for python and C++
authorYonghong Song <yhs@fb.com>
Fri, 28 Jul 2017 23:30:35 +0000 (16:30 -0700)
committerBrenden Blanco <bblanco@gmail.com>
Wed, 16 Aug 2017 18:49:14 +0000 (11:49 -0700)
commite48f7c9672770704014d5c3baee9f4a30e419670
treebba978b2bca3b7dee2a6ec2b5f299f064b305328
parenta2afe8d39d62daf5a404887c1514d8454c031d5e
have uniform uprobe event names for python and C++

This is a followup change for previous commit 0ba15075fc5f
(permit multiple pids attaching to the same probe).
That commit changes the event name for python uprobe API
in order to permit multiple processes attaching to the
same uprobe point. The C++ uprobe event name remains
unchanged and thus a descrepancy.

This patch add changes to C++ side and also make python uretprobe
having the same naming convention.

Originally I experimented to put the common code to generate
event names in libbpf.c. But doing this seems more klunky
than simplicity of C++ and Python. So I stick to the current
design.

No need to add pid to kprobe event names as kprobe bpf invocation
will ignore pid anyway.

Signed-off-by: Yonghong Song <yhs@fb.com>
src/cc/BPF.cc
src/cc/BPF.h
src/python/bcc/__init__.py