tracepoint API change: rename TP_ARGS to TP_VARS
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 11 Nov 2011 17:22:41 +0000 (12:22 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 11 Nov 2011 17:22:41 +0000 (12:22 -0500)
In preparation of folding of both TP_PROTO and TP_ARGS into TP_ARGS.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/tracepoint.h
include/lttng/ust-tracepoint-event-reset.h
include/lttng/ust-tracepoint-event.h
liblttng-ust-java/lttng_ust_java.h
liblttng-ust/probes/lttng-probe-ust.h
tests/fork/ust_tests_fork.h
tests/hello/ust_tests_hello.h
tests/register_test/tp.h
tests/trace_event/trace_event_test.h
tests/tracepoint/benchmark/tracepoint_benchmark.h
tests/tracepoint/tracepoint_test.h

index 6023ba5e9fec0dab5160435dce41386a7aeb7e89..e44c0331212158fd255c61056ac2c240c607669d 100644 (file)
@@ -62,13 +62,13 @@ extern "C" {
 
 #define TP_PARAMS(args...)     args
 #define TP_PROTO(args...)      args
-#define TP_ARGS(args...)       args
+#define TP_VARS(args...)       args
 
 #define __CHECK_TRACE(provider, name, proto, args)                     \
        do {                                                            \
                if (caa_unlikely(__tracepoint_##provider##___##name.state))     \
                        __DO_TRACE(&__tracepoint_##provider##___##name, \
-                               TP_PROTO(proto), TP_ARGS(args));        \
+                               TP_PROTO(proto), TP_VARS(args));        \
        } while (0)
 
 /*
@@ -81,7 +81,7 @@ extern "C" {
        static inline void __trace_##provider##___##name(proto)         \
        {                                                               \
                __CHECK_TRACE(provider, name, TP_PROTO(data_proto),     \
-                             TP_ARGS(data_args));                      \
+                             TP_VARS(data_args));                      \
        }                                                               \
        static inline int                                               \
        __register_trace_##provider##___##name(void (*probe)(data_proto), void *data)   \
@@ -196,7 +196,7 @@ static void __attribute__((destructor)) __tracepoints__destroy(void)
  * TRACEPOINT_EVENT(< [com_company_]project[_component] >, < event >,
  *     TP_PROTO(int arg0, void *arg1, char *string, size_t strlen,
  *              long *arg4, size_t arg4_len),
- *     TP_ARGS(arg0, arg1, string, strlen, arg4, arg4_len),
+ *     TP_VARS(arg0, arg1, string, strlen, arg4, arg4_len),
  *     TP_FIELDS(
  *
  *         * Integer, printed in base 10 * 
@@ -283,7 +283,7 @@ static void __attribute__((destructor)) __tracepoints__destroy(void)
  *     *  TP_PROTO1/TP_PROTO2/TP_PROTO3 ugliness.)
  *     *
  *
- *     TP_ARGS(rq, prev, next),
+ *     TP_VARS(rq, prev, next),
  *
  *     *
  *     * Fast binary tracing: define the trace record via
index 43044ac9020b001601381070be12b65b01082558..0d5611d2ca3391353c896183afd6b83fa8d3120d 100644 (file)
@@ -27,8 +27,8 @@
 #undef TP_PROTO
 #define TP_PROTO(args...)
 
-#undef TP_ARGS
-#define TP_ARGS(args...)
+#undef TP_VARS
+#define TP_VARS(args...)
 
 #undef TP_FIELDS
 #define TP_FIELDS(args...)
index 90e58e09319674ddd62b82d1c44e4bb516b9d216..901f491716263c294c3a01fdb8f7341dab61f4f9 100644 (file)
@@ -421,8 +421,8 @@ static inline size_t __event_get_align__##_provider##___##_name(_proto)           \
 #undef TP_PROTO
 #define TP_PROTO(args...) args
 
-#undef TP_ARGS
-#define TP_ARGS(args...) args
+#undef TP_VARS
+#define TP_VARS(args...) args
 
 #undef TP_FIELDS
 #define TP_FIELDS(args...) args
index ccb623310daed134ba0fdcbbe2054175b850addb..67e8d2d75b4825407d672c02fe8f914d0c35bfb3 100644 (file)
@@ -26,7 +26,7 @@
 
 TRACEPOINT_EVENT(lttng_ust_java_string,
        TP_PROTO(const char *name, const char *args),
-       TP_ARGS(name, args),
+       TP_VARS(name, args),
        TP_FIELDS(
                ctf_string(name, name)
                ctf_string(args, args)
index 8835dba67e2e29ce6347d558e47903418a9e107a..c8525fd92c3c743e090b8a9e3e2d547723dd63b2 100644 (file)
@@ -28,7 +28,7 @@ TRACEPOINT_EVENT(lttng, metadata,
 
        TP_PROTO(const char *str),
 
-       TP_ARGS(str),
+       TP_VARS(str),
 
        /*
         * Not exactly a string: more a sequence of bytes (dynamic
index 4bd105bddd790b93aafdb6e0d5b176a80fe072b5..f86df70a944d27d8e58bd370c9287fadcdb81b89 100644 (file)
@@ -31,7 +31,7 @@ TRACEPOINT_EVENT_NOARGS(ust_tests_fork, before_fork,
 
 TRACEPOINT_EVENT(ust_tests_fork, after_fork_child,
        TP_PROTO(pid_t pid),
-       TP_ARGS(pid),
+       TP_VARS(pid),
        TP_FIELDS(
                ctf_integer(pid_t, pid, pid)
        )
index 40f2cc19b966fdaccaf2159c0d57a9ff63ca89ed..9f38e983a90a054de2bb9e16aebd03f0ca04cfee 100644 (file)
@@ -32,7 +32,7 @@ TRACEPOINT_EVENT(ust_tests_hello, tptest,
        TP_PROTO(int anint, int netint, long *values,
                 char *text, size_t textlen,
                 double doublearg, float floatarg),
-       TP_ARGS(anint, netint, values, text, textlen,
+       TP_VARS(anint, netint, values, text, textlen,
                doublearg, floatarg),
        TP_FIELDS(
                ctf_integer(int, intfield, anint)
index 2a9081342d17ff57bb87e6690be5bd81b7d4a003..ced2478d228eab75dc88c53c2cac0100ce73ccf1 100644 (file)
@@ -26,7 +26,7 @@
 
 TRACEPOINT_EVENT(hello_tptest,
                 TP_PROTO(int anint),
-                TP_ARGS(anint),
+                TP_VARS(anint),
                 TP_FIELDS());
 
 #endif /* _TRACE_TP_H */
index 19fab2ffc6623857017e999c0727fdd2ec9eafb3..72528b8260eb86f3d702e6afc8ed045c8c823026 100644 (file)
@@ -29,7 +29,7 @@ TRACEPOINT_EVENT(test,
 
        TP_PROTO(unsigned long time, unsigned long count),
 
-       TP_ARGS(time, count),
+       TP_VARS(time, count),
 
        TP_FIELDS(
                tp_field(unsigned long, time, time)
index 3b735ff224ba6469a1810ce470ca513f3449d1c5..b64fb14ce024fb3f7f447165d7ced28e589346bf 100644 (file)
@@ -26,7 +26,7 @@
 
 TRACEPOINT_EVENT(ust_event,
                 TP_PROTO(unsigned int v),
-                TP_ARGS(v),
+                TP_VARS(v),
                 TP_FIELDS());
 
 #endif /* _TRACE_TRACEPOINT_BENCHMARK_H */
index 1899fe4e8c16bb2ed965c80281a531845f56790c..bca4be2fd5497e5e26626f7ceb46e32348bee40f 100644 (file)
@@ -1,7 +1,7 @@
 #include <ust/tracepoint.h>
 
-DECLARE_TRACEPOINT(ust_event, TP_PROTO(unsigned int v), TP_ARGS(v));
-DECLARE_TRACEPOINT(ust_event2, TP_PROTO(unsigned int v), TP_ARGS(v));
+DECLARE_TRACEPOINT(ust_event, TP_PROTO(unsigned int v), TP_VARS(v));
+DECLARE_TRACEPOINT(ust_event2, TP_PROTO(unsigned int v), TP_VARS(v));
 
 struct message {
        char *payload;
This page took 0.030793 seconds and 4 git commands to generate.