Class: Dtrace::Provider::Solaris

Inherits:
Dtrace::Provider show all
Defined in:
lib/dtrace/provider/solaris.rb

Instance Method Summary collapse

Methods inherited from Dtrace::Provider

create, #enable, #initialize, #probe

Constructor Details

This class inherits a constructor from Dtrace::Provider

Instance Method Details

#dtrace_objectObject

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

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_objectObject

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