diff --git a/src/node_lttng.cc b/src/node_lttng.cc index 1f6f4322a5fe79..14cdb4e5952fd7 100644 --- a/src/node_lttng.cc +++ b/src/node_lttng.cc @@ -1,4 +1,4 @@ -#include "util.h" +#include "node_internals.h" #ifdef HAVE_LTTNG #include "node_lttng.h" @@ -247,7 +247,7 @@ void InitLTTNG(Environment* env, Local target) { #undef NODE_PROBE }; - for (size_t i = 0; i < arraysize(tab); i++) { + for (size_t i = 0; i < node::arraysize(tab); i++) { Local key = OneByteString(env->isolate(), tab[i].name); Local val = env->NewFunctionTemplate(tab[i].func)->GetFunction(); target->Set(key, val); diff --git a/src/node_lttng_tp.h b/src/node_lttng_tp.h index b529bfad5e4b58..704c43bbf2bc8e 100644 --- a/src/node_lttng_tp.h +++ b/src/node_lttng_tp.h @@ -25,6 +25,7 @@ TRACEPOINT_EVENT( ctf_string(url, url) ctf_string(method, method) ctf_string(forwardedFor, forwardedFor)) +) TRACEPOINT_EVENT( node, @@ -37,6 +38,7 @@ TRACEPOINT_EVENT( ctf_integer(int, port, port) ctf_string(remote, remote) ctf_integer(int, fd, fd)) +) TRACEPOINT_EVENT( node, @@ -47,6 +49,7 @@ TRACEPOINT_EVENT( TP_FIELDS( ctf_string(url, url) ctf_string(method, method)) +) TRACEPOINT_EVENT( node, @@ -59,6 +62,7 @@ TRACEPOINT_EVENT( ctf_integer(int, port, port) ctf_string(remote, remote) ctf_integer(int, fd, fd)) +) TRACEPOINT_EVENT( node, @@ -73,6 +77,7 @@ TRACEPOINT_EVENT( ctf_integer(int, port, port) ctf_integer(int, fd, fd) ctf_integer(int, buffered, buffered)) +) TRACEPOINT_EVENT( node, @@ -85,6 +90,7 @@ TRACEPOINT_EVENT( ctf_string(remote, remote) ctf_integer(int, port, port) ctf_integer(int, fd, fd)) +) TRACEPOINT_EVENT( node, @@ -106,6 +112,7 @@ TRACEPOINT_EVENT( TP_FIELDS( ctf_string(gctype, gctype) ctf_string(gcflags, gcflags)) +) #endif /* __NODE_LTTNG_TP_H */