aboutsummaryrefslogtreecommitdiffstats
path: root/probes.d
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-22 08:01:49 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-22 08:01:49 +0000
commit4d7e8b7305c392646f68a785df8f4019ec1e69c9 (patch)
tree1d7d4ee3f50acdab1149d106402d24ac1e430e34 /probes.d
parent82e7d00344a185ea46a72ed1352d25d99056add8 (diff)
downloadruby-4d7e8b7305c392646f68a785df8f4019ec1e69c9.tar.gz
* Makefile.in: run preprocessor when making probe.h
* probes.d: define probe insn and insn__operand only when VM_COLLECT_USAGE_DETAILS is 1. [Bug #7370] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'probes.d')
-rw-r--r--probes.d4
1 files changed, 4 insertions, 0 deletions
diff --git a/probes.d b/probes.d
index b3e8c1be5b..16122ab330 100644
--- a/probes.d
+++ b/probes.d
@@ -1,3 +1,5 @@
+#include "vm_core.h"
+
provider ruby {
probe function__entry(const char *, const char *, const char *, int);
probe function__return(const char *, const char *, const char *, int);
@@ -21,8 +23,10 @@ provider ruby {
probe parse__begin(const char *, int);
probe parse__end(const char *, int);
+#if VM_COLLECT_USAGE_DETAILS
probe insn(const char *);
probe insn__operand(const char *, const char *);
+#endif
probe gc__mark__begin();
probe gc__mark__end();