diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-05 05:59:23 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-05 05:59:23 +0000 |
commit | 295bc2fe2577336807db6e2c30bd642bdb6482bc (patch) | |
tree | e8af2c0334772bc31cc943c68fd2a884605830cc /ext | |
parent | 623a79c376fec2f76cc33819807f1903b40c3dea (diff) | |
download | ruby-295bc2fe2577336807db6e2c30bd642bdb6482bc.tar.gz |
removes the dtrace support. reverts r26239, r26238 and r26235.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/probe/extconf.rb | 3 | ||||
-rw-r--r-- | ext/probe/probe.c | 47 |
2 files changed, 0 insertions, 50 deletions
diff --git a/ext/probe/extconf.rb b/ext/probe/extconf.rb deleted file mode 100644 index 41b4bc3dd3..0000000000 --- a/ext/probe/extconf.rb +++ /dev/null @@ -1,3 +0,0 @@ -require 'mkmf' -create_makefile('probe') - diff --git a/ext/probe/probe.c b/ext/probe/probe.c deleted file mode 100644 index e252b767b9..0000000000 --- a/ext/probe/probe.c +++ /dev/null @@ -1,47 +0,0 @@ -/** - * probe.c - - * - * $Author$ - * - * Based on the patch for Ruby 1.8.6 by Joyent Inc. - * - * Copyright 2007 Joyent Inc. - * Copyright 2009 Yuki Sonoda (Yugui). - */ -#include "ruby/ruby.h" - -#define FIRE_WITH_SUFFIXED_MSG(probe_name, probe_data, suffix) \ - if (TRACE_RUBY_PROBE_ENABLED()) { \ - char *msg = ALLOCA_N(char, strlen(probe_name) + strlen("-" #suffix) ); \ - sprintf(msg, "%s%s", probe_name, "-" #suffix); \ - FIRE_RUBY_PROBE(msg, (char*)probe_data); \ - } - -static VALUE -probe_fire(int argc, VALUE *argv, VALUE klass) -{ - int args; - VALUE name, data, ret; - const char *probe_data; - char *probe_name; - - args = rb_scan_args(argc, argv, "11", &name, &data); - probe_data = args == 2 ? StringValuePtr(data) : ""; - probe_name = StringValuePtr(name); - - if (rb_block_given_p()) { - FIRE_WITH_SUFFIXED_MSG(probe_name, probe_data, start); - ret = rb_yield(Qnil); - FIRE_WITH_SUFFIXED_MSG(probe_name, probe_data, end); - } else { - if (TRACE_RUBY_PROBE_ENABLED()) - FIRE_RUBY_PROBE(probe_name, (char*)probe_data); - ret = Qnil; - } - return ret; -} - -void Init_probe() -{ - rb_define_global_function("fire_probe", probe_fire, -1); -} |