summaryrefslogtreecommitdiffstats
path: root/trace
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2015-05-17 04:32:45 +0200
committerJohn Crispin <blogic@openwrt.org>2015-05-14 05:22:59 +0200
commit11fa67184a3a26830223158345b1e7764bd33710 (patch)
treea0666687d4b001ea8dc725c8b48bcc5c85c6d26c /trace
parenta6afa72f192f6efe8374d0f0c77fb2a545225a92 (diff)
downloadunitd-11fa67184a3a26830223158345b1e7764bd33710.tar
unitd-11fa67184a3a26830223158345b1e7764bd33710.zip
trace: add support for ARM architecture
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'trace')
-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