• 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
tp_frontend_action.h 2.29 KB