diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2021-08-31 18:11:01 +0300 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2021-09-06 13:12:42 +0300 |
commit | ed132281e1ce0d1f3a479f4b166750ea6ef3bed7 (patch) | |
tree | 1020f510f5198ae5db5d33ab4af6a2a17e0a1f95 /src/node_external_reference.h | |
parent | 80785f6ec965dbcfba5b8c263befc373bd08b525 (diff) |
src: register external references of dtrace for snapshot
PR-URL: https://github.com/nodejs/node/pull/39961
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Diffstat (limited to 'src/node_external_reference.h')
-rw-r--r-- | src/node_external_reference.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/node_external_reference.h b/src/node_external_reference.h index 8d2de64ad43..280f1269d9b 100644 --- a/src/node_external_reference.h +++ b/src/node_external_reference.h @@ -92,10 +92,17 @@ class ExternalReferenceRegistry { #define EXTERNAL_REFERENCE_BINDING_LIST_INSPECTOR(V) #endif // HAVE_INSPECTOR +#if HAVE_DTRACE || HAVE_ETW +#define EXTERNAL_REFERENCE_BINDING_LIST_DTRACE(V) V(dtrace) +#else +#define EXTERNAL_REFERENCE_BINDING_LIST_DTRACE(V) +#endif + #define EXTERNAL_REFERENCE_BINDING_LIST(V) \ EXTERNAL_REFERENCE_BINDING_LIST_BASE(V) \ EXTERNAL_REFERENCE_BINDING_LIST_INSPECTOR(V) \ - EXTERNAL_REFERENCE_BINDING_LIST_I18N(V) + EXTERNAL_REFERENCE_BINDING_LIST_I18N(V) \ + EXTERNAL_REFERENCE_BINDING_LIST_DTRACE(V) } // namespace node |