Add "trace_mark()" compatibility API (progressive deprecation)
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 25 Apr 2011 17:25:41 +0000 (13:25 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 25 Apr 2011 17:25:41 +0000 (13:25 -0400)
Add back the trace_mark() API for backward compability, tagging it as
being slowly being deprecated.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/ust/marker.h

index 1a3d74e9a8ac20e6c03a6b91cff70e0014c9fd48..481bc79b0f42e7295ef6c284498f6123db76b8bd 100644 (file)
@@ -204,6 +204,20 @@ extern void ust_marker_update_probe_range(struct ust_marker * const *begin,
 #define ust_marker(name, format, args...) \
        __ust_marker(ust, name, NULL, format, ## args)
 
+
+/*
+ * trace_mark() -- TO BE DEPRECATED
+ * @channel: name prefix, not quoted. Ignored.
+ * @name: marker name, not quoted.
+ * @format: format string
+ * @args...: variable argument list
+ *
+ * Kept as a compatibility API and will be *DEPRECATED* in favor of
+ * ust_marker().
+ */
+#define trace_mark(channel, name, format, args...)     \
+       ust_marker(ust, name, format, args)
+
 /**
  * ust_marker_tp - Marker in a tracepoint callback
  * @name: marker name, not quoted.
This page took 0.025362 seconds and 4 git commands to generate.