summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/uprobes.exp
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2009-04-01 20:33:51 -0400
committerFrank Ch. Eigler <fche@elastic.org>2009-04-01 20:34:52 -0400
commit83ff01c2f669c66100a5cf7531dda9410a8ff6ce (patch)
tree35911f0e4169560fe357af123fc852c5c9e3db1e /testsuite/systemtap.base/uprobes.exp
parent1fd65aa57e608b544122b4aacdfae9cce6cb89dc (diff)
downloadsystemtap-steved-83ff01c2f669c66100a5cf7531dda9410a8ff6ce.tar.gz
systemtap-steved-83ff01c2f669c66100a5cf7531dda9410a8ff6ce.tar.xz
systemtap-steved-83ff01c2f669c66100a5cf7531dda9410a8ff6ce.zip
introduce [utrace_p] as dejagnu check for utrace presence in kernel
* testsuite/lib/systemtap.exp: Define here. * testsuite/systemtap.*/*.exp: Use it here. Eliminate duplicated utrace_support_present logic.
Diffstat (limited to 'testsuite/systemtap.base/uprobes.exp')
-rw-r--r--testsuite/systemtap.base/uprobes.exp9
1 files changed, 1 insertions, 8 deletions
diff --git a/testsuite/systemtap.base/uprobes.exp b/testsuite/systemtap.base/uprobes.exp
index 89250e7b..6344cbf0 100644
--- a/testsuite/systemtap.base/uprobes.exp
+++ b/testsuite/systemtap.base/uprobes.exp
@@ -18,14 +18,7 @@ if [file exists $path] then { pass "$test prep" } else { fail "$test prep" }
catch {exec gcc -g -o jennie jennie.c} err
if {$err == "" && [file exists jennie]} then { pass "$test compile" } else { fail "$test compile" }
-# Try to find utrace_attach symbol in /proc/kallsyms
-# copy from utrace_p5.exp
-set utrace_support_found 0
-set path "/proc/kallsyms"
-if {! [catch {exec grep -q utrace_attach $path} dummy]} {
- set utrace_support_found 1
-}
-if {$utrace_support_found == 0} {
+if {![utrace_p]} {
untested "$test -p4"; untested "$test -p5"
catch {exec rm -f jennie.c jennie}
return