summaryrefslogtreecommitdiffstats
path: root/tapset/context-symbols.stp
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-04-02 12:38:15 -0400
committerDave Brolley <brolley@redhat.com>2009-04-02 12:38:15 -0400
commit2f53f831393d2f0db3d54260c2a7882eff17905c (patch)
treeba140bbad1fd4acaa7c2253949a2b2ade53952a2 /tapset/context-symbols.stp
parent2f54c4fe5a3aa21b4d5c38edabf83f3cdad0177d (diff)
parent15a78144473940a4e7c685cc57ba09a92f2293c6 (diff)
downloadsystemtap-steved-2f53f831393d2f0db3d54260c2a7882eff17905c.tar.gz
systemtap-steved-2f53f831393d2f0db3d54260c2a7882eff17905c.tar.xz
systemtap-steved-2f53f831393d2f0db3d54260c2a7882eff17905c.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Conflicts: configure
Diffstat (limited to 'tapset/context-symbols.stp')
-rw-r--r--tapset/context-symbols.stp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tapset/context-symbols.stp b/tapset/context-symbols.stp
index a3aae408..4c200aa8 100644
--- a/tapset/context-symbols.stp
+++ b/tapset/context-symbols.stp
@@ -66,7 +66,7 @@ function probefunc:string () %{ /* pure */
#else
((unsigned long)REG_IP(CONTEXT->regs) >= (unsigned long)PAGE_OFFSET)) {
#endif
- _stp_symbol_snprint(THIS->__retvalue, MAXSTRINGLEN, REG_IP(CONTEXT->regs));
+ _stp_symbol_snprint(THIS->__retvalue, MAXSTRINGLEN, REG_IP(CONTEXT->regs), current);
if (THIS->__retvalue[0] == '.') /* powerpc symbol has a dot*/
strlcpy(THIS->__retvalue,THIS->__retvalue + 1,MAXSTRINGLEN);
} else {
@@ -94,3 +94,8 @@ function probemod:string () %{ /* pure */
THIS->__retvalue[0] = '\0';
}
%}
+
+function symbolname:string (addr:long) %{ /* pure */
+ _stp_symbol_snprint(THIS->__retvalue, MAXSTRINGLEN, THIS->addr,
+ current);
+%}