* in their file should include this file. The following are macros that the
* trace file may define:
*
- * TRACEPOINT_SYSTEM defines the system the tracepoint is for:
+ * TRACEPOINT_PROVIDER defines the provider the tracepoint is for:
* < [com_company_]project_[component_] >
*
* TRACEPOINT_INCLUDE_FILE if the file name is something other than
- * TRACEPOINT_SYSTEM.h. This macro may be defined to tell
+ * TRACEPOINT_PROVIDER.h. This macro may be defined to tell
* define_trace.h what file to include. Note, leave off the ".h".
*
* TRACEPOINT_INCLUDE_PATH if the path is something other than within
#undef __TRACEPOINT_INCLUDE
#ifndef TRACEPOINT_INCLUDE_FILE
-# define TRACEPOINT_INCLUDE_FILE TRACEPOINT_SYSTEM
+# define TRACEPOINT_INCLUDE_FILE TRACEPOINT_PROVIDER
# define UNDEF_TRACEPOINT_INCLUDE_FILE
#endif
#ifndef TRACEPOINT_INCLUDE_PATH
-# define __TRACEPOINT_INCLUDE(system) <tracepoint/system.h>
+# define __TRACEPOINT_INCLUDE(provider) <tracepoint/provider.h>
# define UNDEF_TRACEPOINT_INCLUDE_PATH
#else
-# define __TRACEPOINT_INCLUDE(system) \
- __tp_stringify(TRACEPOINT_INCLUDE_PATH/system.h)
+# define __TRACEPOINT_INCLUDE(provider) \
+ __tp_stringify(TRACEPOINT_INCLUDE_PATH/provider.h)
#endif
-# define TRACEPOINT_INCLUDE(system) __TRACEPOINT_INCLUDE(system)
+# define TRACEPOINT_INCLUDE(provider) __TRACEPOINT_INCLUDE(provider)
/* Let the trace headers be reread */
#define TRACEPOINT_HEADER_MULTI_READ
* Do _NOT_ add comma (,) nor semicolon (;) after the TRACEPOINT_EVENT
* declaration.
*
- * The TRACEPOINT_SYSTEM must be defined when declaring a
+ * The TRACEPOINT_PROVIDER must be defined when declaring a
* TRACEPOINT_EVENT. See ust/tracepoint-event.h for information about
* usage of other macros controlling TRACEPOINT_EVENT.
*/
* TRACEPOINT_LOGLEVEL(< [com_company_]project[_component] >, < event >,
* < loglevel_name >)
*
- * The TRACEPOINT_SYSTEM must be defined when declaring a
+ * The TRACEPOINT_PROVIDER must be defined when declaring a
* TRACEPOINT_LOGLEVEL_ENUM and TRACEPOINT_LOGLEVEL. The tracepoint
- * loglevel enumeration apply to the entire TRACEPOINT_SYSTEM. Only one
+ * loglevel enumeration apply to the entire TRACEPOINT_PROVIDER. Only one
* tracepoint loglevel enumeration should be declared per tracepoint
- * system.
+ * provider.
*/
#define TRACEPOINT_LOGLEVEL_ENUM()
#define TRACEPOINT_EVENT_INSTANCE(_provider, _template, _name, _proto, _args) \
TRACEPOINT_EVENT_INSTANCE_NOARGS(_provider, _template, _name)
-#define TP_ID1(_token, _system) _token##_system
-#define TP_ID(_token, _system) TP_ID1(_token, _system)
+#define TP_ID1(_token, _provider) _token##_provider
+#define TP_ID(_token, _provider) TP_ID1(_token, _provider)
-static const struct lttng_event_desc TP_ID(__event_desc___, TRACEPOINT_SYSTEM)[] = {
+static const struct lttng_event_desc TP_ID(__event_desc___, TRACEPOINT_PROVIDER)[] = {
#include TRACEPOINT_INCLUDE(TRACEPOINT_INCLUDE_FILE)
};
* Create a toplevel descriptor for the whole probe.
*/
-#define TP_ID1(_token, _system) _token##_system
-#define TP_ID(_token, _system) TP_ID1(_token, _system)
+#define TP_ID1(_token, _provider) _token##_provider
+#define TP_ID(_token, _provider) TP_ID1(_token, _provider)
/* non-const because list head will be modified when registered. */
-static struct lttng_probe_desc TP_ID(__probe_desc___, TRACEPOINT_SYSTEM) = {
- .event_desc = TP_ID(__event_desc___, TRACEPOINT_SYSTEM),
- .nr_events = _TP_ARRAY_SIZE(TP_ID(__event_desc___, TRACEPOINT_SYSTEM)),
+static struct lttng_probe_desc TP_ID(__probe_desc___, TRACEPOINT_PROVIDER) = {
+ .event_desc = TP_ID(__event_desc___, TRACEPOINT_PROVIDER),
+ .nr_events = _TP_ARRAY_SIZE(TP_ID(__event_desc___, TRACEPOINT_PROVIDER)),
};
#undef TP_ID1
/* Reset all macros within TRACEPOINT_EVENT */
#include <lttng/ust-tracepoint-event-reset.h>
-#define TP_ID1(_token, _system) _token##_system
-#define TP_ID(_token, _system) TP_ID1(_token, _system)
+#define TP_ID1(_token, _provider) _token##_provider
+#define TP_ID(_token, _provider) TP_ID1(_token, _provider)
static void __attribute__((constructor))
-TP_ID(__lttng_events_init__, TRACEPOINT_SYSTEM)(void)
+TP_ID(__lttng_events_init__, TRACEPOINT_PROVIDER)(void)
{
int ret;
- ret = ltt_probe_register(&TP_ID(__probe_desc___, TRACEPOINT_SYSTEM));
+ ret = ltt_probe_register(&TP_ID(__probe_desc___, TRACEPOINT_PROVIDER));
assert(!ret);
}
static void __attribute__((destructor))
-TP_ID(__lttng_events_exit__, TRACEPOINT_SYSTEM)(void)
+TP_ID(__lttng_events_exit__, TRACEPOINT_PROVIDER)(void)
{
- ltt_probe_unregister(&TP_ID(__probe_desc___, TRACEPOINT_SYSTEM));
+ ltt_probe_unregister(&TP_ID(__probe_desc___, TRACEPOINT_PROVIDER));
}
#undef TP_ID1
-#undef TRACEPOINT_SYSTEM
-#define TRACEPOINT_SYSTEM ust_java
+#undef TRACEPOINT_PROVIDER
+#define TRACEPOINT_PROVIDER lttng_ust_java
-#if !defined(_TRACEPOINT_UST_JAVA_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
-#define _TRACEPOINT_UST_JAVA_H
+#if !defined(_TRACEPOINT_LTTNG_UST_JAVA_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#define _TRACEPOINT_LTTNG_UST_JAVA_H
/*
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
#include <lttng/tracepoint.h>
-TRACEPOINT_EVENT(lttng_ust_java_string,
+TRACEPOINT_EVENT(lttng_ust_java, string,
TP_PROTO(const char *name, const char *args),
TP_VARS(name, args),
TP_FIELDS(
)
)
-#endif /* _TRACEPOINT_UST_JAVA_H */
+#endif /* _TRACEPOINT_LTTNG_UST_JAVA_H */
#undef TRACEPOINT_INCLUDE_PATH
#define TRACEPOINT_INCLUDE_PATH .
struct ltt_channel *channel = objd_private(channel_objd);
static struct lttng_ust_event metadata_params = {
.instrumentation = LTTNG_UST_TRACEPOINT,
- .name = "lttng:metadata",
+ .name = "lttng_ust:metadata",
};
struct ltt_event *event;
if (!list->iter.tracepoint) {
tp_list_entry[0] = '\0'; /* end of list */
} else {
- if (!strcmp((*list->iter.tracepoint)->name, "lttng:metadata"))
+ if (!strcmp((*list->iter.tracepoint)->name,
+ "lttng_ust:metadata"))
goto next;
memcpy(tp_list_entry, (*list->iter.tracepoint)->name,
LTTNG_UST_SYM_NAME_LEN);
-#undef TRACEPOINT_SYSTEM
-#define TRACEPOINT_SYSTEM lttng_ust
+#undef TRACEPOINT_PROVIDER
+#define TRACEPOINT_PROVIDER lttng_ust
#if !defined(_TRACEPOINT_LTTNG_UST_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_LTTNG_UST_H
#include <lttng/tracepoint.h>
-TRACEPOINT_EVENT(lttng, metadata,
+TRACEPOINT_EVENT(lttng_ust, metadata,
TP_PROTO(const char *str),
-#undef TRACEPOINT_SYSTEM
-#define TRACEPOINT_SYSTEM ust_tests_fork
+#undef TRACEPOINT_PROVIDER
+#define TRACEPOINT_PROVIDER ust_tests_fork
#if !defined(_TRACEPOINT_UST_TESTS_FORK_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_UST_TESTS_FORK_H
-#undef TRACEPOINT_SYSTEM
-#define TRACEPOINT_SYSTEM ust_tests_hello
+#undef TRACEPOINT_PROVIDER
+#define TRACEPOINT_PROVIDER ust_tests_hello
#if !defined(_TRACEPOINT_UST_TESTS_HELLO_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define _TRACEPOINT_UST_TESTS_HELLO_H