#define ust_marker(name, format, args...) \
__ust_marker(ust, name, NULL, format, ## args)
-static inline __attribute__((deprecated))
-void __trace_mark_is_deprecated()
-{
-}
-
/**
* UST_MARKER_NOARGS - Format string for a marker with no argument.
*/
* ust_marker().
*/
#define trace_mark(channel, name, format, args...) \
- __trace_mark_is_deprecated(); \
ust_marker(name, format, ## args)
static inline __attribute__((deprecated))
{ \
return __tracepoint_probe_unregister(#name, (void *)probe, \
data); \
+ } \
+ /* \
+ * Backward-compatibility API (will be deprecated): \
+ * trace_* \
+ * register_trace_* \
+ * unregister_trace_* \
+ */ \
+ static inline void trace_##name(proto) \
+ { \
+ __CHECK_TRACE(name, TP_PROTO(proto), \
+ TP_ARGS(args)); \
+ } \
+ static inline int \
+ register_trace_##name(void (*probe)(proto)) \
+ { \
+ return __tracepoint_probe_register(#name, (void *)probe,\
+ NULL); \
+ } \
+ static inline int \
+ unregister_trace_##name(void (*probe)(proto)) \
+ { \
+ return __tracepoint_probe_unregister(#name, (void *)probe, \
+ NULL); \
}
/*
extern
int tracepoint_unregister_lib(struct tracepoint * const *tracepoints_start);
+/*
+ * Backward-compatibility API (will be deprecated):
+ * DEFINE_TRACE
+ * DECLARE_TRACE
+ * register_tracepoint
+ * unregister_tracepoint
+ */
+#define DEFINE_TRACE _DEFINE_TRACEPOINT
+#define DECLARE_TRACE(name, proto, args) \
+ _DECLARE_TRACEPOINT(name, TP_PARAMS(proto), TP_PARAMS(args))
#ifndef TRACEPOINT_EVENT
/*