summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
authorGlen Keane <glenkeane.94@gmail.com>2015-01-22 12:35:16 +0000
committerBen Noordhuis <info@bnoordhuis.nl>2015-02-09 18:06:57 +0100
commit5e825d1073b57a87fc9a77751ed3e21c86970082 (patch)
tree1236727442096918822cbf47516c43ec15264889 /node.gyp
parentb677b844fc1de328a0f2b0151bdfc045cb5d0c81 (diff)
downloadnodejs-5e825d1073b57a87fc9a77751ed3e21c86970082.tar.gz
nodejs-5e825d1073b57a87fc9a77751ed3e21c86970082.tar.bz2
nodejs-5e825d1073b57a87fc9a77751ed3e21c86970082.zip
tracing: add lttng support for tracing on linux
This commit adds the ability to enable userspace tracing with lttng in io.js. It adds tracepoints for all the equivalent dtrace and ETW tracepoints. To use these tracepoints enable --with-lttng on linux. PR-URL: https://github.com/iojs/io.js/pull/702 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Ryan Graham <ryan@strongloop.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp12
1 files changed, 12 insertions, 0 deletions
diff --git a/node.gyp b/node.gyp
index 2874f1309..8506b2868 100644
--- a/node.gyp
+++ b/node.gyp
@@ -2,6 +2,7 @@
'variables': {
'v8_use_snapshot%': 'false',
'node_use_dtrace%': 'false',
+ 'node_use_lttng%': 'false',
'node_use_etw%': 'false',
'node_use_perfctr%': 'false',
'node_has_winsdk%': 'false',
@@ -260,6 +261,14 @@
}
] ]
} ],
+ [ 'node_use_lttng=="true"', {
+ 'defines': [ 'HAVE_LTTNG=1' ],
+ 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
+ 'libraries': [ '-llttng-ust' ],
+ 'sources': [
+ 'src/node_lttng.cc'
+ ],
+ } ],
[ 'node_use_mdb=="true"', {
'dependencies': [ 'node_mdb' ],
'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
@@ -450,6 +459,9 @@
[ 'node_use_dtrace=="false" and node_use_etw=="false"', {
'inputs': [ 'src/notrace_macros.py' ]
}],
+ ['node_use_lttng=="false"', {
+ 'inputs': [ 'src/nolttng_macros.py' ]
+ }],
[ 'node_use_perfctr=="false"', {
'inputs': [ 'src/perfctr_macros.py' ]
}]