Skip to content

Commit ca4fb08

Browse files
bnoordhuisFishrock123
authored andcommitted
src: lint node_lttng_tp.h
PR-URL: #7462 Reviewed-By: Trevor Norris <trev.norris@gmail.com>
1 parent da0ebf6 commit ca4fb08

File tree

2 files changed

+21
-41
lines changed

2 files changed

+21
-41
lines changed

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -671,9 +671,7 @@ jslint-ci:
671671
tools/eslint-rules tools/jslint.js
672672

673673
CPPLINT_EXCLUDE ?=
674-
CPPLINT_EXCLUDE += src/node_lttng.cc
675674
CPPLINT_EXCLUDE += src/node_root_certs.h
676-
CPPLINT_EXCLUDE += src/node_lttng_tp.h
677675
CPPLINT_EXCLUDE += src/queue.h
678676
CPPLINT_EXCLUDE += src/tree.h
679677
CPPLINT_EXCLUDE += src/v8abbr.h

src/node_lttng_tp.h

Lines changed: 21 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef SRC_NODE_LTTNG_TP_H_
2+
#define SRC_NODE_LTTNG_TP_H_
3+
14
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
25

36
#undef TRACEPOINT_PROVIDER
@@ -17,57 +20,45 @@ TRACEPOINT_EVENT(
1720
TP_ARGS(
1821
const char*, url,
1922
const char*, method,
20-
const char*, forwardedFor
21-
),
23+
const char*, forwardedFor),
2224
TP_FIELDS(
2325
ctf_string(url, url)
2426
ctf_string(method, method)
25-
ctf_string(forwardedFor, forwardedFor)
26-
)
27-
)
27+
ctf_string(forwardedFor, forwardedFor))
2828

2929
TRACEPOINT_EVENT(
3030
node,
3131
http_server_response,
3232
TP_ARGS(
3333
int, port,
3434
const char*, remote,
35-
int, fd
36-
),
35+
int, fd),
3736
TP_FIELDS(
3837
ctf_integer(int, port, port)
3938
ctf_string(remote, remote)
40-
ctf_integer(int, fd, fd)
41-
)
42-
)
39+
ctf_integer(int, fd, fd))
4340

4441
TRACEPOINT_EVENT(
4542
node,
4643
http_client_request,
4744
TP_ARGS(
4845
const char*, url,
49-
const char*, method
50-
),
46+
const char*, method),
5147
TP_FIELDS(
5248
ctf_string(url, url)
53-
ctf_string(method, method)
54-
)
55-
)
49+
ctf_string(method, method))
5650

5751
TRACEPOINT_EVENT(
5852
node,
5953
http_client_response,
6054
TP_ARGS(
6155
int, port,
6256
const char*, remote,
63-
int, fd
64-
),
57+
int, fd),
6558
TP_FIELDS(
6659
ctf_integer(int, port, port)
6760
ctf_string(remote, remote)
68-
ctf_integer(int, fd, fd)
69-
)
70-
)
61+
ctf_integer(int, fd, fd))
7162

7263
TRACEPOINT_EVENT(
7364
node,
@@ -76,59 +67,50 @@ TRACEPOINT_EVENT(
7667
const char*, remote,
7768
int, port,
7869
int, fd,
79-
int, buffered
80-
),
70+
int, buffered),
8171
TP_FIELDS(
8272
ctf_string(remote, remote)
8373
ctf_integer(int, port, port)
8474
ctf_integer(int, fd, fd)
85-
ctf_integer(int, buffered, buffered)
86-
)
87-
)
75+
ctf_integer(int, buffered, buffered))
8876

8977
TRACEPOINT_EVENT(
9078
node,
9179
net_stream_end,
9280
TP_ARGS(
9381
const char*, remote,
9482
int, port,
95-
int, fd
96-
),
83+
int, fd),
9784
TP_FIELDS(
9885
ctf_string(remote, remote)
9986
ctf_integer(int, port, port)
100-
ctf_integer(int, fd, fd)
101-
)
102-
)
87+
ctf_integer(int, fd, fd))
10388

10489
TRACEPOINT_EVENT(
10590
node,
10691
gc_start,
10792
TP_ARGS(
10893
const char*, gctype,
109-
const char*, gcflags
110-
),
94+
const char*, gcflags),
11195
TP_FIELDS(
11296
ctf_string(gctype, gctype)
113-
ctf_string(gcflags, gcflags)
114-
)
97+
ctf_string(gcflags, gcflags))
11598
)
11699

117100
TRACEPOINT_EVENT(
118101
node,
119102
gc_done,
120103
TP_ARGS(
121104
const char*, gctype,
122-
const char*, gcflags
123-
),
105+
const char*, gcflags),
124106
TP_FIELDS(
125107
ctf_string(gctype, gctype)
126-
ctf_string(gcflags, gcflags)
127-
)
128-
)
108+
ctf_string(gcflags, gcflags))
129109

130110
#endif /* __NODE_LTTNG_TP_H */
131111

132112
#include <lttng/tracepoint-event.h>
133113

134114
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
115+
116+
#endif // SRC_NODE_LTTNG_TP_H_

0 commit comments

Comments
 (0)