Add regex support to attach_k[ret]probe
authorBrenden Blanco <bblanco@plumgrid.com>
Tue, 25 Aug 2015 04:33:25 +0000 (21:33 -0700)
committerBrenden Blanco <bblanco@plumgrid.com>
Tue, 25 Aug 2015 04:36:04 +0000 (21:36 -0700)
commit5a888c78762c59d6b62807158b49ff11d999f485
treef78221cb70145ca23c4f2eab304a1096c755497b
parentf39d745a0f45a1ad3b19bbb08d44e6390d6cd4f3
Add regex support to attach_k[ret]probe

Add new event_re parameter to kprobe functions. This searches through
the list of functions/symbols in <tracefs>/available_filter_functions
for all matching functions. Every one is attached.

Add a test case for attach_k[ret]probe.

Fixes: #141
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
src/python/bpf/__init__.py
tests/cc/CMakeLists.txt
tests/cc/test_trace4.py [new file with mode: 0755]