#include <lttng/tracepoint.h>
-TRACEPOINT_EVENT(
+LTTNG_UST_TRACEPOINT_EVENT(
TRACEPOINT_PROVIDER,
align_query,
LTTNG_UST_TP_ARGS(
)
)
-TRACEPOINT_EVENT(
+LTTNG_UST_TRACEPOINT_EVENT(
TRACEPOINT_PROVIDER,
test_alignment,
LTTNG_UST_TP_ARGS(
#include <lttng/tracepoint.h>
-TRACEPOINT_EVENT(ust_tests_demo, starting,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_demo, starting,
LTTNG_UST_TP_ARGS(int, value),
LTTNG_UST_TP_FIELDS(
ctf_integer(int, value, value)
TRACEPOINT_MODEL_EMF_URI(ust_tests_demo, starting,
"http://example.com/path_to_model?q=ust_tests_demo:starting")
-TRACEPOINT_EVENT(ust_tests_demo, done,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_demo, done,
LTTNG_UST_TP_ARGS(int, value),
LTTNG_UST_TP_FIELDS(
ctf_integer(int, value, value)
#include <lttng/tracepoint.h>
#include <stddef.h>
-TRACEPOINT_EVENT(ust_tests_demo2, loop,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_demo2, loop,
LTTNG_UST_TP_ARGS(int, anint, int, netint, long *, values,
char *, text, size_t, textlen,
double, doublearg, float, floatarg),
#include <lttng/tracepoint.h>
-TRACEPOINT_EVENT(ust_tests_demo3, done,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_demo3, done,
LTTNG_UST_TP_ARGS(int, value),
LTTNG_UST_TP_FIELDS(
ctf_integer(int, value, value)
*
* sample_component:message:message = text.
*/
-TRACEPOINT_EVENT(
+LTTNG_UST_TRACEPOINT_EVENT(
/*
* provider name, not a variable but a string starting with a letter
* and containing either letters, numbers or underscores.
TRACEPOINT_LOGLEVEL(
/*
* The provider name, must be the same as the provider name in the
- * TRACEPOINT_EVENT and as TRACEPOINT_PROVIDER above.
+ * LTTNG_UST_TRACEPOINT_EVENT and as TRACEPOINT_PROVIDER above.
*/
sample_component,
/*
* The tracepoint name, must be the same as the tracepoint name in the
- * TRACEPOINT_EVENT
+ * LTTNG_UST_TRACEPOINT_EVENT
*/
message,
/*
*/
#define TRACEPOINT_CREATE_PROBES
/*
- * The header containing our TRACEPOINT_EVENTs.
+ * The header containing our LTTNG_UST_TRACEPOINT_EVENTs.
*/
#include "sample_component_provider.h"
-TRACEPOINT_EVENT(
+LTTNG_UST_TRACEPOINT_EVENT(
sample_tracepoint,
message, // C++ Style comment
LTTNG_UST_TP_ARGS(const char *, text),
#include <lttng/tracepoint.h>
#include <stddef.h>
-TRACEPOINT_EVENT(ust_tests_hello, tptest,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello, tptest,
LTTNG_UST_TP_ARGS(int, anint, int, netint, long *, values,
char *, text, size_t, textlen,
double, doublearg, float, floatarg),
)
)
-TRACEPOINT_EVENT(ust_tests_hello, tptest_sighandler,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello, tptest_sighandler,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
#include <lttng/tracepoint.h>
#include <stdarg.h>
-TRACEPOINT_EVENT(lttng_ust_tracef, event,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_tracef, event,
LTTNG_UST_TP_ARGS(const char *, msg, unsigned int, len, void *, ip),
LTTNG_UST_TP_FIELDS(
ctf_sequence_text(char, msg, msg, unsigned int, len)
#include <lttng/tracepoint.h>
#include <stdarg.h>
-TRACEPOINT_EVENT_CLASS(lttng_ust_tracelog, tlclass,
+LTTNG_UST_TRACEPOINT_EVENT_CLASS(lttng_ust_tracelog, tlclass,
LTTNG_UST_TP_ARGS(const char *, file, int, line, const char *, func,
const char *, msg, unsigned int, len, void *, ip),
LTTNG_UST_TP_FIELDS(
)
#define TP_TRACELOG_TEMPLATE(_level_enum) \
- TRACEPOINT_EVENT_INSTANCE(lttng_ust_tracelog, tlclass, _level_enum, \
+ LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(lttng_ust_tracelog, tlclass, _level_enum, \
LTTNG_UST_TP_ARGS(const char *, file, int, line, const char *, func, \
const char *, msg, unsigned int, len, void *, ip) \
) \
#define __tp_stringify1(x) #x
#define __tp_stringify(x) __tp_stringify1(x)
-#undef TRACEPOINT_EVENT_INSTANCE
-#define TRACEPOINT_EVENT_INSTANCE(_provider, _template, _name, _args)
+#undef LTTNG_UST_TRACEPOINT_EVENT_INSTANCE
+#define LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(_provider, _template, _name, _args)
-#undef TRACEPOINT_EVENT
-#define TRACEPOINT_EVENT(_provider, _name, _args, _fields) \
- TRACEPOINT_EVENT_CLASS(_provider, _name, _TP_PARAMS(_args), \
+#undef LTTNG_UST_TRACEPOINT_EVENT
+#define LTTNG_UST_TRACEPOINT_EVENT(_provider, _name, _args, _fields) \
+ LTTNG_UST_TRACEPOINT_EVENT_CLASS(_provider, _name, _TP_PARAMS(_args), \
_TP_PARAMS(_fields)) \
- TRACEPOINT_EVENT_INSTANCE(_provider, _name, _name, \
+ LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(_provider, _name, _name, \
_TP_PARAMS(_args))
#undef LTTNG_UST_TP_ARGS
#define LTTNG_UST_TP_ARGS(...) __VA_ARGS__
-#undef TRACEPOINT_EVENT
-#define TRACEPOINT_EVENT(provider, name, args, fields) \
- _DECLARE_TRACEPOINT(provider, name, _TP_PARAMS(args)) \
- _DEFINE_TRACEPOINT(provider, name, _TP_PARAMS(args))
+#undef LTTNG_UST_TRACEPOINT_EVENT
+#define LTTNG_UST_TRACEPOINT_EVENT(provider, name, args, fields) \
+ LTTNG_UST__DECLARE_TRACEPOINT(provider, name, _TP_PARAMS(args)) \
+ LTTNG_UST__DEFINE_TRACEPOINT(provider, name, _TP_PARAMS(args))
-#undef TRACEPOINT_EVENT_CLASS
-#define TRACEPOINT_EVENT_CLASS(provider, name, args, fields)
+#undef LTTNG_UST_TRACEPOINT_EVENT_CLASS
+#define LTTNG_UST_TRACEPOINT_EVENT_CLASS(provider, name, args, fields)
-#undef TRACEPOINT_EVENT_INSTANCE
-#define TRACEPOINT_EVENT_INSTANCE(provider, _template, name, args) \
- _DECLARE_TRACEPOINT(provider, name, _TP_PARAMS(args)) \
- _DEFINE_TRACEPOINT(provider, name, _TP_PARAMS(args))
+#undef LTTNG_UST_TRACEPOINT_EVENT_INSTANCE
+#define LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(provider, _template, name, args) \
+ LTTNG_UST__DECLARE_TRACEPOINT(provider, name, _TP_PARAMS(args)) \
+ LTTNG_UST__DEFINE_TRACEPOINT(provider, name, _TP_PARAMS(args))
#undef TRACEPOINT_LOGLEVEL
#define TRACEPOINT_LOGLEVEL(provider, name, loglevel)
* between caller's ip addresses within the probe using the return
* address.
*/
-#define _DECLARE_TRACEPOINT(_provider, _name, ...) \
+#define LTTNG_UST__DECLARE_TRACEPOINT(_provider, _name, ...) \
extern struct lttng_ust_tracepoint __tracepoint_##_provider##___##_name; \
static inline \
void __tracepoint_cb_##_provider##___##_name(_TP_ARGS_PROTO(__VA_ARGS__)) \
*/
#define _TP_EXTRACT_STRING(...) #__VA_ARGS__
-#define _DEFINE_TRACEPOINT(_provider, _name, _args) \
+#define LTTNG_UST__DEFINE_TRACEPOINT(_provider, _name, _args) \
lttng_ust_tracepoint_validate_name_len(_provider, _name); \
extern int __tracepoint_provider_##_provider; \
static const char __tp_provider_strtab_##_provider##___##_name[] \
#else /* TRACEPOINT_DEFINE */
-#define _DEFINE_TRACEPOINT(_provider, _name, _args)
+#define LTTNG_UST__DEFINE_TRACEPOINT(_provider, _name, _args)
#endif /* #else TRACEPOINT_DEFINE */
#endif /* #ifndef TRACEPOINT_ENUM */
-#ifndef TRACEPOINT_EVENT
+#ifndef LTTNG_UST_TRACEPOINT_EVENT
/*
- * How to use the TRACEPOINT_EVENT macro:
+ * How to use the LTTNG_UST_TRACEPOINT_EVENT macro:
*
* An example:
*
- * TRACEPOINT_EVENT(someproject_component, event_name,
+ * LTTNG_UST_TRACEPOINT_EVENT(someproject_component, event_name,
*
* * LTTNG_UST_TP_ARGS takes from 0 to 10 "type, field_name" pairs *
*
* the provider:event identifier is limited to 127 characters.
*/
-#define TRACEPOINT_EVENT(provider, name, args, fields) \
- _DECLARE_TRACEPOINT(provider, name, _TP_PARAMS(args)) \
- _DEFINE_TRACEPOINT(provider, name, _TP_PARAMS(args))
+#define LTTNG_UST_TRACEPOINT_EVENT(provider, name, args, fields) \
+ LTTNG_UST__DECLARE_TRACEPOINT(provider, name, _TP_PARAMS(args)) \
+ LTTNG_UST__DEFINE_TRACEPOINT(provider, name, _TP_PARAMS(args))
-#define TRACEPOINT_EVENT_CLASS(provider, name, args, fields)
+#define LTTNG_UST_TRACEPOINT_EVENT_CLASS(provider, name, args, fields)
-#define TRACEPOINT_EVENT_INSTANCE(provider, _template, name, args) \
- _DECLARE_TRACEPOINT(provider, name, _TP_PARAMS(args)) \
- _DEFINE_TRACEPOINT(provider, name, _TP_PARAMS(args))
+#define LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(provider, _template, name, args) \
+ LTTNG_UST__DECLARE_TRACEPOINT(provider, name, _TP_PARAMS(args)) \
+ LTTNG_UST__DEFINE_TRACEPOINT(provider, name, _TP_PARAMS(args))
-#endif /* #ifndef TRACEPOINT_EVENT */
+#if LTTNG_UST_COMPAT_API(0)
+#define TRACEPOINT_EVENT LTTNG_UST_TRACEPOINT_EVENT
+#define TRACEPOINT_EVENT_CLASS LTTNG_UST_TRACEPOINT_EVENT_CLASS
+#define TRACEPOINT_EVENT_INSTANCE LTTNG_UST_TRACEPOINT_EVENT_INSTANCE
+#endif /* #if LTTNG_UST_COMPAT_API(0) */
+
+#endif /* #ifndef LTTNG_UST_TRACEPOINT_EVENT */
#ifndef TRACEPOINT_LOGLEVEL
* debug information with function-level scope
*
* TRACE_DEBUG_LINE 13
- * debug information with line-level scope (TRACEPOINT_EVENT default)
+ * debug information with line-level scope (LTTNG_UST_TRACEPOINT_EVENT default)
*
* TRACE_DEBUG 14
* debug-level message
*
- * Declare tracepoint loglevels for tracepoints. A TRACEPOINT_EVENT
+ * Declare tracepoint loglevels for tracepoints. A LTTNG_UST_TRACEPOINT_EVENT
* should be declared prior to the the TRACEPOINT_LOGLEVEL for a given
* tracepoint name. The first field is the provider name, the second
* field is the name of the tracepoint, the third field is the loglevel
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*/
-/* Define to "nothing" all macros used for TRACEPOINT_EVENT */
+/* Define to "nothing" all macros used for LTTNG_UST_TRACEPOINT_EVENT */
-#undef _TRACEPOINT_EVENT_CLASS
-#define _TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields)
+#undef LTTNG_UST__TRACEPOINT_EVENT_CLASS
+#define LTTNG_UST__TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields)
-#undef _TRACEPOINT_EVENT_INSTANCE
-#define _TRACEPOINT_EVENT_INSTANCE(_provider, _template, _name, _args)
+#undef LTTNG_UST__TRACEPOINT_EVENT_INSTANCE
+#define LTTNG_UST__TRACEPOINT_EVENT_INSTANCE(_provider, _template, _name, _args)
#undef TRACEPOINT_ENUM
#define TRACEPOINT_ENUM(_provider, _name, _values)
pos = cds_list_entry(tp_rcu_dereference(pos->member.next), __typeof__(*pos), member))
/*
- * TRACEPOINT_EVENT_CLASS declares a class of tracepoints receiving the
+ * LTTNG_UST_TRACEPOINT_EVENT_CLASS declares a class of tracepoints receiving the
* same arguments and having the same field layout.
*
- * TRACEPOINT_EVENT_INSTANCE declares an instance of a tracepoint, with
+ * LTTNG_UST_TRACEPOINT_EVENT_INSTANCE declares an instance of a tracepoint, with
* its own provider and name. It refers to a class (template).
*
- * TRACEPOINT_EVENT declared both a class and an instance and does a
+ * LTTNG_UST_TRACEPOINT_EVENT declared both a class and an instance and does a
* direct mapping from the instance to the class.
*/
-#undef TRACEPOINT_EVENT
-#define TRACEPOINT_EVENT(_provider, _name, _args, _fields) \
- _TRACEPOINT_EVENT_CLASS(_provider, _name, \
+#undef LTTNG_UST_TRACEPOINT_EVENT
+#define LTTNG_UST_TRACEPOINT_EVENT(_provider, _name, _args, _fields) \
+ LTTNG_UST__TRACEPOINT_EVENT_CLASS(_provider, _name, \
_TP_PARAMS(_args), \
_TP_PARAMS(_fields)) \
- _TRACEPOINT_EVENT_INSTANCE(_provider, _name, _name, \
+ LTTNG_UST__TRACEPOINT_EVENT_INSTANCE(_provider, _name, _name, \
_TP_PARAMS(_args))
-#undef TRACEPOINT_EVENT_CLASS
-#define TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields) \
- _TRACEPOINT_EVENT_CLASS(_provider, _name, _TP_PARAMS(_args), _TP_PARAMS(_fields))
+#undef LTTNG_UST_TRACEPOINT_EVENT_CLASS
+#define LTTNG_UST_TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields) \
+ LTTNG_UST__TRACEPOINT_EVENT_CLASS(_provider, _name, _TP_PARAMS(_args), _TP_PARAMS(_fields))
-#undef TRACEPOINT_EVENT_INSTANCE
-#define TRACEPOINT_EVENT_INSTANCE(_provider, _template, _name, _args) \
- _TRACEPOINT_EVENT_INSTANCE(_provider, _template, _name, _TP_PARAMS(_args))
+#undef LTTNG_UST_TRACEPOINT_EVENT_INSTANCE
+#define LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(_provider, _template, _name, _args) \
+ LTTNG_UST__TRACEPOINT_EVENT_INSTANCE(_provider, _template, _name, _TP_PARAMS(_args))
/* Helpers */
#define _TP_ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
/*
* Stage 0 of tracepoint event generation.
*
- * Check that each TRACEPOINT_EVENT provider argument match the
+ * Check that each LTTNG_UST_TRACEPOINT_EVENT provider argument match the
* TRACEPOINT_PROVIDER by creating dummy callbacks.
*/
-/* Reset all macros within TRACEPOINT_EVENT */
+/* Reset all macros within LTTNG_UST_TRACEPOINT_EVENT */
#include <lttng/ust-tracepoint-event-reset.h>
static inline
{
}
-#undef _TRACEPOINT_EVENT_CLASS
-#define _TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields) \
+#undef LTTNG_UST__TRACEPOINT_EVENT_CLASS
+#define LTTNG_UST__TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields) \
__tracepoint_provider_mismatch_##_provider();
-#undef _TRACEPOINT_EVENT_INSTANCE
-#define _TRACEPOINT_EVENT_INSTANCE(_provider, _template, _name, _args) \
+#undef LTTNG_UST__TRACEPOINT_EVENT_INSTANCE
+#define LTTNG_UST__TRACEPOINT_EVENT_INSTANCE(_provider, _template, _name, _args) \
__tracepoint_provider_mismatch_##_provider();
static inline
/*
* Stage 0.1 of tracepoint event generation.
*
- * Check that each TRACEPOINT_EVENT provider:name does not exceed the
+ * Check that each LTTNG_UST_TRACEPOINT_EVENT provider:name does not exceed the
* tracepoint name length limit.
*/
-/* Reset all macros within TRACEPOINT_EVENT */
+/* Reset all macros within LTTNG_UST_TRACEPOINT_EVENT */
#include <lttng/ust-tracepoint-event-reset.h>
-#undef _TRACEPOINT_EVENT_INSTANCE
-#define _TRACEPOINT_EVENT_INSTANCE(_provider, _template, _name, _args) \
+#undef LTTNG_UST__TRACEPOINT_EVENT_INSTANCE
+#define LTTNG_UST__TRACEPOINT_EVENT_INSTANCE(_provider, _template, _name, _args) \
lttng_ust_tracepoint_validate_name_len(_provider, _name);
#include TRACEPOINT_INCLUDE
* class and the instance using the class actually match.
*/
-/* Reset all macros within TRACEPOINT_EVENT */
+/* Reset all macros within LTTNG_UST_TRACEPOINT_EVENT */
#include <lttng/ust-tracepoint-event-reset.h>
#undef LTTNG_UST_TP_ARGS
#define LTTNG_UST_TP_ARGS(...) __VA_ARGS__
-#undef _TRACEPOINT_EVENT_INSTANCE
-#define _TRACEPOINT_EVENT_INSTANCE(_provider, _template, _name, _args) \
+#undef LTTNG_UST__TRACEPOINT_EVENT_INSTANCE
+#define LTTNG_UST__TRACEPOINT_EVENT_INSTANCE(_provider, _template, _name, _args) \
void __event_template_proto___##_provider##___##_template(_TP_ARGS_DATA_PROTO(_args));
-#undef _TRACEPOINT_EVENT_CLASS
-#define _TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields) \
+#undef LTTNG_UST__TRACEPOINT_EVENT_CLASS
+#define LTTNG_UST__TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields) \
void __event_template_proto___##_provider##___##_name(_TP_ARGS_DATA_PROTO(_args));
#include TRACEPOINT_INCLUDE
* Verifying array and sequence elements are of an integer type.
*/
-/* Reset all macros within TRACEPOINT_EVENT */
+/* Reset all macros within LTTNG_UST_TRACEPOINT_EVENT */
#include <lttng/ust-tracepoint-event-reset.h>
#include <lttng/ust-tracepoint-event-write.h>
#include <lttng/ust-tracepoint-event-nowrite.h>
#undef LTTNG_UST_TP_FIELDS
#define LTTNG_UST_TP_FIELDS(...) __VA_ARGS__ /* Only one used in this phase */
-#undef _TRACEPOINT_EVENT_CLASS
-#define _TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields) \
+#undef LTTNG_UST__TRACEPOINT_EVENT_CLASS
+#define LTTNG_UST__TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields) \
_fields
#include TRACEPOINT_INCLUDE
* Each event produce an array of fields.
*/
-/* Reset all macros within TRACEPOINT_EVENT */
+/* Reset all macros within LTTNG_UST_TRACEPOINT_EVENT */
#include <lttng/ust-tracepoint-event-reset.h>
#include <lttng/ust-tracepoint-event-write.h>
#include <lttng/ust-tracepoint-event-nowrite.h>
#undef LTTNG_UST_TP_FIELDS
#define LTTNG_UST_TP_FIELDS(...) __VA_ARGS__ /* Only one used in this phase */
-#undef _TRACEPOINT_EVENT_CLASS
-#define _TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields) \
+#undef LTTNG_UST__TRACEPOINT_EVENT_CLASS
+#define LTTNG_UST__TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields) \
static const struct lttng_ust_event_field * const __event_fields___##_provider##___##_name[] = { \
_fields \
ctf_integer(int, dummy, 0) /* Dummy, C99 forbids 0-len array. */ \
* Create probe callback prototypes.
*/
-/* Reset all macros within TRACEPOINT_EVENT */
+/* Reset all macros within LTTNG_UST_TRACEPOINT_EVENT */
#include <lttng/ust-tracepoint-event-reset.h>
#undef LTTNG_UST_TP_ARGS
#define LTTNG_UST_TP_ARGS(...) __VA_ARGS__
-#undef _TRACEPOINT_EVENT_CLASS
-#define _TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields) \
+#undef LTTNG_UST__TRACEPOINT_EVENT_CLASS
+#define LTTNG_UST__TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields) \
static void __event_probe__##_provider##___##_name(_TP_ARGS_DATA_PROTO(_args));
#include TRACEPOINT_INCLUDE
* Create static inline function that calculates event size.
*/
-/* Reset all macros within TRACEPOINT_EVENT */
+/* Reset all macros within LTTNG_UST_TRACEPOINT_EVENT */
#include <lttng/ust-tracepoint-event-reset.h>
#include <lttng/ust-tracepoint-event-write.h>
#undef LTTNG_UST_TP_FIELDS
#define LTTNG_UST_TP_FIELDS(...) __VA_ARGS__
-#undef _TRACEPOINT_EVENT_CLASS
-#define _TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields) \
+#undef LTTNG_UST__TRACEPOINT_EVENT_CLASS
+#define LTTNG_UST__TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields) \
static inline \
size_t __event_get_size__##_provider##___##_name(size_t *__dynamic_len, _TP_ARGS_DATA_PROTO(_args)) \
lttng_ust_notrace; \
* We make both write and nowrite data available to the filter.
*/
-/* Reset all macros within TRACEPOINT_EVENT */
+/* Reset all macros within LTTNG_UST_TRACEPOINT_EVENT */
#include <lttng/ust-tracepoint-event-reset.h>
#include <lttng/ust-tracepoint-event-write.h>
#include <lttng/ust-tracepoint-event-nowrite.h>
#undef LTTNG_UST_TP_FIELDS
#define LTTNG_UST_TP_FIELDS(...) __VA_ARGS__
-#undef _TRACEPOINT_EVENT_CLASS
-#define _TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields) \
+#undef LTTNG_UST__TRACEPOINT_EVENT_CLASS
+#define LTTNG_UST__TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields) \
static inline \
void __event_prepare_interpreter_stack__##_provider##___##_name(char *__stack_data,\
_TP_ARGS_DATA_PROTO(_args)) \
* Create static inline function that calculates event payload alignment.
*/
-/* Reset all macros within TRACEPOINT_EVENT */
+/* Reset all macros within LTTNG_UST_TRACEPOINT_EVENT */
#include <lttng/ust-tracepoint-event-reset.h>
#include <lttng/ust-tracepoint-event-write.h>
#undef LTTNG_UST_TP_FIELDS
#define LTTNG_UST_TP_FIELDS(...) __VA_ARGS__
-#undef _TRACEPOINT_EVENT_CLASS
-#define _TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields) \
+#undef LTTNG_UST__TRACEPOINT_EVENT_CLASS
+#define LTTNG_UST__TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields) \
static inline \
size_t __event_get_align__##_provider##___##_name(_TP_ARGS_PROTO(_args)) \
lttng_ust_notrace; \
* and writes event data into the buffer.
*/
-/* Reset all macros within TRACEPOINT_EVENT */
+/* Reset all macros within LTTNG_UST_TRACEPOINT_EVENT */
#include <lttng/ust-tracepoint-event-reset.h>
#include <lttng/ust-tracepoint-event-write.h>
* 2*sizeof(unsigned long) for all supported architectures.
* Perform UNION (||) of filter runtime list.
*/
-#undef _TRACEPOINT_EVENT_CLASS
-#define _TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields) \
+#undef LTTNG_UST__TRACEPOINT_EVENT_CLASS
+#define LTTNG_UST__TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields) \
static \
void __event_probe__##_provider##___##_name(_TP_ARGS_DATA_PROTO(_args)) \
lttng_ust_notrace; \
* Create probe signature
*/
-/* Reset all macros within TRACEPOINT_EVENT */
+/* Reset all macros within LTTNG_UST_TRACEPOINT_EVENT */
#include <lttng/ust-tracepoint-event-reset.h>
#undef LTTNG_UST_TP_ARGS
#define _TP_EXTRACT_STRING2(...) #__VA_ARGS__
-#undef _TRACEPOINT_EVENT_CLASS
-#define _TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields) \
+#undef LTTNG_UST__TRACEPOINT_EVENT_CLASS
+#define LTTNG_UST__TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields) \
static const char __tp_event_signature___##_provider##___##_name[] = \
_TP_EXTRACT_STRING2(_args);
* the compiler will complain.
*/
-/* Reset all macros within TRACEPOINT_EVENT */
+/* Reset all macros within LTTNG_UST_TRACEPOINT_EVENT */
#include <lttng/ust-tracepoint-event-reset.h>
/*
* Tracepoint UML URI info.
*/
-/* Reset all macros within TRACEPOINT_EVENT */
+/* Reset all macros within LTTNG_UST_TRACEPOINT_EVENT */
#include <lttng/ust-tracepoint-event-reset.h>
/*
* to ensure C++ compilers default-initialize them.
*/
-/* Reset all macros within TRACEPOINT_EVENT */
+/* Reset all macros within LTTNG_UST_TRACEPOINT_EVENT */
#include <lttng/ust-tracepoint-event-reset.h>
-#undef _TRACEPOINT_EVENT_INSTANCE
-#define _TRACEPOINT_EVENT_INSTANCE(_provider, _template, _name, _args) \
+#undef LTTNG_UST__TRACEPOINT_EVENT_INSTANCE
+#define LTTNG_UST__TRACEPOINT_EVENT_INSTANCE(_provider, _template, _name, _args) \
static const int * \
__ref_loglevel___##_provider##___##_name \
__attribute__((weakref ("_loglevel___" #_provider "___" #_name))); \
* Create array of events.
*/
-/* Reset all macros within TRACEPOINT_EVENT */
+/* Reset all macros within LTTNG_UST_TRACEPOINT_EVENT */
#include <lttng/ust-tracepoint-event-reset.h>
-#undef _TRACEPOINT_EVENT_INSTANCE
-#define _TRACEPOINT_EVENT_INSTANCE(_provider, _template, _name, _args) \
+#undef LTTNG_UST__TRACEPOINT_EVENT_INSTANCE
+#define LTTNG_UST__TRACEPOINT_EVENT_INSTANCE(_provider, _template, _name, _args) \
&__event_desc___##_provider##_##_name,
static const struct lttng_ust_event_desc * const _TP_COMBINE_TOKENS(__event_desc___, TRACEPOINT_PROVIDER)[] = {
* Register refcount is protected by libc dynamic loader mutex.
*/
-/* Reset all macros within TRACEPOINT_EVENT */
+/* Reset all macros within LTTNG_UST_TRACEPOINT_EVENT */
#include <lttng/ust-tracepoint-event-reset.h>
static void
_TP_COMBINE_TOKENS(__lttng_ust_events_init__, TRACEPOINT_PROVIDER)(void)
#include <lttng/tracepoint.h>
-TRACEPOINT_EVENT(lttng_ust_cyg_profile_fast, func_entry,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_cyg_profile_fast, func_entry,
LTTNG_UST_TP_ARGS(void *, func_addr),
LTTNG_UST_TP_FIELDS(
ctf_integer_hex(unsigned long, addr,
TRACEPOINT_LOGLEVEL(lttng_ust_cyg_profile_fast, func_entry,
TRACE_DEBUG_FUNCTION)
-TRACEPOINT_EVENT(lttng_ust_cyg_profile_fast, func_exit,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_cyg_profile_fast, func_exit,
LTTNG_UST_TP_ARGS(void *, func_addr),
LTTNG_UST_TP_FIELDS(
ctf_unused(func_addr)
#include <lttng/tracepoint.h>
-TRACEPOINT_EVENT_CLASS(lttng_ust_cyg_profile, func_class,
+LTTNG_UST_TRACEPOINT_EVENT_CLASS(lttng_ust_cyg_profile, func_class,
LTTNG_UST_TP_ARGS(void *, func_addr, void *, call_site),
LTTNG_UST_TP_FIELDS(
ctf_integer_hex(unsigned long, addr,
)
)
-TRACEPOINT_EVENT_INSTANCE(lttng_ust_cyg_profile, func_class,
+LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(lttng_ust_cyg_profile, func_class,
func_entry,
LTTNG_UST_TP_ARGS(void *, func_addr, void *, call_site)
)
TRACEPOINT_LOGLEVEL(lttng_ust_cyg_profile, func_entry,
TRACE_DEBUG_FUNCTION)
-TRACEPOINT_EVENT_INSTANCE(lttng_ust_cyg_profile, func_class,
+LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(lttng_ust_cyg_profile, func_class,
func_exit,
LTTNG_UST_TP_ARGS(void *, func_addr, void *, call_site)
)
#define LTTNG_UST_DL_PROVIDER
#include <lttng/tracepoint.h>
-TRACEPOINT_EVENT(lttng_ust_dl, dlopen,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_dl, dlopen,
LTTNG_UST_TP_ARGS(void *, ip, void *, baddr, const char *, path,
int, flags, uint64_t, memsz, uint8_t, has_build_id,
uint8_t, has_debug_link),
)
#ifdef HAVE_DLMOPEN
-TRACEPOINT_EVENT(lttng_ust_dl, dlmopen,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_dl, dlmopen,
LTTNG_UST_TP_ARGS(void *, ip, void *, baddr, Lmid_t, nsid,
const char *, path, int, flags,
uint64_t, memsz, uint8_t, has_build_id,
)
#endif
-TRACEPOINT_EVENT(lttng_ust_dl, build_id,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_dl, build_id,
LTTNG_UST_TP_ARGS(
void *, ip,
void *, baddr,
)
)
-TRACEPOINT_EVENT(lttng_ust_dl, debug_link,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_dl, debug_link,
LTTNG_UST_TP_ARGS(
void *, ip,
void *, baddr,
)
)
-TRACEPOINT_EVENT(lttng_ust_dl, dlclose,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_dl, dlclose,
LTTNG_UST_TP_ARGS(void *, ip, void *, baddr),
LTTNG_UST_TP_FIELDS(
ctf_unused(ip)
/*
* Tracepoint used by Java applications using the JUL handler.
*/
-TRACEPOINT_EVENT(lttng_jul, event,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_jul, event,
LTTNG_UST_TP_ARGS(
const char *, msg,
const char *, logger_name,
/*
* Tracepoint used by Java applications using the log4j log appender.
*/
-TRACEPOINT_EVENT(lttng_log4j, event,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_log4j, event,
LTTNG_UST_TP_ARGS(
const char *, msg,
const char *, logger_name,
#include <lttng/tracepoint.h>
-TRACEPOINT_EVENT(lttng_ust_java, int_event,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_java, int_event,
LTTNG_UST_TP_ARGS(const char *, name, int, payload),
LTTNG_UST_TP_FIELDS(
ctf_string(name, name)
)
)
-TRACEPOINT_EVENT(lttng_ust_java, int_int_event,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_java, int_int_event,
LTTNG_UST_TP_ARGS(const char *, name, int, payload1, int, payload2),
LTTNG_UST_TP_FIELDS(
ctf_string(name, name)
)
)
-TRACEPOINT_EVENT(lttng_ust_java, long_event,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_java, long_event,
LTTNG_UST_TP_ARGS(const char *, name, long, payload),
LTTNG_UST_TP_FIELDS(
ctf_string(name, name)
)
)
-TRACEPOINT_EVENT(lttng_ust_java, long_long_event,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_java, long_long_event,
LTTNG_UST_TP_ARGS(const char *, name, long, payload1, long, payload2),
LTTNG_UST_TP_FIELDS(
ctf_string(name, name)
)
)
-TRACEPOINT_EVENT(lttng_ust_java, string_event,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_java, string_event,
LTTNG_UST_TP_ARGS(const char *, name, const char *, payload),
LTTNG_UST_TP_FIELDS(
ctf_string(name, name)
#include <lttng/tracepoint.h>
-TRACEPOINT_EVENT(lttng_ust_libc, malloc,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_libc, malloc,
LTTNG_UST_TP_ARGS(size_t, size, void *, ptr, void *, ip),
LTTNG_UST_TP_FIELDS(
ctf_integer(size_t, size, size)
)
)
-TRACEPOINT_EVENT(lttng_ust_libc, free,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_libc, free,
LTTNG_UST_TP_ARGS(void *, ptr, void *, ip),
LTTNG_UST_TP_FIELDS(
ctf_integer_hex(void *, ptr, ptr)
)
)
-TRACEPOINT_EVENT(lttng_ust_libc, calloc,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_libc, calloc,
LTTNG_UST_TP_ARGS(size_t, nmemb, size_t, size, void *, ptr, void *, ip),
LTTNG_UST_TP_FIELDS(
ctf_integer(size_t, nmemb, nmemb)
)
)
-TRACEPOINT_EVENT(lttng_ust_libc, realloc,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_libc, realloc,
LTTNG_UST_TP_ARGS(void *, in_ptr, size_t, size, void *, ptr, void *, ip),
LTTNG_UST_TP_FIELDS(
ctf_integer_hex(void *, in_ptr, in_ptr)
)
)
-TRACEPOINT_EVENT(lttng_ust_libc, memalign,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_libc, memalign,
LTTNG_UST_TP_ARGS(size_t, alignment, size_t, size, void *, ptr, void *, ip),
LTTNG_UST_TP_FIELDS(
ctf_integer(size_t, alignment, alignment)
)
)
-TRACEPOINT_EVENT(lttng_ust_libc, posix_memalign,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_libc, posix_memalign,
LTTNG_UST_TP_ARGS(void *, out_ptr, size_t, alignment, size_t, size, int, result, void *, ip),
LTTNG_UST_TP_FIELDS(
ctf_integer_hex(void *, out_ptr, out_ptr)
#include <lttng/tracepoint.h>
-TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_lock_req,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_lock_req,
LTTNG_UST_TP_ARGS(pthread_mutex_t *, mutex, void *, ip),
LTTNG_UST_TP_FIELDS(
ctf_integer_hex(void *, mutex, mutex)
)
)
-TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_lock_acq,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_lock_acq,
LTTNG_UST_TP_ARGS(pthread_mutex_t *, mutex, int, status, void *, ip),
LTTNG_UST_TP_FIELDS(
ctf_integer_hex(void *, mutex, mutex)
)
)
-TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_trylock,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_trylock,
LTTNG_UST_TP_ARGS(pthread_mutex_t *, mutex, int, status, void *, ip),
LTTNG_UST_TP_FIELDS(
ctf_integer_hex(void *, mutex, mutex)
)
)
-TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_unlock,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_unlock,
LTTNG_UST_TP_ARGS(pthread_mutex_t *, mutex, int, status, void *, ip),
LTTNG_UST_TP_FIELDS(
ctf_integer_hex(void *, mutex, mutex)
#include <lttng/tracepoint.h>
#include <stdbool.h>
-TRACEPOINT_EVENT(lttng_python, event,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_python, event,
LTTNG_UST_TP_ARGS(
const char *, asctime,
const char *, msg,
/*
* The provider ensures there are no duplicate event names.
- * Duplicated TRACEPOINT_EVENT event names would generate a
+ * Duplicated LTTNG_UST_TRACEPOINT_EVENT event names would generate a
* compile-time error due to duplicated symbol names.
*/
#define LTTNG_UST_STATEDUMP_PROVIDER
#include <lttng/tracepoint.h>
-TRACEPOINT_EVENT(lttng_ust_statedump, start,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_statedump, start,
LTTNG_UST_TP_ARGS(struct lttng_ust_session *, session),
LTTNG_UST_TP_FIELDS(
ctf_unused(session)
)
)
-TRACEPOINT_EVENT(lttng_ust_statedump, bin_info,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_statedump, bin_info,
LTTNG_UST_TP_ARGS(
struct lttng_ust_session *, session,
void *, baddr,
)
)
-TRACEPOINT_EVENT(lttng_ust_statedump, build_id,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_statedump, build_id,
LTTNG_UST_TP_ARGS(
struct lttng_ust_session *, session,
void *, baddr,
)
)
-TRACEPOINT_EVENT(lttng_ust_statedump, debug_link,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_statedump, debug_link,
LTTNG_UST_TP_ARGS(
struct lttng_ust_session *, session,
void *, baddr,
)
)
-TRACEPOINT_EVENT(lttng_ust_statedump, procname,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_statedump, procname,
LTTNG_UST_TP_ARGS(
struct lttng_ust_session *, session,
char *, name
)
)
-TRACEPOINT_EVENT(lttng_ust_statedump, end,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_statedump, end,
LTTNG_UST_TP_ARGS(struct lttng_ust_session *, session),
LTTNG_UST_TP_FIELDS(
ctf_unused(session)
#define LTTNG_UST_LIB_PROVIDER
#include <lttng/tracepoint.h>
-TRACEPOINT_EVENT(lttng_ust_lib, load,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_lib, load,
LTTNG_UST_TP_ARGS(void *, ip, void *, baddr, const char*, path,
uint64_t, memsz, uint8_t, has_build_id,
uint8_t, has_debug_link),
)
)
-TRACEPOINT_EVENT(lttng_ust_lib, build_id,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_lib, build_id,
LTTNG_UST_TP_ARGS(
void *, ip,
void *, baddr,
)
)
-TRACEPOINT_EVENT(lttng_ust_lib, debug_link,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_lib, debug_link,
LTTNG_UST_TP_ARGS(
void *, ip,
void *, baddr,
)
)
-TRACEPOINT_EVENT(lttng_ust_lib, unload,
+LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_lib, unload,
LTTNG_UST_TP_ARGS(void *, ip, void *, baddr),
LTTNG_UST_TP_FIELDS(
ctf_unused(ip)
#include <lttng/tracepoint.h>
-TRACEPOINT_EVENT(ust_tests_benchmark, tpbench,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_benchmark, tpbench,
LTTNG_UST_TP_ARGS(int, value),
LTTNG_UST_TP_FIELDS(
ctf_integer(int, event, value)
* Enumeration field is used twice to make sure the type declaration
* is entered only once in the metadata file.
*/
-TRACEPOINT_EVENT(ust_tests_ctf_types, tptest,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_ctf_types, tptest,
LTTNG_UST_TP_ARGS(int, anint, int, enumval, int, enumval2),
LTTNG_UST_TP_FIELDS(
ctf_integer(int, intfield, anint)
* Another tracepoint using the types to make sure each type is entered
* only once in the metadata file.
*/
-TRACEPOINT_EVENT(ust_tests_ctf_types, tptest_bis,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_ctf_types, tptest_bis,
LTTNG_UST_TP_ARGS(int, anint, int, enumval),
LTTNG_UST_TP_FIELDS(
ctf_integer(int, intfield, anint)
#include <lttng/tracepoint.h>
#include <stdbool.h>
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple1,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple1,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple2,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple2,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple3,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple3,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple4,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple4,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple5,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple5,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple6,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple6,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple7,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple7,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple8,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple8,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple9,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple9,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple10,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple10,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple11,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple11,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple12,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple12,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple13,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple13,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple14,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple14,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple15,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple15,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple16,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple16,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple17,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple17,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple18,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple18,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple19,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple19,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple20,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple20,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple21,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple21,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple22,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple22,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple23,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple23,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple24,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple24,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple25,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple25,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple26,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple26,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple27,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple27,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple28,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple28,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple29,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple29,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple30,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple30,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple31,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple31,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple32,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple32,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple33,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple33,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple34,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple34,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple35,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple35,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple36,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple36,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple37,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple37,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple38,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple38,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple39,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple39,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
-TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple40,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello_many, tptest_simple40,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
)
)
-TRACEPOINT_EVENT(ust_tests_hello, tptest,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello, tptest,
LTTNG_UST_TP_ARGS(int, anint, int, netint, long *, values,
char *, text, size_t, textlen,
double, doublearg, float, floatarg,
)
)
-TRACEPOINT_EVENT(ust_tests_hello, tptest_sighandler,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello, tptest_sighandler,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
#include <stdbool.h>
#include <stddef.h>
-TRACEPOINT_EVENT(ust_tests_hello, tptest,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello, tptest,
LTTNG_UST_TP_ARGS(int, anint, int, netint, long *, values,
char *, text, size_t, textlen,
double, doublearg, float, floatarg,
)
)
-TRACEPOINT_EVENT(ust_tests_hello, tptest_sighandler,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello, tptest_sighandler,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
#include <lttng/tracepoint.h>
-TRACEPOINT_EVENT(ust_tests_sameline, event1,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_sameline, event1,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
TRACEPOINT_LOGLEVEL(ust_tests_sameline, event1, TRACE_CRIT)
-TRACEPOINT_EVENT(ust_tests_sameline, event2,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_sameline, event2,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
#include <stddef.h>
#include <stdbool.h>
-TRACEPOINT_EVENT(ust_tests_hello, tptest,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello, tptest,
LTTNG_UST_TP_ARGS(int, anint, int, netint, long *, values,
char *, text, size_t, textlen,
double, doublearg, float, floatarg,
)
)
-TRACEPOINT_EVENT(ust_tests_hello, tptest_sighandler,
+LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello, tptest_sighandler,
LTTNG_UST_TP_ARGS(),
LTTNG_UST_TP_FIELDS()
)
FILE_TPL = """
#define TRACEPOINT_CREATE_PROBES
/*
- * The header containing our TRACEPOINT_EVENTs.
+ * The header containing our LTTNG_UST_TRACEPOINT_EVENTs.
*/
#define TRACEPOINT_DEFINE
#include "{headerFilename}"
cleantext = re.sub("\s*", "", nolinecomment)
# Remove multine C style comments
nocomment = re.sub("/\*.*?\*/", "", cleantext)
- entries = re.split("TRACEPOINT_.*?", nocomment)
+ entries = re.split("LTTNG_UST_TRACEPOINT_.*?", nocomment)
for entry in entries:
if entry != '':
When using the -o option, the OUTPUT_FILE must end with either .h, .c or .o
The -o option can be repeated multiple times.
- The template file must contains TRACEPOINT_EVENT and TRACEPOINT_LOGLEVEL
+ The template file must contains LTTNG_UST_TRACEPOINT_EVENT and TRACEPOINT_LOGLEVEL
as per defined in the lttng/tracepoint.h file.
See the lttng-ust(3) man page for more details on the format.
"""