diff options
author | Dave Brolley <brolley@redhat.com> | 2009-08-06 14:35:08 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-08-06 14:35:08 -0400 |
commit | 6dc27b9452aa2f52dfb3414c0ad8192ec65fb2d1 (patch) | |
tree | e4ddccdf7613a7788ad74bbc18727d35abf133fe /testsuite/lib | |
parent | 3c96130fde2f114d0ecca13870ac91b00219cf6c (diff) | |
parent | cab97f033153b93d1d26388a25a65052cf36fc8d (diff) | |
download | systemtap-steved-6dc27b9452aa2f52dfb3414c0ad8192ec65fb2d1.tar.gz systemtap-steved-6dc27b9452aa2f52dfb3414c0ad8192ec65fb2d1.tar.xz systemtap-steved-6dc27b9452aa2f52dfb3414c0ad8192ec65fb2d1.zip |
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'testsuite/lib')
-rw-r--r-- | testsuite/lib/systemtap.exp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/lib/systemtap.exp b/testsuite/lib/systemtap.exp index 76fd57bd..82afb6b7 100644 --- a/testsuite/lib/systemtap.exp +++ b/testsuite/lib/systemtap.exp @@ -26,6 +26,29 @@ proc utrace_p {} { } +proc uprobes_p {} { + global env + if {! [utrace_p]} { + return 0 + } + set uprobes $env(SYSTEMTAP_RUNTIME)/uprobes + set res [catch "exec make -q -C $uprobes uprobes.ko" output] + if {$res != 0} { + if {! [installtest_p]} { + # build as user in the source tree + verbose -log "exec make -C $uprobes" + set res [catch "exec make -C $uprobes" output] + verbose -log "OUT $output" + verbose -log "RC $res" + } else { + # build as root in the installed location + set res [as_root "make -C $uprobes"] + } + } + if {$res == 0} { return 1 } else { return 0 } +} + + proc print_systemtap_version {} { set version [exec /bin/uname -r] set location "/boot/vmlinux-$version" |