From 5389de4dde9f6c008db07d19ba6f721eb23a025a Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 25 Apr 2011 13:25:41 -0400 Subject: [PATCH] Add "trace_mark()" compatibility API (progressive deprecation) Add back the trace_mark() API for backward compability, tagging it as being slowly being deprecated. Signed-off-by: Mathieu Desnoyers --- include/ust/marker.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/ust/marker.h b/include/ust/marker.h index 1a3d74e..481bc79 100644 --- a/include/ust/marker.h +++ b/include/ust/marker.h @@ -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. -- 2.34.1