projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Build TRACEPOINT_EVENT integer type
[lttng-ust.git]
/
tests
/
hello
/
tp.h
diff --git
a/tests/hello/tp.h
b/tests/hello/tp.h
index d6d8d99bf39ee7bc7cf58d64c2af5c6ea48ff420..7fa16e904c835ac5145d4e8d4aed459e7786bb6a 100644
(file)
--- a/
tests/hello/tp.h
+++ b/
tests/hello/tp.h
@@
-1,8
+1,8
@@
-#undef TRACE_SYSTEM
-#define TRACE_SYSTEM tp
+#undef TRACE
POINT
_SYSTEM
+#define TRACE
POINT
_SYSTEM tp
-#if !defined(_TRACE
_TP_H) || defined(TRACE
_HEADER_MULTI_READ)
-#define _TRACE_TP_H
+#if !defined(_TRACE
POINT_TP_H) || defined(TRACEPOINT
_HEADER_MULTI_READ)
+#define _TRACE
POINT
_TP_H
/*
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
/*
* Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
@@
-24,20
+24,22
@@
#include <ust/tracepoint.h>
#include <ust/tracepoint.h>
-TRACEPOINT_EVENT(hello_tptest,
- TP_PROTO(int anint),
- TP_ARGS(anint),
- TP_FIELDS());
+TRACEPOINT_EVENT(ust_tests_hello_tptest,
+ TP_PROTO(int anint),
+ TP_ARGS(anint),
+ TP_FIELDS(
+ ctf_integer(int, intfield, anint)
+ ))
-TRACEPOINT_EVENT_NOARGS(
hello_tptest2
,
- TP_FIELDS())
;
+TRACEPOINT_EVENT_NOARGS(
ust_tests_hello_tptest_sighandler
,
+ TP_FIELDS())
-#endif /* _TRACE_TP_H */
+#endif /* _TRACE
POINT
_TP_H */
-#undef TRACE_INCLUDE_PATH
-#define TRACE_INCLUDE_PATH .
-#undef TRACE_INCLUDE_FILE
-#define TRACE_INCLUDE_FILE tp
+#undef TRACE
POINT
_INCLUDE_PATH
+#define TRACE
POINT
_INCLUDE_PATH .
+#undef TRACE
POINT
_INCLUDE_FILE
+#define TRACE
POINT
_INCLUDE_FILE tp
/* This part must be outside protection */
/* This part must be outside protection */
-#include <ust/
define_trace
.h>
+#include <ust/
tracepoint-event
.h>
This page took
0.024915 seconds
and
4
git commands to generate.