aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorIlya Leoshkevich <[email protected]>2019-07-04 16:18:15 +0200
committerVasily Gorbik <[email protected]>2019-11-30 10:52:44 +0100
commit914d52e46490b6599b7f03fad233f4f19bf23cf7 (patch)
treefc4a50362037e203cfacff290f77f8db02df8fb6 /scripts/gdb/linux/utils.py
parentea1f56fa16ae5f6e67f6ea03836b36c6053d33d1 (diff)
s390: implement perf_arch_fetch_caller_regs
On s390 bpf_get_stack_raw_tp() returns 0 entries for both kernel and user stacks. While there is no practical unwinding solution for userspace on s390 at this moment, there certainly is a kernel unwinder. However, it is not properly integrated with BPF. In order to start unwinding, bpf_get_stack_raw_tp() obtains the current kernel register values using perf_fetch_caller_regs(), which is not implemented for s390. The actual unwinding then happens by passing those registers to perf_callchain_kernel(). Implement perf_arch_fetch_caller_regs() for s390, where __builtin_frame_address(0) points to back_chain. Signed-off-by: Ilya Leoshkevich <[email protected]> Acked-by: Heiko Carstens <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions