ruby/test_systemtap.rb

10 lines
176 B
Ruby
Raw Normal View History

require 'rbconfig'
if RbConfig::CONFIG.select {|k, v| v =~ /dtrace/}.size == 1
exit true
else
puts 'ERROR: SystemTap (dtrace) support was not detected.'
exit false
end