summaryrefslogtreecommitdiffstats
path: root/tapset
diff options
context:
space:
mode:
Diffstat (limited to 'tapset')
-rw-r--r--tapset/ChangeLog12
-rw-r--r--tapset/context-symbols.stp7
-rw-r--r--tapset/context-unwind.stp3
3 files changed, 20 insertions, 2 deletions
diff --git a/tapset/ChangeLog b/tapset/ChangeLog
index da184191..d473a797 100644
--- a/tapset/ChangeLog
+++ b/tapset/ChangeLog
@@ -1,3 +1,15 @@
+2008-12-15 Mark Wielaard <mjw@redhat.com>
+
+ * context-symbols.stp (probefunc): Call _stp_symbol_snprint with
+ current task.
+
+2008-12-10 Mark Wielaard <mjw@redhat.com>
+
+ * context-symbols.stp: Define STP_NEED_TASK_FINDER_VMA.
+ (symbolname): New function.
+ * context-unwind.stp (caller): Pass current task to
+ _stp_symbol_snprint.
+
2009-01-06 Frank Ch. Eigler <fche@elastic.org>
PR 9699.
diff --git a/tapset/context-symbols.stp b/tapset/context-symbols.stp
index 79645f4f..bd9a93b9 100644
--- a/tapset/context-symbols.stp
+++ b/tapset/context-symbols.stp
@@ -63,7 +63,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 {
@@ -93,3 +93,8 @@ function probemod:string () %{ /* pure */
THIS->__retvalue[0] = '\0';
}
%}
+
+function symbolname:string (addr:long) %{ /* pure */
+ _stp_symbol_snprint(THIS->__retvalue, MAXSTRINGLEN, THIS->addr,
+ current);
+%}
diff --git a/tapset/context-unwind.stp b/tapset/context-unwind.stp
index 4c5ed34b..59d111ee 100644
--- a/tapset/context-unwind.stp
+++ b/tapset/context-unwind.stp
@@ -51,7 +51,8 @@ function backtrace:string () %{ /* pure */
function caller:string() %{ /* pure */
if (CONTEXT->pi)
_stp_symbol_snprint( THIS->__retvalue, MAXSTRINGLEN,
- (unsigned long)_stp_ret_addr_r(CONTEXT->pi));
+ (unsigned long)_stp_ret_addr_r(CONTEXT->pi),
+ current);
else
strlcpy(THIS->__retvalue,"unknown",MAXSTRINGLEN);
%}