Node.js  v8.x
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine
node_lttng_tp.h
Go to the documentation of this file.
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 
6 #undef TRACEPOINT_PROVIDER
7 #define TRACEPOINT_PROVIDER node
8 
9 #undef TRACEPOINT_INCLUDE
10 #define TRACEPOINT_INCLUDE "./node_lttng_tp.h"
11 
12 #if !defined(__NODE_LTTNG_TP_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
13 #define __NODE_LTTNG_TP_H
14 
15 #include <lttng/tracepoint.h>
16 
17 TRACEPOINT_EVENT(
18  node,
19  http_server_request,
20  TP_ARGS(
21  const char*, url,
22  const char*, method,
23  const char*, forwardedFor),
24  TP_FIELDS(
25  ctf_string(url, url)
26  ctf_string(method, method)
27  ctf_string(forwardedFor, forwardedFor))
28 
29 TRACEPOINT_EVENT(
30  node,
31  http_server_response,
32  TP_ARGS(
33  int, port,
34  const char*, remote,
35  int, fd),
36  TP_FIELDS(
37  ctf_integer(int, port, port)
38  ctf_string(remote, remote)
39  ctf_integer(int, fd, fd))
40 
41 TRACEPOINT_EVENT(
42  node,
43  http_client_request,
44  TP_ARGS(
45  const char*, url,
46  const char*, method),
47  TP_FIELDS(
48  ctf_string(url, url)
49  ctf_string(method, method))
50 
51 TRACEPOINT_EVENT(
52  node,
53  http_client_response,
54  TP_ARGS(
55  int, port,
56  const char*, remote,
57  int, fd),
58  TP_FIELDS(
59  ctf_integer(int, port, port)
60  ctf_string(remote, remote)
61  ctf_integer(int, fd, fd))
62 
63 TRACEPOINT_EVENT(
64  node,
65  net_server_connection,
66  TP_ARGS(
67  const char*, remote,
68  int, port,
69  int, fd,
70  int, buffered),
71  TP_FIELDS(
72  ctf_string(remote, remote)
73  ctf_integer(int, port, port)
74  ctf_integer(int, fd, fd)
75  ctf_integer(int, buffered, buffered))
76 
77 TRACEPOINT_EVENT(
78  node,
79  net_stream_end,
80  TP_ARGS(
81  const char*, remote,
82  int, port,
83  int, fd),
84  TP_FIELDS(
85  ctf_string(remote, remote)
86  ctf_integer(int, port, port)
87  ctf_integer(int, fd, fd))
88 
89 TRACEPOINT_EVENT(
90  node,
91  gc_start,
92  TP_ARGS(
93  const char*, gctype,
94  const char*, gcflags),
95  TP_FIELDS(
96  ctf_string(gctype, gctype)
97  ctf_string(gcflags, gcflags))
98 )
99 
100 TRACEPOINT_EVENT(
101  node,
102  gc_done,
103  TP_ARGS(
104  const char*, gctype,
105  const char*, gcflags),
106  TP_FIELDS(
107  ctf_string(gctype, gctype)
108  ctf_string(gcflags, gcflags))
109 
110 #endif /* __NODE_LTTNG_TP_H */
111 
112 #include <lttng/tracepoint-event.h>
113 
114 #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
115 
116 #endif // SRC_NODE_LTTNG_TP_H_
forwardedFor
Definition: node.d:212
method
Definition: node.d:195