diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-08-07 13:50:09 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-08-07 13:50:09 -0400 |
commit | 12a7f85b2dd19fbfa34c81f6cba15015a8a2723d (patch) | |
tree | a6281a0a52c2bada70748f6fef8c5b65e3d7cac8 /tapset/utrace.stp | |
parent | 104c6237f97a4a04b5473210ed6cde7509b12b08 (diff) | |
download | systemtap-steved-12a7f85b2dd19fbfa34c81f6cba15015a8a2723d.tar.gz systemtap-steved-12a7f85b2dd19fbfa34c81f6cba15015a8a2723d.tar.xz systemtap-steved-12a7f85b2dd19fbfa34c81f6cba15015a8a2723d.zip |
rework utrace $syscall var to expand to tapset fn, not synthetic hard-coded one
Diffstat (limited to 'tapset/utrace.stp')
-rw-r--r-- | tapset/utrace.stp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tapset/utrace.stp b/tapset/utrace.stp new file mode 100644 index 00000000..3831ca3c --- /dev/null +++ b/tapset/utrace.stp @@ -0,0 +1,11 @@ +/* utrace-only subset of register accessors */ + + +%{ +#include "syscall.h" +%} + + +function _utrace_syscall_nr:long () %{ + THIS->__retvalue = __stp_user_syscall_nr(CONTEXT->regs); /* pure */ +%} |