diff options
author | Masami Hiramatsu <mhiramat@redhat.com> | 2008-09-09 16:02:56 -0400 |
---|---|---|
committer | Masami Hiramatsu <mhiramat@redhat.com> | 2008-09-09 16:02:56 -0400 |
commit | 6270adc1ec2b89a201c932b94fb8ec8abc4e977f (patch) | |
tree | df0bf7331aa0889afee06bac90b6423ba71cb680 /tapset/utrace.stp | |
parent | bc54e71c6747fa2c234737d3a715b0decc3663b2 (diff) | |
download | systemtap-steved-6270adc1ec2b89a201c932b94fb8ec8abc4e977f.tar.gz systemtap-steved-6270adc1ec2b89a201c932b94fb8ec8abc4e977f.tar.xz systemtap-steved-6270adc1ec2b89a201c932b94fb8ec8abc4e977f.zip |
Add $argN context variables on per-process-syscall probes
Diffstat (limited to 'tapset/utrace.stp')
-rw-r--r-- | tapset/utrace.stp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tapset/utrace.stp b/tapset/utrace.stp index 3831ca3c..2b661573 100644 --- a/tapset/utrace.stp +++ b/tapset/utrace.stp @@ -5,7 +5,10 @@ #include "syscall.h" %} - function _utrace_syscall_nr:long () %{ THIS->__retvalue = __stp_user_syscall_nr(CONTEXT->regs); /* pure */ %} + +function _utrace_syscall_arg:long (n:long) %{ + THIS->__retvalue = *__stp_user_syscall_arg(current, CONTEXT->regs, (int)THIS->n); /* pure */ +%} |