[OpenWrt-Devel] [PATCH 1/3] trace: add support for ARM architecture

Daniel Golle daniel at makrotopia.org
Sat May 16 22:32:45 EDT 2015


Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
 trace/trace.c | 2 ++
 1 file changed, 2 insertions(+)

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
-- 
2.4.0
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list