aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorMasami Hiramatsu <[email protected]>2021-10-21 09:55:09 +0900
committerSteven Rostedt (VMware) <[email protected]>2021-10-22 12:16:53 -0400
commitcd9bc2c9258816dc934b300705076519d7375b81 (patch)
tree3be8beecf0c48ccece7a6f36a2c10ca19117753a /scripts/gdb/linux/utils.py
parentfc6d647638a8412800dfd10ad687709cb4aee373 (diff)
arm64: Recover kretprobe modified return address in stacktrace
Since the kretprobe replaces the function return address with the kretprobe_trampoline on the stack, stack unwinder shows it instead of the correct return address. This checks whether the next return address is the __kretprobe_trampoline(), and if so, try to find the correct return address from the kretprobe instance list. For this purpose this adds 'kr_cur' loop cursor to memorize the current kretprobe instance. With this fix, now arm64 can enable CONFIG_ARCH_CORRECT_STACKTRACE_ON_KRETPROBE, and pass the kprobe self tests. Signed-off-by: Masami Hiramatsu <[email protected]> Acked-by: Will Deacon <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions