Skip to content

ARM support for syscall tracing

Wade Farnsworth linux-arm-kernel 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 0 repliesNew
  2. v33 patches 0 repliesSuperseded
  3. v23 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches0 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ARM: add support for the generic syscall.h interfacearch/arm/include/asm/syscall.h+93 -00 replies
2/3ARM: add TRACEHOOK supportarch/arm/Kconfig arch/arm/include/asm/ptrace.h arch/arm/kernel/ptrace.c +1 more+14 -150 replies
3/3ARM: support syscall tracingarch/arm/Kconfig arch/arm/include/asm/syscall.h arch/arm/include/asm/thread_info.h +3 more+49 -70 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchWill Deacon
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/3] ARM support for syscall tracing

This is a rework of Steven Walter's syscall tracing patches first posted here:

http://lists.infradead.org/pipermail/linux-arm-kernel/2011-November/074454.html

I've rebased the patches against the current mainline master branch, as well as implemented several changes based on feedback from Will Deacon and Russel King.

v2: - Tested on EABI and OABI.
- Removed an instance of the ?: operator in syscall_set_return_value()
- Moved #define of NR_syscalls to syscall.h
- Changed the test of NR_syscalls vs __NR_syscalls in entry-common.S to .ifne
v3: - Added Will Deacon's Reviewed-by line. Code is identical to v2.
v4: - Updated comment and error string for the NR_syscalls test to
reflect that it's now testing for inequality.

Russell, now that this has been reviewed by Will and tested with both ABIs, is this okay to submit to your patch tracker?

Wade Farnsworth (3):
ARM: add support for the generic syscall.h interface
ARM: add TRACEHOOK support
ARM: support syscall tracing

 arch/arm/Kconfig                   |    2 +
 arch/arm/include/asm/ptrace.h      |    5 ++
 arch/arm/include/asm/syscall.h     |   97 ++++++++++++++++++++++++++++++++++++
 arch/arm/include/asm/thread_info.h |    2 +
 arch/arm/include/asm/unistd.h      |    8 +++
 arch/arm/kernel/entry-common.S     |   18 ++++++-
 arch/arm/kernel/ptrace.c           |   34 +++++++------
 arch/arm/kernel/signal.c           |    2 +
 8 files changed, 151 insertions(+), 17 deletions(-)
 create mode 100644 arch/arm/include/asm/syscall.h