summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.context
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-04-02 18:42:38 +0200
committerMark Wielaard <mjw@redhat.com>2009-04-02 18:42:38 +0200
commitb2b336288ce9e92a21efe7dcd314f604bc97be29 (patch)
treeb2a9b34d783aca93dfba67dbe93401102cd90eba /testsuite/systemtap.context
parent15a78144473940a4e7c685cc57ba09a92f2293c6 (diff)
downloadsystemtap-steved-b2b336288ce9e92a21efe7dcd314f604bc97be29.tar.gz
systemtap-steved-b2b336288ce9e92a21efe7dcd314f604bc97be29.tar.xz
systemtap-steved-b2b336288ce9e92a21efe7dcd314f604bc97be29.zip
PR6580: Implement symname, symdata and modname context functions.
This adds a couple of the suggested context/stack revamp functions from PR6580. In particular it replaces the symbolname() function that sneaked in with the pr6866 branch merge with the suggested symname(). * runtime/sym.c (_stp_mod_sec_lookup): Make section optional. (_stp_symbol_snprint): Provide a way to get optional module info. * tapset/context-symbols.stp: Replace symbolname() with symname(), add modname() and symdata(). (probemod): Implement pc based fallback. * tapset/context-unwind.stp (caller): Adjust for _stp_symbol_snprint change. * testsuite/systemtap.context/usymbols.exp: Use new symname. * testsuite/buildok/modname.stp: New test. * testsuite/buildok/symdata.stp: Likewise. * testsuite/buildok/symname.stp: Likewise.
Diffstat (limited to 'testsuite/systemtap.context')
-rw-r--r--testsuite/systemtap.context/usymbols.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/systemtap.context/usymbols.exp b/testsuite/systemtap.context/usymbols.exp
index 82f68b67..8af20126 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", symbolname(handler));
+ printf("handler: %%s\n", symname(handler));
}
}
/* track through uprobes, so as to make sure we have the symbols */