1
+ #ifndef SRC_NODE_LTTNG_TP_H_
2
+ #define SRC_NODE_LTTNG_TP_H_
3
+
4
+ #if defined(NODE_WANT_INTERNALS ) && NODE_WANT_INTERNALS
5
+
1
6
#undef TRACEPOINT_PROVIDER
2
7
#define TRACEPOINT_PROVIDER node
3
8
@@ -15,57 +20,45 @@ TRACEPOINT_EVENT(
15
20
TP_ARGS (
16
21
const char * , url ,
17
22
const char * , method ,
18
- const char * , forwardedFor
19
- ),
23
+ const char * , forwardedFor ),
20
24
TP_FIELDS (
21
25
ctf_string (url , url )
22
26
ctf_string (method , method )
23
- ctf_string (forwardedFor , forwardedFor )
24
- )
25
- )
27
+ ctf_string (forwardedFor , forwardedFor ))
26
28
27
29
TRACEPOINT_EVENT (
28
30
node ,
29
31
http_server_response ,
30
32
TP_ARGS (
31
33
int , port ,
32
34
const char * , remote ,
33
- int , fd
34
- ),
35
+ int , fd ),
35
36
TP_FIELDS (
36
37
ctf_integer (int , port , port )
37
38
ctf_string (remote , remote )
38
- ctf_integer (int , fd , fd )
39
- )
40
- )
39
+ ctf_integer (int , fd , fd ))
41
40
42
41
TRACEPOINT_EVENT (
43
42
node ,
44
43
http_client_request ,
45
44
TP_ARGS (
46
45
const char * , url ,
47
- const char * , method
48
- ),
46
+ const char * , method ),
49
47
TP_FIELDS (
50
48
ctf_string (url , url )
51
- ctf_string (method , method )
52
- )
53
- )
49
+ ctf_string (method , method ))
54
50
55
51
TRACEPOINT_EVENT (
56
52
node ,
57
53
http_client_response ,
58
54
TP_ARGS (
59
55
int , port ,
60
56
const char * , remote ,
61
- int , fd
62
- ),
57
+ int , fd ),
63
58
TP_FIELDS (
64
59
ctf_integer (int , port , port )
65
60
ctf_string (remote , remote )
66
- ctf_integer (int , fd , fd )
67
- )
68
- )
61
+ ctf_integer (int , fd , fd ))
69
62
70
63
TRACEPOINT_EVENT (
71
64
node ,
@@ -74,57 +67,50 @@ TRACEPOINT_EVENT(
74
67
const char * , remote ,
75
68
int , port ,
76
69
int , fd ,
77
- int , buffered
78
- ),
70
+ int , buffered ),
79
71
TP_FIELDS (
80
72
ctf_string (remote , remote )
81
73
ctf_integer (int , port , port )
82
74
ctf_integer (int , fd , fd )
83
- ctf_integer (int , buffered , buffered )
84
- )
85
- )
75
+ ctf_integer (int , buffered , buffered ))
86
76
87
77
TRACEPOINT_EVENT (
88
78
node ,
89
79
net_stream_end ,
90
80
TP_ARGS (
91
81
const char * , remote ,
92
82
int , port ,
93
- int , fd
94
- ),
83
+ int , fd ),
95
84
TP_FIELDS (
96
85
ctf_string (remote , remote )
97
86
ctf_integer (int , port , port )
98
- ctf_integer (int , fd , fd )
99
- )
100
- )
87
+ ctf_integer (int , fd , fd ))
101
88
102
89
TRACEPOINT_EVENT (
103
90
node ,
104
91
gc_start ,
105
92
TP_ARGS (
106
93
const char * , gctype ,
107
- const char * , gcflags
108
- ),
94
+ const char * , gcflags ),
109
95
TP_FIELDS (
110
96
ctf_string (gctype , gctype )
111
- ctf_string (gcflags , gcflags )
112
- )
97
+ ctf_string (gcflags , gcflags ))
113
98
)
114
99
115
100
TRACEPOINT_EVENT (
116
101
node ,
117
102
gc_done ,
118
103
TP_ARGS (
119
104
const char * , gctype ,
120
- const char * , gcflags
121
- ),
105
+ const char * , gcflags ),
122
106
TP_FIELDS (
123
107
ctf_string (gctype , gctype )
124
- ctf_string (gcflags , gcflags )
125
- )
126
- )
108
+ ctf_string (gcflags , gcflags ))
127
109
128
110
#endif /* __NODE_LTTNG_TP_H */
129
111
130
112
#include < lttng /tracepoint - event .h >
113
+
114
+ #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
115
+
116
+ #endif // SRC_NODE_LTTNG_TP_H_
0 commit comments