diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-28 20:20:50 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-28 20:20:50 +0000 |
commit | 4bdd9095183666d515635946085becc66a418b16 (patch) | |
tree | e2d8aeee8f590424b0f91939c9d37f518204c856 /probes_helper.h | |
parent | 0fe2051c93197d7617ccc4f07a2dfc697cde9df7 (diff) | |
download | ruby-4bdd9095183666d515635946085becc66a418b16.tar.gz |
* probes.d: Change function-entry probe to method-entry.
* insns.def: ditto
* probes_helper.h: ditto
* test/dtrace/test_function_entry.rb: ditto
* test/dtrace/test_singleton_function.rb: ditto
* vm.c: ditto
* vm_eval.c: ditto
* vm_insnhelper.c: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'probes_helper.h')
-rw-r--r-- | probes_helper.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/probes_helper.h b/probes_helper.h index 9324cb8872..c8d8c9840b 100644 --- a/probes_helper.h +++ b/probes_helper.h @@ -4,13 +4,13 @@ #include "ruby/ruby.h" #include "probes.h" -#define RUBY_DTRACE_FUNC_ENTRY_HOOK(klass, id) \ - if (RUBY_DTRACE_FUNCTION_ENTRY_ENABLED()) { \ +#define RUBY_DTRACE_METHOD_ENTRY_HOOK(klass, id) \ + if (RUBY_DTRACE_METHOD_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( \ + RUBY_DTRACE_METHOD_ENTRY( \ classname, \ methodname, \ filename, \ @@ -18,13 +18,13 @@ } \ } \ -#define RUBY_DTRACE_FUNC_RETURN_HOOK(klass, id) \ - if (RUBY_DTRACE_FUNCTION_RETURN_ENABLED()) { \ +#define RUBY_DTRACE_METHOD_RETURN_HOOK(klass, id) \ + if (RUBY_DTRACE_METHOD_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( \ + RUBY_DTRACE_METHOD_RETURN( \ classname, \ methodname, \ filename, \ |