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 | |
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')
-rw-r--r-- | tapset/ChangeLog | 3 | ||||
-rw-r--r-- | tapset/utrace.stp | 11 |
2 files changed, 14 insertions, 0 deletions
diff --git a/tapset/ChangeLog b/tapset/ChangeLog index b2592e1e..779a2e30 100644 --- a/tapset/ChangeLog +++ b/tapset/ChangeLog @@ -1,3 +1,6 @@ +2008-08-07 Frank Ch. Eigler <fche@elastic.org> + + * utrace.stp: New file, for use by utrace $var expansions. 2008-08-04 Wenji Huang <wenji.huang@oracle.com> 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 */ +%} |