Define TRACETOOLS_TRACEPOINT_ENABLED

Define Documentation

TRACETOOLS_TRACEPOINT_ENABLED(event_name)

Check if a tracepoint is enabled at runtime.

This can be useful to only compute tracepoint arguments if the tracepoint is actually enabled at runtime. Combine this with DO_TRACEPOINT() instead of TRACEPOINT() to trigger a tracepoint after checking if it is enabled and computing its arguments.

This is the preferred method over calling the underlying function directly.