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+
16#undef TRACEPOINT_PROVIDER
27#define TRACEPOINT_PROVIDER node
38
@@ -15,57 +20,45 @@ TRACEPOINT_EVENT(
1520TP_ARGS (
1621const char * , url ,
1722const char * , method ,
18- const char * , forwardedFor
19- ),
23+ const char * , forwardedFor ),
2024TP_FIELDS (
2125ctf_string (url , url )
2226ctf_string (method , method )
23- ctf_string (forwardedFor , forwardedFor )
24- )
25- )
27+ ctf_string (forwardedFor , forwardedFor ))
2628
2729TRACEPOINT_EVENT (
2830node ,
2931http_server_response ,
3032TP_ARGS (
3133int , port ,
3234const char * , remote ,
33- int , fd
34- ),
35+ int , fd ),
3536TP_FIELDS (
3637ctf_integer (int , port , port )
3738ctf_string (remote , remote )
38- ctf_integer (int , fd , fd )
39- )
40- )
39+ ctf_integer (int , fd , fd ))
4140
4241TRACEPOINT_EVENT (
4342node ,
4443http_client_request ,
4544TP_ARGS (
4645const char * , url ,
47- const char * , method
48- ),
46+ const char * , method ),
4947TP_FIELDS (
5048ctf_string (url , url )
51- ctf_string (method , method )
52- )
53- )
49+ ctf_string (method , method ))
5450
5551TRACEPOINT_EVENT (
5652node ,
5753http_client_response ,
5854TP_ARGS (
5955int , port ,
6056const char * , remote ,
61- int , fd
62- ),
57+ int , fd ),
6358TP_FIELDS (
6459ctf_integer (int , port , port )
6560ctf_string (remote , remote )
66- ctf_integer (int , fd , fd )
67- )
68- )
61+ ctf_integer (int , fd , fd ))
6962
7063TRACEPOINT_EVENT (
7164node ,
@@ -74,57 +67,50 @@ TRACEPOINT_EVENT(
7467const char * , remote ,
7568int , port ,
7669int , fd ,
77- int , buffered
78- ),
70+ int , buffered ),
7971TP_FIELDS (
8072ctf_string (remote , remote )
8173ctf_integer (int , port , port )
8274ctf_integer (int , fd , fd )
83- ctf_integer (int , buffered , buffered )
84- )
85- )
75+ ctf_integer (int , buffered , buffered ))
8676
8777TRACEPOINT_EVENT (
8878node ,
8979net_stream_end ,
9080TP_ARGS (
9181const char * , remote ,
9282int , port ,
93- int , fd
94- ),
83+ int , fd ),
9584TP_FIELDS (
9685ctf_string (remote , remote )
9786ctf_integer (int , port , port )
98- ctf_integer (int , fd , fd )
99- )
100- )
87+ ctf_integer (int , fd , fd ))
10188
10289TRACEPOINT_EVENT (
10390node ,
10491gc_start ,
10592TP_ARGS (
10693const char * , gctype ,
107- const char * , gcflags
108- ),
94+ const char * , gcflags ),
10995TP_FIELDS (
11096ctf_string (gctype , gctype )
111- ctf_string (gcflags , gcflags )
112- )
97+ ctf_string (gcflags , gcflags ))
11398)
11499
115100TRACEPOINT_EVENT (
116101node ,
117102gc_done ,
118103TP_ARGS (
119104const char * , gctype ,
120- const char * , gcflags
121- ),
105+ const char * , gcflags ),
122106TP_FIELDS (
123107ctf_string (gctype , gctype )
124- ctf_string (gcflags , gcflags )
125- )
126- )
108+ ctf_string (gcflags , gcflags ))
127109
128110#endif /* __NODE_LTTNG_TP_H */
129111
130112#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