• Sasha Goldshtein's avatar
    bcc: Auto-tracepoints similar to auto-kprobes · 619fc140
    Sasha Goldshtein authored
    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.
    619fc140
__init__.py 28.7 KB