ruby-dtrace 0.2.8 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +6 -0
- data/README.txt +4 -5
- data/examples/scsi.rb +0 -0
- data/ext/dof/Makefile +34 -31
- data/ext/dof/parser.c +1 -1
- data/ext/dof/section.c +2 -2
- data/ext/dtrace_hdl.c +5 -2
- data/ext/dtrace_probe.c +10 -0
- data/ext/extconf.rb +58 -15
- data/ext/i386-darwin/dtrace_probe.c +3 -3
- data/ext/powerpc-darwin/dtrace_probe.c +470 -0
- data/ext/sparc-solaris/dtrace_probe.c +586 -0
- data/ext/x86_64-darwin/dtrace_probe.c +177 -0
- data/ext/x86_64-solaris/dtrace_probe.c +159 -0
- data/lib/dtrace/version.rb +2 -2
- data/plugin/dtrace/bin/dtracer.rb +0 -0
- data/test/test_dof_providers.rb +6 -2
- data/test/test_dof_strtabs.rb +3 -1
- data/test/test_dtrace_probe.rb +6 -2
- data/test/test_dtrace_probes.rb +8 -63
- metadata +25 -29
- data/ext/dof/mkmf.log +0 -10
- data/ext/stubs.txt +0 -78
- data/test/apple-dof +0 -0
- data/test/disabled_probe_effect.txt +0 -19
- data/test/dof +0 -0
- data/test/dof2 +0 -0
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-dtrace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 19
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 3
|
9
|
+
- 0
|
10
|
+
version: 0.3.0
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Chris Andrews
|
@@ -9,7 +15,7 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date:
|
18
|
+
date: 2011-02-01 00:00:00 +00:00
|
13
19
|
default_executable:
|
14
20
|
dependencies: []
|
15
21
|
|
@@ -24,7 +30,6 @@ extra_rdoc_files:
|
|
24
30
|
- README.txt
|
25
31
|
files:
|
26
32
|
- examples/scsi.rb
|
27
|
-
- ext/dof
|
28
33
|
- ext/dof/constants.c
|
29
34
|
- ext/dof/dof.h
|
30
35
|
- ext/dof/dof_api.c
|
@@ -34,7 +39,6 @@ files:
|
|
34
39
|
- ext/dof/generator.c
|
35
40
|
- ext/dof/header.c
|
36
41
|
- ext/dof/Makefile
|
37
|
-
- ext/dof/mkmf.log
|
38
42
|
- ext/dof/parser.c
|
39
43
|
- ext/dof/parser.h
|
40
44
|
- ext/dof/section.c
|
@@ -53,19 +57,18 @@ files:
|
|
53
57
|
- ext/dtrace_recdesc.c
|
54
58
|
- ext/dtrace_util.c
|
55
59
|
- ext/extconf.rb
|
56
|
-
- ext/
|
60
|
+
- ext/dtrace_probe.c
|
57
61
|
- ext/i386-solaris/dtrace_probe.c
|
58
|
-
- ext/i386-darwin
|
59
62
|
- ext/i386-darwin/dtrace_probe.c
|
60
|
-
- ext/
|
61
|
-
-
|
63
|
+
- ext/powerpc-darwin/dtrace_probe.c
|
64
|
+
- ext/x86_64-darwin/dtrace_probe.c
|
65
|
+
- ext/x86_64-solaris/dtrace_probe.c
|
66
|
+
- ext/sparc-solaris/dtrace_probe.c
|
62
67
|
- lib/dtrace/aggregate.rb
|
63
68
|
- lib/dtrace/aggregateset.rb
|
64
69
|
- lib/dtrace/consumer.rb
|
65
70
|
- lib/dtrace/data.rb
|
66
|
-
- lib/dtrace/dof
|
67
71
|
- lib/dtrace/dof/file.rb
|
68
|
-
- lib/dtrace/dof/section
|
69
72
|
- lib/dtrace/dof/section/strtab.rb
|
70
73
|
- lib/dtrace/dof/section.rb
|
71
74
|
- lib/dtrace/dof.rb
|
@@ -73,7 +76,6 @@ files:
|
|
73
76
|
- lib/dtrace/probe.rb
|
74
77
|
- lib/dtrace/probedata.rb
|
75
78
|
- lib/dtrace/probedesc.rb
|
76
|
-
- lib/dtrace/provider
|
77
79
|
- lib/dtrace/provider/probedef.rb
|
78
80
|
- lib/dtrace/provider/klass.rb
|
79
81
|
- lib/dtrace/provider.rb
|
@@ -83,34 +85,20 @@ files:
|
|
83
85
|
- lib/dtrace/version.rb
|
84
86
|
- lib/dtrace.rb
|
85
87
|
- lib/dtraceconsumer.rb
|
86
|
-
- plugin/dtrace
|
87
|
-
- plugin/dtrace/bin
|
88
88
|
- plugin/dtrace/bin/dtracer.rb
|
89
89
|
- plugin/dtrace/init.rb
|
90
|
-
- plugin/dtrace/lib
|
91
90
|
- plugin/dtrace/lib/dtrace_helper.rb
|
92
91
|
- plugin/dtrace/lib/dtrace_report.rb
|
93
92
|
- plugin/dtrace/lib/dtracer.rb
|
94
93
|
- plugin/dtrace/lib/dtracer_client.rb
|
95
|
-
- plugin/dtrace/public
|
96
|
-
- plugin/dtrace/public/stylesheets
|
97
94
|
- plugin/dtrace/public/stylesheets/dtrace.css
|
98
95
|
- plugin/dtrace/Rakefile
|
99
96
|
- plugin/dtrace/README
|
100
|
-
- plugin/dtrace/scripts
|
101
97
|
- plugin/dtrace/scripts/default.d
|
102
98
|
- plugin/dtrace/scripts/rails_mysql.d
|
103
|
-
- plugin/dtrace/tasks
|
104
99
|
- plugin/dtrace/tasks/dtrace.rake
|
105
|
-
- plugin/dtrace/test
|
106
100
|
- plugin/dtrace/test/dtrace_test.rb
|
107
|
-
- plugin/dtrace/views
|
108
|
-
- plugin/dtrace/views/dtrace
|
109
101
|
- plugin/dtrace/views/dtrace/_report.rhtml
|
110
|
-
- test/apple-dof
|
111
|
-
- test/disabled_probe_effect.txt
|
112
|
-
- test/dof
|
113
|
-
- test/dof2
|
114
102
|
- test/test_disabled_probe_effect.rb
|
115
103
|
- test/test_dof_generator.rb
|
116
104
|
- test/test_dof_helper.rb
|
@@ -135,6 +123,8 @@ files:
|
|
135
123
|
- Rakefile
|
136
124
|
has_rdoc: true
|
137
125
|
homepage: http://ruby-dtrace.rubyforge.org
|
126
|
+
licenses: []
|
127
|
+
|
138
128
|
post_install_message:
|
139
129
|
rdoc_options: []
|
140
130
|
|
@@ -142,23 +132,29 @@ require_paths:
|
|
142
132
|
- lib
|
143
133
|
- ext
|
144
134
|
required_ruby_version: !ruby/object:Gem::Requirement
|
135
|
+
none: false
|
145
136
|
requirements:
|
146
137
|
- - ">="
|
147
138
|
- !ruby/object:Gem::Version
|
139
|
+
hash: 3
|
140
|
+
segments:
|
141
|
+
- 0
|
148
142
|
version: "0"
|
149
|
-
version:
|
150
143
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
|
+
none: false
|
151
145
|
requirements:
|
152
146
|
- - ">="
|
153
147
|
- !ruby/object:Gem::Version
|
148
|
+
hash: 3
|
149
|
+
segments:
|
150
|
+
- 0
|
154
151
|
version: "0"
|
155
|
-
version:
|
156
152
|
requirements: []
|
157
153
|
|
158
154
|
rubyforge_project: ruby-dtrace
|
159
|
-
rubygems_version: 1.
|
155
|
+
rubygems_version: 1.3.7
|
160
156
|
signing_key:
|
161
|
-
specification_version:
|
157
|
+
specification_version: 3
|
162
158
|
summary: Ruby-DTrace is Ruby bindings for Dtrace, which allows you to add DTrace probes to your Ruby programs, and to write D-based programs with Ruby.
|
163
159
|
test_files: []
|
164
160
|
|
data/ext/dof/mkmf.log
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
have_header: checking for sys/dtrace.h... -------------------- yes
|
2
|
-
|
3
|
-
"/usr/bin/cpp-4.0 -I. -I/opt/local/lib/ruby/1.8/i686-darwin9.7.0 -I. -I/opt/local/include -O2 -fno-common -pipe -fno-common -D_LONGLONG_TYPE -g conftest.c -o conftest.i"
|
4
|
-
checked program was:
|
5
|
-
/* begin */
|
6
|
-
1: #include <sys/dtrace.h>
|
7
|
-
/* end */
|
8
|
-
|
9
|
-
--------------------
|
10
|
-
|
data/ext/stubs.txt
DELETED
@@ -1,78 +0,0 @@
|
|
1
|
-
disassembly of C probe stub:
|
2
|
-
|
3
|
-
/* 3. void probe8(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) { */
|
4
|
-
/* <Function: probe8> */
|
5
|
-
/* [ 3] 805133c: pushl %ebp */
|
6
|
-
/* [ 3] 805133d: movl %esp,%ebp */
|
7
|
-
/* [ 3] 805133f: subl $8,%esp */
|
8
|
-
/* 4. TEST_TEST_INT_INT_INT_INT_INT_INT_INT_INT_PROBE(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); */
|
9
|
-
/* [ 4] 8051342: pushl 0x24(%ebp) */
|
10
|
-
/* [ 4] 8051345: pushl 0x20(%ebp) */
|
11
|
-
/* [ 4] 8051348: pushl 0x1c(%ebp) */
|
12
|
-
/* [ 4] 805134b: pushl 0x18(%ebp) */
|
13
|
-
/* [ 4] 805134e: pushl 0x14(%ebp) */
|
14
|
-
/* [ 4] 8051351: pushl 0x10(%ebp) */
|
15
|
-
/* [ 4] 8051354: pushl 0xc(%ebp) */
|
16
|
-
/* [ 4] 8051357: pushl 8(%ebp) */
|
17
|
-
/* [ 4] 805135a: nop */
|
18
|
-
/* [ 4] 805135b: nop */
|
19
|
-
/* [ 4] 805135c: nop */
|
20
|
-
/* [ 4] 805135d: nop */
|
21
|
-
/* [ 4] 805135e: nop */
|
22
|
-
/* [ 4] 805135f: addl $0x20,%esp */
|
23
|
-
/* 5. } */
|
24
|
-
/* [ 5] 8051362: leave */
|
25
|
-
/* [ 5] 8051363: ret */
|
26
|
-
|
27
|
-
Corresponding binary:
|
28
|
-
|
29
|
-
/* 1330 55 89 e5 83 .....^[. ....U... */
|
30
|
-
/* 1340 ec 08 ff 75 24 ff 75 20 ff 75 1c ff 75 18 ff 75 ...u$.u .u..u..u */
|
31
|
-
/* 1350 14 ff 75 10 ff 75 0c ff 75 08 90 90 90 90 90 83 ..u..u.. u....... */
|
32
|
-
/* 1360 c4 20 c9 c3 */
|
33
|
-
|
34
|
-
Hand-built 8-arg stub:
|
35
|
-
|
36
|
-
/* char insns[FUNC_SIZE] = */
|
37
|
-
/* { */
|
38
|
-
/* 0x55, 0x89, 0xe5, 0x83, 0xec, 0x08, */
|
39
|
-
/* 0xff, 0x75, 0x24, */
|
40
|
-
/* 0xff, 0x75, 0x20, */
|
41
|
-
/* 0xff, 0x75, 0x1c, */
|
42
|
-
/* 0xff, 0x75, 0x18, */
|
43
|
-
/* 0xff, 0x75, 0x14, */
|
44
|
-
/* 0xff, 0x75, 0x10, */
|
45
|
-
/* 0xff, 0x75, 0x0c, */
|
46
|
-
/* 0xff, 0x75, 0x08, */
|
47
|
-
/* 0x90, 0x90, 0x90, 0x90, 0x90, */
|
48
|
-
/* 0x83, 0xc4, 0x20, */
|
49
|
-
/* 0xc9, 0xc3 */
|
50
|
-
/* }; */
|
51
|
-
|
52
|
-
disassembly of is_enabled function:
|
53
|
-
|
54
|
-
21. int is_enabled(void) {
|
55
|
-
<Function: is_enabled>
|
56
|
-
[21] 805142a: pushl %ebp
|
57
|
-
[21] 805142b: movl %esp,%ebp
|
58
|
-
[21] 805142d: subl $8,%esp
|
59
|
-
22. return TEST_TEST_PROBE_ENABLED() ? 1 : 0;
|
60
|
-
[22] 8051430: xorl %eax,%eax
|
61
|
-
[22] 8051432: nop
|
62
|
-
[22] 8051433: nop
|
63
|
-
[22] 8051434: nop
|
64
|
-
[22] 8051435: movl %eax,-4(%ebp)
|
65
|
-
[22] 8051438: cmpl $0,-4(%ebp)
|
66
|
-
[22] 805143c: setne %al
|
67
|
-
[22] 805143f: movzbl %al,%eax
|
68
|
-
[22] 8051442: movl %eax,-4(%ebp)
|
69
|
-
[22] 8051445: movl -4(%ebp),%eax
|
70
|
-
23. }
|
71
|
-
[23] 8051448: leave
|
72
|
-
[23] 8051449: ret
|
73
|
-
|
74
|
-
Binary:
|
75
|
-
|
76
|
-
55 89 e5 83 ec 08 ....... ..U.....
|
77
|
-
1430 33 c0 90 90 90 89 45 fc 83 7d fc 00 0f 95 c0 0f 3.....E. .}......
|
78
|
-
1440 b6 c0 89 45 fc 8b 45 fc c9 c3
|
data/test/apple-dof
DELETED
Binary file
|
@@ -1,19 +0,0 @@
|
|
1
|
-
solaris-devx:~/ruby-dtrace-dof/ruby-dtrace chris$ ruby -Iext:lib test/test_disabled_probe_effect.rb
|
2
|
-
Loaded suite test/test_disabled_probe_effect
|
3
|
-
Started
|
4
|
-
user system total real
|
5
|
-
noprobes: 0.020000 0.020000 0.040000 ( 0.042108)
|
6
|
-
disabled: 0.120000 0.110000 0.230000 ( 0.231237)
|
7
|
-
enabled: 2.670000 0.260000 2.930000 ( 2.940411)
|
8
|
-
.
|
9
|
-
Finished in 3.220336 seconds.
|
10
|
-
|
11
|
-
1 tests, 1 assertions, 0 failures, 0 errors
|
12
|
-
|
13
|
-
merge Dtrace::Probe and Dtrace::Stub:
|
14
|
-
|
15
|
-
Started
|
16
|
-
user system total real
|
17
|
-
noprobes: 0.000000 0.010000 0.010000 ( 0.020863)
|
18
|
-
disabled: 0.090000 0.090000 0.180000 ( 0.170912)
|
19
|
-
enabled: 2.690000 0.330000 3.020000 ( 3.027719)
|
data/test/dof
DELETED
Binary file
|
data/test/dof2
DELETED
Binary file
|