summaryrefslogtreecommitdiffstats
path: root/tapset/utrace.stp
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-08-07 13:50:09 -0400
committerFrank Ch. Eigler <fche@elastic.org>2008-08-07 13:50:09 -0400
commit12a7f85b2dd19fbfa34c81f6cba15015a8a2723d (patch)
treea6281a0a52c2bada70748f6fef8c5b65e3d7cac8 /tapset/utrace.stp
parent104c6237f97a4a04b5473210ed6cde7509b12b08 (diff)
downloadsystemtap-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.stp11
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 */
+%}