lttng_ust.h
Go to the documentation of this file.
1 
2 #undef TRACEPOINT_PROVIDER
3 #define TRACEPOINT_PROVIDER orocos_rtt
4 
5 #if !defined(_LTTNG_UST_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
6 #define _LTTNG_UST_H
7 
8 #include <lttng/tracepoint.h>
9 
10 /* Allow to mapping a thread id to a name */
12 (
13  /* provider name */
14  orocos_rtt,
15  /* tracepoint name */
16  thread_init,
17  /* arguments passed to the tracepoint */
18  TP_ARGS(const char *, n),
19  /* the fields */
20  TP_FIELDS
21  (
22  ctf_string(name, n)
23  )
24 )
25 
26 /* Allow to emulate a scope */
28 (
29  /* provider name */
30  orocos_rtt,
31  /* tracepoint name */
33  /* arguments passed to the tracepoint */
34  TP_ARGS(unsigned, v),
35  /* the fields */
36  TP_FIELDS
37  (
38  ctf_integer(unsigned, value, v)
39  )
40 )
41 
42 #ifndef __cplusplus
43 #define TRACEPOINT_CONTEXT(provider, event) \
44  TRACEPOINT_EVENT(provider, event, TP_ARGS(unsigned, v, const char *, s), TP_FIELDS(ctf_string(name, s) ctf_integer(unsigned, on, v)))
45 #else
46 #define TRACEPOINT_CONTEXT(provider, event) \
47  TRACEPOINT_EVENT(provider, event, TP_ARGS(unsigned, v, const char *, s), TP_FIELDS(ctf_string(name, s) ctf_integer(unsigned, on, v))) \
48  struct TracepointContext__##provider__##event { \
49  const char* name; \
50  TracepointContext__##provider__##event(const char* name) \
51  : name(name) \
52  { \
53  tracepoint(provider, event, 1, name); \
54  } \
55  ~TracepointContext__##provider__##event() \
56  { \
57  tracepoint(provider, event, 0, name); \
58  } \
59  };
60 #endif
61 
62 #define TRACEPOINT_NAMED_EVENT(provider, event) \
63  TRACEPOINT_EVENT(provider, event, TP_ARGS(const char *, s), TP_FIELDS(ctf_string(name, s)))
64 
66  orocos_rtt,
68  TP_ARGS(unsigned, v, const char*, s),
69  TP_FIELDS
70  (
71  ctf_string(name, s)
72  ctf_integer(unsigned, flow_status, v)
73  )
74 )
75 
76 /* Triggering from activities */
77 TRACEPOINT_NAMED_EVENT(orocos_rtt, Activity_trigger)
78 TRACEPOINT_NAMED_EVENT(orocos_rtt, InputPort_clear)
79 TRACEPOINT_NAMED_EVENT(orocos_rtt, OutputPort_write)
80 
81 /* Trace state changes in TaskCore */
82 TRACEPOINT_CONTEXT(orocos_rtt, TaskContext_configureHook)
83 TRACEPOINT_CONTEXT(orocos_rtt, TaskContext_startHook)
84 TRACEPOINT_CONTEXT(orocos_rtt, TaskContext_updateHook)
85 TRACEPOINT_CONTEXT(orocos_rtt, TaskContext_errorHook)
86 TRACEPOINT_CONTEXT(orocos_rtt, TaskContext_stopHook)
87 TRACEPOINT_CONTEXT(orocos_rtt, TaskContext_cleanupHook)
88 
89 #define tracepoint_context(provider, event, name) \
90  TracepointContext__##provider__##event __tracepoint_context_##provider__##event(name);
91 
92 #endif /* _LTTNG_UST_H */
93 
94 #undef TRACEPOINT_INCLUDE_FILE
95 #define TRACEPOINT_INCLUDE_FILE ./lttng_ust.h
96 
97 #include <lttng/tracepoint-event.h>
98 
TP_FIELDS(ctf_integer(unsigned, value, v))) TRACEPOINT_EVENT(orocos_rtt
TP_ARGS(unsigned, v)
thread_scope
Definition: lttng_ust.h:32
#define TRACEPOINT_NAMED_EVENT(provider, event)
#define TRACEPOINT_CONTEXT(provider, event)
TRACEPOINT_EVENT(orocos_rtt, thread_init, TP_ARGS(const char *, n), TP_FIELDS(ctf_string(name, n))) TRACEPOINT_EVENT(orocos_rtt
InputPort_read
Definition: lttng_ust.h:67


rtt
Author(s): RTT Developers
autogenerated on Tue Jun 25 2019 19:33:25