gh-120400 :Support Linux perf profile to see Python calls on RISC-V architecture (#120089)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
This commit is contained in:
ixgbe00 2024-06-12 21:24:46 +08:00 committed by GitHub
parent 32d3e05fe6
commit 4b1e85bafc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 13 additions and 0 deletions

View file

@ -22,6 +22,14 @@ _Py_trampoline_func_start:
blr x3
ldp x29, x30, [sp], 16
ret
#endif
#ifdef __riscv
addi sp,sp,-16
sd ra,8(sp)
jalr a3
ld ra,8(sp)
addi sp,sp,16
jr ra
#endif
.globl _Py_trampoline_func_end
_Py_trampoline_func_end: