summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--trace/trace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/trace/trace.c b/trace/trace.c
index d70957d..5941f90 100644
--- a/trace/trace.c
+++ b/trace/trace.c
@@ -42,6 +42,8 @@
# define EF_REG2 8
# endif
#define reg_syscall_nr (EF_REG2 / 4)
+#elif defined(__arm__)
+#define reg_syscall_nr _offsetof(struct user, regs.uregs[7])
#else
#error tracing is not supported on this architecture
#endif