linux_dsm_epyc7002/arch/arm64/kernel/probes
Marc Zyngier 3b7d14e9f3 arm64: kprobes: Cleanup jprobe_return
jprobe_return seems to have aged badly. Comments referring to
non-existent behaviours, and a dangerous habit of messing
with registers without telling the compiler.

This patches applies the following remedies:
- Fix the comments to describe the actual behaviour
- Tidy up the asm sequence to directly assign the
  stack pointer without clobbering extra registers
- Mark the rest of the function as unreachable() so
  that the compiler knows that there is no need for
  an epilogue
- Stop making jprobe_return_break a global function
  (you really don't want to call that guy, and it isn't
  even a function).

Tested with tcp_probe.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2016-07-21 11:47:52 +01:00
..
decode-insn.c arm64: kprobes instruction simulation support 2016-07-19 15:03:21 +01:00
decode-insn.h arm64: kprobes instruction simulation support 2016-07-19 15:03:21 +01:00
kprobes_trampoline.S arm64: Add trampoline code for kretprobes 2016-07-19 15:03:22 +01:00
kprobes.c arm64: kprobes: Cleanup jprobe_return 2016-07-21 11:47:52 +01:00
Makefile arm64: Add trampoline code for kretprobes 2016-07-19 15:03:22 +01:00
simulate-insn.c arm64: kprobes instruction simulation support 2016-07-19 15:03:21 +01:00
simulate-insn.h arm64: kprobes instruction simulation support 2016-07-19 15:03:21 +01:00