[ltt-dev] [RFC] UST instrumentation API
mathieu.desnoyers at efficios.com
Wed Apr 13 16:59:08 EDT 2011
OK, so I took care of most of the instrumentation API, but some
questions need discussion.
- Currently handled:
-> given that the API presented to users will be "TRACE_EVENT()" (which
we should rename to something else to eliminate confusion), it might
make sense to make both of DECLARE_TRACE and DEFINE_TRACE internal to
tracepoints and don't expose them to the users.
TRACE_EVENT() could be the macro replacing these, but I would recommend
using a name like "TRACEPOINT_TEMPLATE()", which is what it really is.
I recommend to merge all these into "TP_PARAMS()". Through the
"TRACEPOINT_TEMPLATE()" macro, these will all become internal anyway, so
not exposed to the users.
UST Markers (main API members):
ust_marker(name, "fmt", ...)
Will be eventually phased-out with the new TRACEPOINT_TEMPLATE() and CTF:
Feedback is welcome,
Operating System Efficiency R&D Consultant
More information about the lttng-dev