dtrace: enable uv's probes if enabled
authorTimothy J Fontaine <tjfontaine@gmail.com>
Tue, 16 Apr 2013 23:18:07 +0000 (16:18 -0700)
committerTimothy J Fontaine <tjfontaine@gmail.com>
Wed, 15 May 2013 22:07:53 +0000 (15:07 -0700)
configure
node.gyp

index 87b88e5..7fb2588 100755 (executable)
--- a/configure
+++ b/configure
@@ -464,6 +464,8 @@ def configure_node(o):
   # SunOS, and we haven't implemented it.)
   if sys.platform.startswith('sunos') or sys.platform.startswith('darwin'):
     o['variables']['node_use_dtrace'] = b(not options.without_dtrace)
+    o['variables']['uv_use_dtrace'] = o['variables']['node_use_dtrace']
+    o['variables']['uv_parent_path'] = '/deps/uv/'
   elif sys.platform.startswith('linux'):
     o['variables']['node_use_dtrace'] = 'false'
     o['variables']['node_use_systemtap'] = b(options.with_dtrace)
index bb183db..6acb18a 100644 (file)
--- a/node.gyp
+++ b/node.gyp
             {
               'action_name': 'node_dtrace_provider_o',
               'inputs': [
-                'src/node_provider.d',
-                '<(PRODUCT_DIR)/obj.target/node/src/node_dtrace.o'
+                '<(PRODUCT_DIR)/obj.target/libuv/deps/uv/src/unix/core.o',
+                '<(PRODUCT_DIR)/obj.target/node/src/node_dtrace.o',
               ],
               'outputs': [
                 '<(PRODUCT_DIR)/obj.target/node/src/node_dtrace_provider.o'
               ],
-              'action': [ 'dtrace', '-G', '-xnolibs', '-s', '<@(_inputs)',
+              'action': [ 'dtrace', '-G', '-xnolibs', '-s', 'src/node_provider.d',
+                '-s', 'deps/uv/src/unix/uv-dtrace.d', '<@(_inputs)',
                 '-o', '<@(_outputs)' ]
             }
           ]