From: Daniel Golle Date: Sun, 17 May 2015 02:32:45 +0000 (+0200) Subject: trace: add support for ARM architecture X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=11fa67184a3a26830223158345b1e7764bd33710;p=oweals%2Fprocd.git trace: add support for ARM architecture Signed-off-by: Daniel Golle --- 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