summaryrefslogtreecommitdiff
path: root/src/notrace_macros.py
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-07-24 12:53:28 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2013-07-24 21:49:18 +0200
commit4b279f00921b251f58ff7213c6a1518c66281747 (patch)
tree637596464ba84cae370ece7641526cba288ec819 /src/notrace_macros.py
parentd8240769c6593e4dd6cff3b9e41d35f869c83eed (diff)
downloadnode-new-4b279f00921b251f58ff7213c6a1518c66281747.tar.gz
src: rename macros.py to notrace_macros.py
This incarnation of macros.py is only used to disable the (d)trace macros. Rename it so it better reflects its purpose. A new macros.py will be added in a follow-up commit.
Diffstat (limited to 'src/notrace_macros.py')
-rw-r--r--src/notrace_macros.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/notrace_macros.py b/src/notrace_macros.py
new file mode 100644
index 0000000000..0e03a1652d
--- /dev/null
+++ b/src/notrace_macros.py
@@ -0,0 +1,11 @@
+# This file is used by tools/js2c.py to preprocess out the DTRACE symbols in
+# builds that don't support DTrace. This is not used in builds that support
+# DTrace.
+macro DTRACE_HTTP_CLIENT_REQUEST(x) = ;
+macro DTRACE_HTTP_CLIENT_RESPONSE(x) = ;
+macro DTRACE_HTTP_SERVER_REQUEST(x) = ;
+macro DTRACE_HTTP_SERVER_RESPONSE(x) = ;
+macro DTRACE_NET_SERVER_CONNECTION(x) = ;
+macro DTRACE_NET_STREAM_END(x) = ;
+macro DTRACE_NET_SOCKET_READ(x) = ;
+macro DTRACE_NET_SOCKET_WRITE(x) = ;