summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.context
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-04-07 12:25:53 +0200
committerMark Wielaard <mjw@redhat.com>2009-04-07 15:32:35 +0200
commitfc204b30292a3a5f1aa602171dc44d937cb2c20f (patch)
treecae1b41502dbd5e9c659c5f88c6599e9d7acf978 /testsuite/systemtap.context
parent782040b3f07a908790c074d94c6253c9966c18b2 (diff)
downloadsystemtap-steved-fc204b30292a3a5f1aa602171dc44d937cb2c20f.tar.gz
systemtap-steved-fc204b30292a3a5f1aa602171dc44d937cb2c20f.tar.xz
systemtap-steved-fc204b30292a3a5f1aa602171dc44d937cb2c20f.zip
Create usymname and usymdata variant that trigger STP_NEED_VMA_TRACKER.
* tapset/context-symbols.stp (syname, symdata): Pass NULL for kernel address. * tapset/ucontext-symbols.stp: New file defining usymname and usymdata. * testsuite/systemtap.context/usymbols.exp: Use usymname, remove STP_NEED_VMA_TRACKER hack. * testsuite/buildok/usymdata.stp: New test. * testsuite/buildok/usymname.stp: Likewise.
Diffstat (limited to 'testsuite/systemtap.context')
-rw-r--r--testsuite/systemtap.context/usymbols.exp5
1 files changed, 2 insertions, 3 deletions
diff --git a/testsuite/systemtap.context/usymbols.exp b/testsuite/systemtap.context/usymbols.exp
index 8af20126..39b3b442 100644
--- a/testsuite/systemtap.context/usymbols.exp
+++ b/testsuite/systemtap.context/usymbols.exp
@@ -35,7 +35,7 @@ set testscript {
probe syscall.rt_sigaction {
if (pid() == target() && execname() == "%s") {
handler = $act->sa_handler;
- printf("handler: %%s\n", symname(handler));
+ printf("handler: %%s\n", usymname(handler));
}
}
/* track through uprobes, so as to make sure we have the symbols */
@@ -56,8 +56,7 @@ if {[string equal "link" [file type $libpath]]} {
}
send_log "libpath: $libpath\n"
-# XXX Cheat, explicitly add STP_NEED_VMA_TRACKER
-set cmd [concat stap -DSTP_NEED_VMA_TRACKER -d $libpath -d $testexe -c $testexe -e {$script}]
+set cmd [concat stap -d $libpath -d $testexe -c $testexe -e {$script}]
send_log "cmd: $cmd\n"
catch {eval exec $cmd} res
send_log "cmd output: $res\n"