summaryrefslogtreecommitdiffstats
path: root/tapset
diff options
context:
space:
mode:
Diffstat (limited to 'tapset')
-rw-r--r--tapset/ChangeLog7
-rw-r--r--tapset/context-symbols.stp8
-rw-r--r--tapset/context-unwind.stp3
3 files changed, 17 insertions, 1 deletions
diff --git a/tapset/ChangeLog b/tapset/ChangeLog
index 626ad67b..30634bcc 100644
--- a/tapset/ChangeLog
+++ b/tapset/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
2008-12-09 Frank Ch. Eigler <fche@elastic.org>
PR 6961.
diff --git a/tapset/context-symbols.stp b/tapset/context-symbols.stp
index 79645f4f..fbb51767 100644
--- a/tapset/context-symbols.stp
+++ b/tapset/context-symbols.stp
@@ -11,6 +11,9 @@
#ifndef STP_NEED_SYMBOL_DATA
#define STP_NEED_SYMBOL_DATA 1
#endif
+#ifndef STP_NEED_TASK_FINDER_VMA
+#define STP_NEED_TASK_FINDER_VMA 1
+#endif
%}
/**
@@ -93,3 +96,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);
%}