-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix dtrace commit r37631, it is [Feature ruby#2565]
* configure.in: disable dtrace because it doesn't work on FreeBSD. * common.mk (clean-local): rm probes.h. * common.mk (parse.o): depend $(PROBES_H_INCLUDES). * common.mk (.d.h): moved from Makefile.in and use BASERUBY. * tool/gen_dummy_probes.rb: reimplemented with ruby because sed is not available on Windows Microsoft VC++ environment. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- Loading branch information
Showing
6 changed files
with
58 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
Tue Nov 13 12:27:11 2012 NARUSE, Yui <[email protected]> | ||
|
||
* configure.in: disable dtrace because it doesn't work on FreeBSD. | ||
|
||
* common.mk (clean-local): rm probes.h. | ||
|
||
* common.mk (parse.o): depend $(PROBES_H_INCLUDES). | ||
|
||
* common.mk (.d.h): moved from Makefile.in and use BASERUBY. | ||
|
||
* tool/gen_dummy_probes.rb: reimplemented with ruby because sed is not | ||
available on Windows Microsoft VC++ environment. | ||
|
||
Tue Nov 13 06:50:02 2012 Aaron Patterson <[email protected]> | ||
|
||
Tue Nov 13 12:30:26 2012 NAKAMURA Usaku <[email protected]> | ||
|
||
* win32/README.win32: added mention about build directory. currently | ||
|
@@ -28,10 +43,10 @@ Tue Nov 13 06:50:02 2012 Aaron Patterson <[email protected]> | |
|
||
* eval.c (setup_exception): add a probe for when an exception is | ||
raised. | ||
|
||
* gc.c: Add DTrace probes for mark begin and end, and sweep begin and | ||
end. | ||
|
||
* hash.c (empty_hash_alloc): Add a probe for hash allocation. | ||
|
||
* insns.def: Add probes for function entry and return. | ||
|
@@ -59,12 +74,12 @@ Tue Nov 13 06:50:02 2012 Aaron Patterson <[email protected]> | |
|
||
* vm_eval.c (vm_call0_cfunc, vm_call0_cfunc_with_frame): add probe on | ||
function entry and return. | ||
|
||
* vm_exec.c: expose instruction number to instruction name function. | ||
|
||
* vm_insnshelper.c: add function entry and exit probes for cfunc | ||
methods. | ||
|
||
* vm_insnhelper.h: vm usage information is always collected, so | ||
uncomment the functions. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/ruby | ||
|
||
text = ARGF.read | ||
text.upcase! | ||
|
||
# remove the pragma declarations | ||
text.gsub!(/^#PRAGMA.*$/, '') | ||
|
||
# replace the provider section with the start of the header file | ||
text.gsub!(/PROVIDER RUBY \{/, "#ifndef\t_PROBES_H\n#define\t_PROBES_H") | ||
|
||
# finish up the #ifndef sandwich | ||
text.gsub!(/\};/, "#endif\t/* _PROBES_H */") | ||
|
||
text.gsub!(/__/, '_') | ||
|
||
text.gsub!(/\([^,)]+\)/, '(arg0)') | ||
text.gsub!(/\([^,)]+,[^,)]+\)/, '(arg0, arg1)') | ||
text.gsub!(/\([^,)]+,[^,)]+,[^,)]+\)/, '(arg0, arg1, arg2)') | ||
text.gsub!(/\([^,)]+,[^,)]+,[^,)]+,[^,)]+\)/, '(arg0, arg1, arg2, arg3)') | ||
text.gsub!(/\([^,)]+,[^,)]+,[^,)]+,[^,)]+,[^,)]+\)/, '(arg0, arg1, arg2, arg3, arg4)') | ||
|
||
text.gsub!(/ *PROBE ([^\(]*)(\([^\)]*\));/, "#define RUBY_DTRACE_\\1_ENABLED() 0\n#define RUBY_DTRACE_\\1\\2\ do \{ \} while\(0\)") | ||
print text |
This file was deleted.
Oops, something went wrong.