summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2022-07-17 18:33:52 +0200
committerGitHub <noreply@github.com>2022-07-17 17:33:52 +0100
commitaa3a572e6bee116cde69508dc29478b40f40551a (patch)
tree8ba8f2359f27dc38644ae1065067d85d9b96a7ea /node.gyp
parent8baf372313a435722783e248ec7a02f02de3f332 (diff)
downloadnode-new-aa3a572e6bee116cde69508dc29478b40f40551a.tar.gz
build: remove dtrace & etw support
There are no clear indicators anyone is using the dtrace USDT probes. ETW support is very intertwined with the dtrace infrastructure. It's not clear if anyone uses ETW so to keep things simple it too is removed. Fixes: https://github.com/nodejs/node/issues/43649 PR-URL: https://github.com/nodejs/node/pull/43652 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp245
1 files changed, 0 insertions, 245 deletions
diff --git a/node.gyp b/node.gyp
index 03f2dbdf94..a5106284fc 100644
--- a/node.gyp
+++ b/node.gyp
@@ -4,8 +4,6 @@
'v8_trace_maps%': 0,
'v8_enable_pointer_compression%': 0,
'v8_enable_31bit_smis_on_64bit_arch%': 0,
- 'node_use_dtrace%': 'false',
- 'node_use_etw%': 'false',
'node_no_browser_globals%': 'false',
'node_snapshot_main%': '',
'node_use_node_snapshot%': 'false',
@@ -236,16 +234,6 @@
'-Wl,--no-whole-archive',
],
}],
- [ 'OS=="win"', {
- 'sources': [ 'src/res/node.rc' ],
- 'conditions': [
- [ 'node_use_etw=="true"', {
- 'sources': [
- 'tools/msvs/genfiles/node_etw_provider.rc'
- ],
- }],
- ],
- }],
],
}],
[ 'node_shared=="true"', {
@@ -755,72 +743,6 @@
'Ws2_32',
],
}],
- [ 'node_use_etw=="true"', {
- 'defines': [ 'HAVE_ETW=1' ],
- 'dependencies': [ 'node_etw' ],
- 'include_dirs': [
- 'src',
- 'tools/msvs/genfiles',
- '<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
- ],
- 'sources': [
- 'src/node_win32_etw_provider.h',
- 'src/node_win32_etw_provider-inl.h',
- 'src/node_win32_etw_provider.cc',
- 'src/node_dtrace.h',
- 'src/node_dtrace.cc',
- 'tools/msvs/genfiles/node_etw_provider.h',
- ],
- 'conditions': [
- ['node_intermediate_lib_type != "static_library"', {
- 'sources': [
- 'tools/msvs/genfiles/node_etw_provider.rc',
- ],
- }],
- ],
- }],
- [ 'node_use_dtrace=="true"', {
- 'defines': [ 'HAVE_DTRACE=1' ],
- 'dependencies': [
- 'node_dtrace_header',
- 'specialize_node_d',
- ],
- 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
- #
- # DTrace is supported on linux, solaris, mac, and bsd. There are
- # three object files associated with DTrace support, but they're
- # not all used all the time:
- #
- # node_dtrace.o all configurations
- # node_dtrace_ustack.o not supported on mac and linux
- # node_dtrace_provider.o All except OS X. "dtrace -G" is not
- # used on OS X.
- #
- # Note that node_dtrace_provider.cc and node_dtrace_ustack.cc do not
- # actually exist. They're listed here to trick GYP into linking the
- # corresponding object files into the final "node" executable. These
- # object files are generated by "dtrace -G" using custom actions
- # below, and the GYP-generated Makefiles will properly build them when
- # needed.
- #
- 'sources': [
- 'src/node_dtrace.h',
- 'src/node_dtrace.cc',
- ],
- 'conditions': [
- [ 'OS=="linux"', {
- 'sources': [
- '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o'
- ],
- }],
- [ 'OS!="mac" and OS!="linux"', {
- 'sources': [
- 'src/node_dtrace_ustack.cc',
- 'src/node_dtrace_provider.cc',
- ]
- }
- ] ]
- } ],
[ 'node_use_openssl=="true"', {
'sources': [
'src/crypto/crypto_aes.cc',
@@ -955,164 +877,6 @@
},
],
}, # node_lib_target_name
- {
- # generate ETW header and resource files
- 'target_name': 'node_etw',
- 'type': 'none',
- 'conditions': [
- [ 'node_use_etw=="true"', {
- 'actions': [
- {
- 'action_name': 'node_etw',
- 'inputs': [ 'src/res/node_etw_provider.man' ],
- 'outputs': [
- 'tools/msvs/genfiles/node_etw_provider.rc',
- 'tools/msvs/genfiles/node_etw_provider.h',
- 'tools/msvs/genfiles/node_etw_providerTEMP.BIN',
- ],
- 'action': [ 'mc <@(_inputs) -h tools/msvs/genfiles -r tools/msvs/genfiles' ]
- }
- ]
- } ]
- ]
- }, # node_etw
- {
- 'target_name': 'node_dtrace_header',
- 'type': 'none',
- 'conditions': [
- [ 'node_use_dtrace=="true" and OS!="linux"', {
- 'actions': [
- {
- 'action_name': 'node_dtrace_header',
- 'inputs': [ 'src/node_provider.d' ],
- 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_provider.h' ],
- 'action': [ 'dtrace', '-h', '-xnolibs', '-s', '<@(_inputs)',
- '-o', '<@(_outputs)' ]
- }
- ]
- } ],
- [ 'node_use_dtrace=="true" and OS=="linux"', {
- 'actions': [
- {
- 'action_name': 'node_dtrace_header',
- 'inputs': [ 'src/node_provider.d' ],
- 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_provider.h' ],
- 'action': [ 'dtrace', '-h', '-s', '<@(_inputs)',
- '-o', '<@(_outputs)' ]
- }
- ]
- } ],
- ]
- }, # node_dtrace_header
- {
- 'target_name': 'node_dtrace_provider',
- 'type': 'none',
- 'conditions': [
- [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
- 'actions': [
- {
- 'action_name': 'node_dtrace_provider_o',
- 'inputs': [
- '<(obj_dir)/<(node_lib_target_name)/src/node_dtrace.o',
- ],
- 'outputs': [
- '<(obj_dir)/<(node_lib_target_name)/src/node_dtrace_provider.o'
- ],
- 'action': [ 'dtrace', '-G', '-xnolibs', '-s', 'src/node_provider.d',
- '<@(_inputs)', '-o', '<@(_outputs)' ]
- }
- ]
- }],
- [ 'node_use_dtrace=="true" and OS=="linux"', {
- 'actions': [
- {
- 'action_name': 'node_dtrace_provider_o',
- 'inputs': [ 'src/node_provider.d' ],
- 'outputs': [
- '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o'
- ],
- 'action': [
- 'dtrace', '-C', '-G', '-s', '<@(_inputs)', '-o', '<@(_outputs)'
- ],
- }
- ],
- }],
- ]
- }, # node_dtrace_provider
- {
- 'target_name': 'node_dtrace_ustack',
- 'type': 'none',
- 'conditions': [
- [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
- 'actions': [
- {
- 'action_name': 'node_dtrace_ustack_constants',
- 'inputs': [
- '<(obj_dir)/tools/v8_gypfiles/<(STATIC_LIB_PREFIX)v8_base_without_compiler<(STATIC_LIB_SUFFIX)'
- ],
- 'outputs': [
- '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
- ],
- 'action': [
- 'tools/genv8constants.py',
- '<@(_outputs)',
- '<@(_inputs)'
- ]
- },
- {
- 'action_name': 'node_dtrace_ustack',
- 'inputs': [
- 'src/v8ustack.d',
- '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
- ],
- 'outputs': [
- '<(obj_dir)/<(node_lib_target_name)/src/node_dtrace_ustack.o'
- ],
- 'conditions': [
- [ 'target_arch=="ia32" or target_arch=="arm"', {
- 'action': [
- 'dtrace', '-32', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
- '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
- ]
- } ],
- [ 'target_arch=="x64"', {
- 'action': [
- 'dtrace', '-64', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
- '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
- ]
- } ],
- ]
- },
- ]
- } ],
- ]
- }, # node_dtrace_ustack
- {
- 'target_name': 'specialize_node_d',
- 'type': 'none',
- 'conditions': [
- [ 'node_use_dtrace=="true"', {
- 'actions': [
- {
- 'action_name': 'specialize_node_d',
- 'inputs': [
- 'src/node.d'
- ],
- 'outputs': [
- '<(PRODUCT_DIR)/node.d',
- ],
- 'action': [
- 'tools/specialize_node_d.py',
- '<@(_outputs)',
- '<@(_inputs)',
- '<@(OS)',
- '<@(target_arch)',
- ],
- },
- ],
- } ],
- ]
- }, # specialize_node_d
{ # fuzz_url
'target_name': 'fuzz_url',
'type': 'executable',
@@ -1151,9 +915,6 @@
'<(node_lib_target_name)',
'deps/histogram/histogram.gyp:histogram',
'deps/uvwasi/uvwasi.gyp:uvwasi',
- 'node_dtrace_header',
- 'node_dtrace_ustack',
- 'node_dtrace_provider',
],
'includes': [
'node.gypi'
@@ -1197,9 +958,6 @@
'deps/googletest/googletest.gyp:gtest_main',
'deps/histogram/histogram.gyp:histogram',
'deps/uvwasi/uvwasi.gyp:uvwasi',
- 'node_dtrace_header',
- 'node_dtrace_ustack',
- 'node_dtrace_provider',
],
'includes': [
@@ -1295,9 +1053,6 @@
'<(node_lib_target_name)',
'deps/histogram/histogram.gyp:histogram',
'deps/uvwasi/uvwasi.gyp:uvwasi',
- 'node_dtrace_header',
- 'node_dtrace_ustack',
- 'node_dtrace_provider',
],
'includes': [