Class: Dtrace::Provider::Solaris
- Inherits:
-
Dtrace::Provider
- Object
- Dtrace::Provider
- Dtrace::Provider::Solaris
- Defined in:
- lib/dtrace/provider/solaris.rb
Instance Method Summary collapse
-
#dtrace_object ⇒ Object
build the dtrace.o (dtrace -G).
-
#link ⇒ Object
build the .so.
-
#ruby_object ⇒ Object
build the .o.
Methods inherited from Dtrace::Provider
create, #enable, #initialize, #probe
Constructor Details
This class inherits a constructor from Dtrace::Provider
Instance Method Details
#dtrace_object ⇒ Object
build the dtrace.o (dtrace -G)
18 19 20 |
# File 'lib/dtrace/provider/solaris.rb', line 18 def dtrace_object run "/usr/sbin/dtrace -G -s #{@tempdir}/probes.d -o #{@tempdir}/probes.o #{@tempdir}/#{@name}.o" end |
#link ⇒ Object
build the .so
23 24 25 |
# File 'lib/dtrace/provider/solaris.rb', line 23 def link run "#{Config::CONFIG['CC']} -shared -o #{@tempdir}/#{@name}.so #{@tempdir}/#{@name}.o #{@tempdir}/probes.o" end |
#ruby_object ⇒ Object
build the .o
13 14 15 |
# File 'lib/dtrace/provider/solaris.rb', line 13 def ruby_object run "#{Config::CONFIG['CC']} -I#{hdrdir} -o #{@tempdir}/#{@name}.o -c #{@tempdir}/probes.c" end |