diff options
Diffstat (limited to 'probes_helper.h')
-rw-r--r-- | probes_helper.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/probes_helper.h b/probes_helper.h index d2d0ebb6e2..16d81b9ffb 100644 --- a/probes_helper.h +++ b/probes_helper.h @@ -12,20 +12,18 @@ struct ruby_dtrace_method_hook_args { volatile VALUE name; }; -MJIT_SYMBOL_EXPORT_BEGIN NOINLINE(int rb_dtrace_setup(rb_execution_context_t *, VALUE, ID, struct ruby_dtrace_method_hook_args *)); -MJIT_SYMBOL_EXPORT_END #define RUBY_DTRACE_METHOD_HOOK(name, ec, klazz, id) \ do { \ if (UNLIKELY(RUBY_DTRACE_##name##_ENABLED())) { \ - struct ruby_dtrace_method_hook_args args; \ - if (rb_dtrace_setup(ec, klazz, id, &args)) { \ - RUBY_DTRACE_##name(args.classname, \ - args.methodname, \ - args.filename, \ - args.line_no); \ - } \ + struct ruby_dtrace_method_hook_args args; \ + if (rb_dtrace_setup(ec, klazz, id, &args)) { \ + RUBY_DTRACE_##name(args.classname, \ + args.methodname, \ + args.filename, \ + args.line_no); \ + } \ } \ } while (0) |