Sha256: 830a87261a6fef59607125cf54cbb51060d1c21fe76c5e4df8c22d2906b4767d

Contents?: true

Size: 1.23 KB

Versions: 123

Compression:

Stored size: 1.23 KB

Contents

#ifndef RUBY_PROBES_HELPER_H
#define RUBY_PROBES_HELPER_H

#include "ruby/ruby.h"
#include "probes.h"

struct ruby_dtrace_method_hook_args {
    const char *classname;
    const char *methodname;
    const char *filename;
    int line_no;
    volatile VALUE klass;
    volatile VALUE name;
};

NOINLINE(int rb_dtrace_setup(rb_execution_context_t *, VALUE, ID, struct ruby_dtrace_method_hook_args *));

#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); \
	} \
    } \
} while (0)

#define RUBY_DTRACE_METHOD_ENTRY_HOOK(ec, klass, id) \
    RUBY_DTRACE_METHOD_HOOK(METHOD_ENTRY, ec, klass, id)

#define RUBY_DTRACE_METHOD_RETURN_HOOK(ec, klass, id) \
    RUBY_DTRACE_METHOD_HOOK(METHOD_RETURN, ec, klass, id)

#define RUBY_DTRACE_CMETHOD_ENTRY_HOOK(ec, klass, id) \
    RUBY_DTRACE_METHOD_HOOK(CMETHOD_ENTRY, ec, klass, id)

#define RUBY_DTRACE_CMETHOD_RETURN_HOOK(ec, klass, id) \
    RUBY_DTRACE_METHOD_HOOK(CMETHOD_RETURN, ec, klass, id)

#endif /* RUBY_PROBES_HELPER_H */

Version data entries

123 entries across 38 versions & 4 rubygems

Version Path
avalara_sdk-24.12.2 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-0.10.16/lib/debase/ruby_core_source/ruby-2.5.1-p57/probes_helper.h
avalara_sdk-24.12.2 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-3.4.1/lib/debase/ruby_core_source/ruby-2.5.0-p0/probes_helper.h
avalara_sdk-24.12.2 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-3.4.1/lib/debase/ruby_core_source/ruby-2.5.4-p155/probes_helper.h
avalara_sdk-24.12.2 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-0.10.16/lib/debase/ruby_core_source/ruby-2.5.0-p0/probes_helper.h
avalara_sdk-24.12.2 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-3.4.1/lib/debase/ruby_core_source/ruby-2.5.1-p57/probes_helper.h
avalara_sdk-24.12.2 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-0.10.16/lib/debase/ruby_core_source/ruby-2.5.4-p155/probes_helper.h
debase-ruby_core_source-3.4.1 lib/debase/ruby_core_source/ruby-2.5.0-p0/probes_helper.h
debase-ruby_core_source-3.4.1 lib/debase/ruby_core_source/ruby-2.5.4-p155/probes_helper.h
debase-ruby_core_source-3.4.1 lib/debase/ruby_core_source/ruby-2.5.1-p57/probes_helper.h
debase-ruby_core_source-3.4.0 lib/debase/ruby_core_source/ruby-2.5.0-p0/probes_helper.h
debase-ruby_core_source-3.4.0 lib/debase/ruby_core_source/ruby-2.5.1-p57/probes_helper.h
debase-ruby_core_source-3.4.0 lib/debase/ruby_core_source/ruby-2.5.4-p155/probes_helper.h
avalara_sdk-24.12.1 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-0.10.16/lib/debase/ruby_core_source/ruby-2.5.4-p155/probes_helper.h
avalara_sdk-24.12.1 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-0.10.16/lib/debase/ruby_core_source/ruby-2.5.0-p0/probes_helper.h
avalara_sdk-24.12.1 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-0.10.16/lib/debase/ruby_core_source/ruby-2.5.1-p57/probes_helper.h
avalara_sdk-24.12.0 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-0.10.16/lib/debase/ruby_core_source/ruby-2.5.4-p155/probes_helper.h
avalara_sdk-24.12.0 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-3.3.6/lib/debase/ruby_core_source/ruby-2.5.0-p0/probes_helper.h
avalara_sdk-24.12.0 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-0.10.16/lib/debase/ruby_core_source/ruby-2.5.0-p0/probes_helper.h
avalara_sdk-24.12.0 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-3.3.6/lib/debase/ruby_core_source/ruby-2.5.1-p57/probes_helper.h
avalara_sdk-24.12.0 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-0.10.16/lib/debase/ruby_core_source/ruby-2.5.1-p57/probes_helper.h