projects
/
project
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6afa72
)
trace: add support for ARM architecture
author
Daniel Golle
<daniel@makrotopia.org>
Sun, 17 May 2015 02:32:45 +0000
(
04:32
+0200)
committer
John 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
patch
|
blob
|
history
diff --git
a/trace/trace.c
b/trace/trace.c
index d70957d1af83a5e25844c9566c226bed1c577659..5941f90661204e50d615f293404c57e86f202485 100644
(file)
--- 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