bcc: Auto-tracepoints similar to auto-kprobes
authorSasha Goldshtein <goldshtn@gmail.com>
Sun, 3 Jul 2016 08:33:19 +0000 (01:33 -0700)
committerSasha Goldshtein <goldshtn@gmail.com>
Sat, 9 Jul 2016 12:19:12 +0000 (05:19 -0700)
commit619fc1402cf2e8cfc67caffb0dfa6f0683ec511e
tree23c343f67def070381899b2482be8c57a8e11b30
parent52cd371306705c39ad8c06fef195f6c4cdebf664
bcc: Auto-tracepoints similar to auto-kprobes

When a function in the BPF program starts with "tracepoint__", parse
the rest of the name as a tracepoint category and name and attach the
tracepoint automatically. For example:

```
int tracepoint__sched__sched_switch(...)
```

As a result, the sched:sched_switch tracepoint is enabled and the function
is attached to that tracepoint.
src/python/bcc/__init__.py