• Sasha Goldshtein's avatar
    cc: Rewrite probe functions that refer to tracepoint structures · fab68e3a
    Sasha Goldshtein authored
    When a probe function refers to a tracepoint arguments structure,
    such as `struct tracepoint__irq__irq_handler_entry`, add that structure
    on-the-fly using a Clang frontend action that runs before any other
    steps take place.
    
    Typically, the user will create tracepoint probe functions using
    the TRACEPOINT_PROBE macro, which avoids the need for specifying
    the tracepoint category and event twice in the signature of the
    probe function.
    fab68e3a
b_frontend_action.cc 28.7 KB