diff options
author | ngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-18 16:30:10 +0000 |
---|---|---|
committer | ngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-18 16:30:10 +0000 |
commit | 979dff3ee48c2bc26ca9ac817425e2b073e12d73 (patch) | |
tree | ae07636a95196a6dd7e3ce03f73235e25c9fc0d0 /vm_core.h | |
parent | 2630ad09bd6f959b0379adfba84a6c7b4e4958ff (diff) | |
download | ruby-979dff3ee48c2bc26ca9ac817425e2b073e12d73.tar.gz |
* vm_core.h, probes_helper.h (RUBY_DTRACE_FUNC_ENTRY_HOOK,
RUBY_DTRACE_FUNC_RETURN_HOOK): move from vm_core.h to new file
probes_helper.h for narrowing dependency to probes.h.
* common.mk (VM_CORE_H_INCLUDES): remove dependency to probes.h.
* common.mk (vm.$(OBJEXT)): add dependency to probes_helper.h.
* vm.c, vm_insnhelper.c: include probes_helper.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 30 |
1 files changed, 0 insertions, 30 deletions
@@ -23,7 +23,6 @@ #include "id.h" #include "method.h" #include "ruby_atomic.h" -#include "probes.h" #if defined(_WIN32) #include "thread_win32.h" @@ -899,35 +898,6 @@ rb_threadptr_exec_event_hooks(rb_thread_t *th, rb_event_flag_t flag, VALUE self, } \ } while (0) -#define RUBY_DTRACE_FUNC_ENTRY_HOOK(klass, id) \ - if (RUBY_DTRACE_FUNCTION_ENTRY_ENABLED()) { \ - const char * classname = rb_class2name((klass)); \ - const char * methodname = rb_id2name((id)); \ - const char * filename = rb_sourcefile(); \ - if (classname && methodname && filename) { \ - RUBY_DTRACE_FUNCTION_ENTRY( \ - classname, \ - methodname, \ - filename, \ - rb_sourceline()); \ - } \ - } \ - -#define RUBY_DTRACE_FUNC_RETURN_HOOK(klass, id) \ - if (RUBY_DTRACE_FUNCTION_RETURN_ENABLED()) { \ - const char * classname = rb_class2name((klass)); \ - const char * methodname = rb_id2name((id)); \ - const char * filename = rb_sourcefile(); \ - if (classname && methodname && filename) { \ - RUBY_DTRACE_FUNCTION_RETURN( \ - classname, \ - methodname, \ - filename, \ - rb_sourceline()); \ - } \ - } \ - - #if defined __GNUC__ && __GNUC__ >= 4 #pragma GCC visibility push(default) #endif |