trace: add support for ARM architecture
authorDaniel Golle <daniel@makrotopia.org>
Sun, 17 May 2015 02:32:45 +0000 (04:32 +0200)
committerJohn Crispin <blogic@openwrt.org>
Thu, 14 May 2015 03:22:59 +0000 (05:22 +0200)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
trace/trace.c

index d70957d1af83a5e25844c9566c226bed1c577659..5941f90661204e50d615f293404c57e86f202485 100644 (file)
@@ -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