Support automatic kprobe event detection in common case
authorBrenden Blanco <bblanco@plumgrid.com>
Wed, 9 Sep 2015 00:35:25 +0000 (17:35 -0700)
committerBrenden Blanco <bblanco@plumgrid.com>
Wed, 9 Sep 2015 01:08:18 +0000 (18:08 -0700)
commit4fd308f954bd17f0a74412e60cb5721c3f6e713a
tree0a8427be1f60e9a6852df2f580f4c1731c83c778
parent8d0425cb41669fad943ccc0eccc9b9f36406869e
Support automatic kprobe event detection in common case

* In the simple case, a user only creates 1 C function to be used with
  kprobes. Detect this common case and don't require the user to repeat
  themselves by passing the fn_name to attach_kprobe().
  e.g.: BPF(text='int sys_clone(void *ctx) {/*do stuff*/}').trace_print()

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
examples/hello_world.py
src/python/bcc/__init__.py