summaryrefslogtreecommitdiff
path: root/jni/ruby/probes.h
diff options
context:
space:
mode:
authorJari Vetoniemi <jari.vetoniemi@indooratlas.com>2020-03-16 18:49:26 +0900
committerJari Vetoniemi <jari.vetoniemi@indooratlas.com>2020-03-30 00:39:06 +0900
commitfcbf63e62c627deae76c1b8cb8c0876c536ed811 (patch)
tree64cb17de3f41a2b6fef2368028fbd00349946994 /jni/ruby/probes.h
Fresh start
Diffstat (limited to 'jni/ruby/probes.h')
-rw-r--r--jni/ruby/probes.h83
1 files changed, 83 insertions, 0 deletions
diff --git a/jni/ruby/probes.h b/jni/ruby/probes.h
new file mode 100644
index 0000000..7db3d40
--- /dev/null
+++ b/jni/ruby/probes.h
@@ -0,0 +1,83 @@
+/* -*- c -*- */
+#include "vm_opts.h"
+
+#ifndef _PROBES_H
+#define _PROBES_H
+#define DTRACE_PROBES_DISABLED 1
+
+#define RUBY_DTRACE_METHOD_ENTRY_ENABLED() 0
+#define RUBY_DTRACE_METHOD_ENTRY(arg0, arg1, arg2, arg3) do { } while(0)
+#define RUBY_DTRACE_METHOD_RETURN_ENABLED() 0
+#define RUBY_DTRACE_METHOD_RETURN(arg0, arg1, arg2, arg3) do { } while(0)
+
+#define RUBY_DTRACE_CMETHOD_ENTRY_ENABLED() 0
+#define RUBY_DTRACE_CMETHOD_ENTRY(arg0, arg1, arg2, arg3) do { } while(0)
+#define RUBY_DTRACE_CMETHOD_RETURN_ENABLED() 0
+#define RUBY_DTRACE_CMETHOD_RETURN(arg0, arg1, arg2, arg3) do { } while(0)
+
+#define RUBY_DTRACE_REQUIRE_ENTRY_ENABLED() 0
+#define RUBY_DTRACE_REQUIRE_ENTRY(arg0, arg1, arg2) do { } while(0)
+
+#define RUBY_DTRACE_REQUIRE_RETURN_ENABLED() 0
+#define RUBY_DTRACE_REQUIRE_RETURN(arg0, arg1, arg2) do { } while(0)
+
+#define RUBY_DTRACE_FIND_REQUIRE_ENTRY_ENABLED() 0
+#define RUBY_DTRACE_FIND_REQUIRE_ENTRY(arg0, arg1, arg2) do { } while(0)
+
+#define RUBY_DTRACE_FIND_REQUIRE_RETURN_ENABLED() 0
+#define RUBY_DTRACE_FIND_REQUIRE_RETURN(arg0, arg1, arg2) do { } while(0)
+
+#define RUBY_DTRACE_LOAD_ENTRY_ENABLED() 0
+#define RUBY_DTRACE_LOAD_ENTRY(arg0, arg1, arg2) do { } while(0)
+
+#define RUBY_DTRACE_LOAD_RETURN_ENABLED() 0
+#define RUBY_DTRACE_LOAD_RETURN(arg0, arg1, arg2) do { } while(0)
+
+#define RUBY_DTRACE_RAISE_ENABLED() 0
+#define RUBY_DTRACE_RAISE(arg0, arg1, arg2) do { } while(0)
+
+#define RUBY_DTRACE_OBJECT_CREATE_ENABLED() 0
+#define RUBY_DTRACE_OBJECT_CREATE(arg0, arg1, arg2) do { } while(0)
+
+#define RUBY_DTRACE_ARRAY_CREATE_ENABLED() 0
+#define RUBY_DTRACE_ARRAY_CREATE(arg0, arg1, arg2) do { } while(0)
+
+#define RUBY_DTRACE_HASH_CREATE_ENABLED() 0
+#define RUBY_DTRACE_HASH_CREATE(arg0, arg1, arg2) do { } while(0)
+
+#define RUBY_DTRACE_STRING_CREATE_ENABLED() 0
+#define RUBY_DTRACE_STRING_CREATE(arg0, arg1, arg2) do { } while(0)
+
+#define RUBY_DTRACE_SYMBOL_CREATE_ENABLED() 0
+#define RUBY_DTRACE_SYMBOL_CREATE(arg0, arg1, arg2) do { } while(0)
+
+#define RUBY_DTRACE_PARSE_BEGIN_ENABLED() 0
+#define RUBY_DTRACE_PARSE_BEGIN(arg0, arg1) do { } while(0)
+
+#define RUBY_DTRACE_PARSE_END_ENABLED() 0
+#define RUBY_DTRACE_PARSE_END(arg0, arg1) do { } while(0)
+
+#if VM_COLLECT_USAGE_DETAILS
+#define RUBY_DTRACE_INSN_ENABLED() 0
+#define RUBY_DTRACE_INSN(arg0) do { } while(0)
+#define RUBY_DTRACE_INSN_OPERAND_ENABLED() 0
+#define RUBY_DTRACE_INSN_OPERAND(arg0, arg1) do { } while(0)
+#endif
+
+#define RUBY_DTRACE_GC_MARK_BEGIN_ENABLED() 0
+#define RUBY_DTRACE_GC_MARK_BEGIN() do { } while(0)
+
+#define RUBY_DTRACE_GC_MARK_END_ENABLED() 0
+#define RUBY_DTRACE_GC_MARK_END() do { } while(0)
+
+#define RUBY_DTRACE_GC_SWEEP_BEGIN_ENABLED() 0
+#define RUBY_DTRACE_GC_SWEEP_BEGIN() do { } while(0)
+
+#define RUBY_DTRACE_GC_SWEEP_END_ENABLED() 0
+#define RUBY_DTRACE_GC_SWEEP_END() do { } while(0)
+
+#define RUBY_DTRACE_METHOD_CACHE_CLEAR_ENABLED() 0
+#define RUBY_DTRACE_METHOD_CACHE_CLEAR(arg0, arg1, arg2) do { } while(0)
+
+#endif /* _PROBES_H */
+