1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext
yugui 72b199940d * trace.h: new file. wraps tracing mechanisms.
* defs/dtrace.d: new file. defined a dtrace provider "ruby".

* include/ruby/ruby.h (LIKELY): moved from vm.c.
  (UNLIKELY): ditto.
  (OBJSETUP): probe "object-create".
  (RUBY_EVENT_RESCUE): new event.

* vm_exec.c (DEBUG_ENTER_INSN): embeded a probe insn-entry into it.
  (DEBUG_END_INSN): insn-return.

* vm.c (LIKELY): moved into ruby.h.
  (UNLIKELY): ditto.
  (Init_BareVM): embeded a probe "raise" into it.

* variable.c (rb_class2name_without_alloc): new utility function.

* tool/rbinstall.rb (install?(:ext, :arch, :'ext-arch')): installs 
  dtrace.d if necessary.

* thread_pthread.c (add_signal_thread_list): probe "raise".
  (rb_thread_create_timer_thread): ditto.

* thread.c (rb_thread_schedule_rec): probes "thread-enter" and
  "thread-leave",
  (thread_start_func_2): ditto.
  (thread_cleanup_func): probe "thread-term"

* lib/mkmf.rb: supports dtrace postprocessor on making an extension.

* iseq.c (rb_vm_insn_name): new utility function.
  (rb_vm_insn_len): ditto.

* insns.def (hook): probes "method-etnry", "method-return", "line",
  and "rescue".

* compile.c (iseq_compile_each): adds a trace op for "rescue" probe.

* gc.c (garbage_collect): probes "gc-begin" and "gc-end".
  (obj_free): probe "object-free"
  (garbage_collect_with_gvl): probe "raise"
  (negative_size_allocation_error): ditto.
  (rb_memerror): ditto.

* eval.c (rb_rescue2): probe "rescue"
  (rb_longjmp): probe "raise"

* ext/probe/probe.c: new extension for application defined probes.

* ext/probe/extconf.rb: ditto.

* configure.in (--with-tracing-model): new option to choose a tracing
  mechanism.
  (DTRACE): new substitution. name of dtrace(1).
  (RUBY_TRACING_MODEL): new substitution.
  (DTRACE_OBJ): ditto.
  (MINIDTRACE_OBJ): ditto.
  (GOLFDTRACE_OBJ): ditto.
  (LIBRUBY_DTRACE_OBJ): ditto.
  (RUBY_DTRACE_POSTPROCESS): new macro. checks whether the dtrace on 
  the system needs postprocessing.
  (RUBY_DTRACE_BSD_BROKEN): new macro. checks whether the dtrace
  supports USDT.

* Makefile.in: 
  (DTRACE): new variable. name of dtrace(1).
  (TRACING_MODEL): new variable. name of the chosen tracing mechanism.
  (DTRACE_OBJ): same as the one in configure.in.
  (MINIDTRACE_OBJ): ditto.
  (GOLFDTRACE_OBJ): ditto.
  (LIBRUBY_DTRACE_OBJ): ditto.
  (CPPOUTFILE): new substitution. necessary for generating dtrace.d
  (trace_none.h): new target for TRACING_MODEL=none
  (RUBY_H_INCLUDES): appended a header for tracing.
  (distclean-local): also removes preprocessed version of dtrace.d
  ($(LIBRUBY_A)): needs $(LIBRUBY_DTRACE_OBJ) if dtrace needs 
  postprocessing.
  ($(PROGRAM)): ditto.
  (golf): ditto.
  (miniruby): ditto.
  ($(arch_hdrdir)/ruby/dtrace.d): new target. preprocessed verson 
  of defs/dtrace.d. generated if necessary.
  ($(arch_hdrdir)/ruby/trace_dtrace.h): new target.
  definition of probes.
  ($(LIBRUBY_DTRACE_OBJ)): new target. generated if dtrace needs 
  postprocessing.
  ($(DTRACE_OBJ)): ditto.
  ($(MINIDTRACE_OBJ)): ditto.
  ($(GOLFDTRACE_OBJ)): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-03 15:36:17 +00:00
..
bigdecimal ext/bigdecimal/bigdecimal_en.html: Remove obsolete information, fix typos 2009-12-06 22:35:45 +00:00
continuation * cont.c (ruby_Init_{Continuation_body,Fiber_as_Coroutine}): prefixed 2009-01-20 07:17:28 +00:00
coverage * ext/coverage/coverage.c (rb_mCoverage): removed unneeded static variable. 2008-08-31 04:48:02 +00:00
curses * ext/curses/curses.c: use rb_thread_blocking_region to avoid 2009-10-10 10:49:47 +00:00
dbm * ext/dbm/dbm.c (fdbm_initialize): Make the file variable 2009-03-23 12:45:23 +00:00
digest * ext/digest/digest.c (rb_digest_instance_method_unimpl): Suppress 2009-12-31 15:49:07 +00:00
dl * ext/dl/cptr.c (to_int): DL::CPtr supports to_int 2009-12-04 23:21:01 +00:00
etc * ext/etc/etc.c (etc_each_group): fixed typo. 2009-10-28 05:51:33 +00:00
fcntl fix typos. 2009-11-04 12:02:37 +00:00
fiber * cont.c (ruby_Init_{Continuation_body,Fiber_as_Coroutine}): prefixed 2009-01-20 07:17:28 +00:00
gdbm * ext/gdbm/gdbm.c (fgdbm_select): fixed rdoc. a patch from Justin 2009-10-11 06:54:54 +00:00
iconv * ext/bigdecimal/bigdecimal.c (VpMidRound): remove warnings. 2009-10-16 04:36:31 +00:00
io * ext/io/nonblock: moved from ext/io/wait/lib. 2009-07-14 12:53:23 +00:00
json * ext/json/lib/json/common.rb (recurse_proc): removed needless 2009-09-29 08:02:47 +00:00
mathn * complex.c (nucomp_canonicalization): renamed. 2008-12-12 23:40:55 +00:00
nkf * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
objspace Wed Sep 9 15:24:32 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk> 2009-09-09 06:27:35 +00:00
openssl * ext/openssl/ossl_ssl.c: initialize @hostname of SSLSocket to avoid 2009-12-02 14:54:50 +00:00
probe * trace.h: new file. wraps tracing mechanisms. 2010-01-03 15:36:17 +00:00
pty * ext/pty/pty.c (pty_getpty): check dup failure. 2009-06-26 13:01:16 +00:00
racc/cparse * include/ruby: moved public headers. 2007-06-10 03:06:15 +00:00
readline use rl_prep_terminal only on Windows. [ruby-core:25009] 2009-08-21 06:04:21 +00:00
ripper * ext/ripper/eventids2.c (token_to_eventid): added 2009-08-08 22:25:11 +00:00
sdbm * ext/sdbm/_sdbm.c: should include "ruby/defines.h" as well for 2009-03-26 14:32:22 +00:00
socket * ext/socket/rubysocket.h: include addrinfo.h only when using our own 2009-12-31 09:19:05 +00:00
stringio * ext/stringio/stringio.c (ungetc): RDoc updated. trunk allows 2009-12-04 04:14:37 +00:00
strscan * ext/strscan/strscan.c (strscan_set_string): set string should not be 2009-08-26 23:16:40 +00:00
syck * ext/bigdecimal/bigdecimal.c (VpMidRound): remove warnings. 2009-10-16 04:36:31 +00:00
syslog * test/test_syslog.rb: moved. 2009-03-06 04:04:56 +00:00
tk * ext/tk/lib/tk/variable.rb (TkVariable::coerce): fix bug on a numeric value. 2009-11-13 19:11:32 +00:00
win32ole * ext/win32ole/win32ole.c (foleparam_initialize): add foleparam_initialize 2009-12-27 01:51:54 +00:00
zlib * ext/zlib/zlib.c (rb_zlib_adler32): fix typo. 2009-11-13 12:19:08 +00:00
.cvsignore
.document Update ext/.document with extensions that appear to have documentation. 2009-07-08 00:02:45 +00:00
extmk.rb * ext/extmk.rb: fix for extstatic. 2009-12-30 16:58:51 +00:00
purelib.rb * ext/purelib.rb: translates a fake path to rubygems in $" into 2009-07-15 09:05:32 +00:00
Setup * sprintf.c (rb_str_format): allow %c to print one character 2006-06-09 21:20:17 +00:00
Setup.atheos * ext/Setup*: remove tcltklib. 2005-01-26 05:15:02 +00:00
Setup.emx * ext/Setup*: remove tcltklib. 2005-01-26 05:15:02 +00:00
Setup.nt * ext/Setup*: remove tcltklib. 2005-01-26 05:15:02 +00:00