diff options
author | Dave Brolley <brolley@redhat.com> | 2009-09-17 20:36:24 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-09-17 20:36:24 -0400 |
commit | 762684a57fa5420cc122b475f592545e8eeb29cd (patch) | |
tree | c1b55657f1aff31e7298d76852bbe8522a84db13 /tapset/context-unwind.stp | |
parent | 8afee8bbf045e858dae186d40653293c99dbbcdd (diff) | |
parent | 6bde4f381475cea055352d8ad5f60bb2f24de21d (diff) | |
download | systemtap-steved-762684a57fa5420cc122b475f592545e8eeb29cd.tar.gz systemtap-steved-762684a57fa5420cc122b475f592545e8eeb29cd.tar.xz systemtap-steved-762684a57fa5420cc122b475f592545e8eeb29cd.zip |
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'tapset/context-unwind.stp')
-rw-r--r-- | tapset/context-unwind.stp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tapset/context-unwind.stp b/tapset/context-unwind.stp index d6654d25..33431fd0 100644 --- a/tapset/context-unwind.stp +++ b/tapset/context-unwind.stp @@ -8,7 +8,7 @@ // later version. // <tapsetdescription> // Context functions provide additional information about where an event occurred. These functions can -//provide information such as a backtrace to where the event occured and the current register values for the +//provide information such as a backtrace to where the event occurred and the current register values for the //processor. // </tapsetdescription> %{ @@ -48,6 +48,19 @@ function backtrace:string () %{ /* pure */ %} /** + * sfunction task_backtrace - Hex backtrace of an arbitrary task + * @task: pointer to task_struct + * + * Return a string of hex addresses that are a backtrace of the + * stack of a particular task. Output may be truncated as per + * maximum string length. + */ +function task_backtrace:string (task:long) %{ /* pure */ + _stp_stack_snprint_tsk(THIS->__retvalue, MAXSTRINGLEN, + (struct task_struct *)(unsigned long)THIS->task, 0, MAXTRACE); +%} + +/** * sfunction caller - Return name and address of calling function * * Return the address and name of the calling function. |