summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorSteve Langasek <steve.langasek@canonical.com>2020-10-08 16:49:21 -0700
committerAliaksey Kandratsenka <alkondratenko@gmail.com>2020-12-19 18:16:39 -0800
commit313495587598fb1a69b94c44a83735f6056f6049 (patch)
tree3b07236e48dd04ee0e2be354395c2f530a2197a6 /m4
parentf0e289bdbb2fbbb7fa71496d846988c1bac0e310 (diff)
downloadgperftools-313495587598fb1a69b94c44a83735f6056f6049.tar.gz
Additional porting for riscv64.
Adds handling for the PC register, malloc_hook_mmap, and syscalls. Successfully built in Ubuntu with these changes.
Diffstat (limited to 'm4')
-rw-r--r--m4/pc_from_ucontext.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/m4/pc_from_ucontext.m4 b/m4/pc_from_ucontext.m4
index 9d76f4c..88c8abf 100644
--- a/m4/pc_from_ucontext.m4
+++ b/m4/pc_from_ucontext.m4
@@ -28,6 +28,7 @@ AC_DEFUN([AC_PC_FROM_UCONTEXT],
pc_fields="$pc_fields uc_mcontext.sc_ip" # Linux (ia64)
pc_fields="$pc_fields uc_mcontext.pc" # Linux (mips)
pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[[PT_NIP]]" # Linux (ppc)
+ pc_fields="$pc_fields uc_mcontext.__gregs[[REG_PC]]" # Linux (riscv64)
pc_fields="$pc_fields uc_mcontext.psw.addr" # Linux (s390)
pc_fields="$pc_fields uc_mcontext.gregs[[R15]]" # Linux (arm old [untested])
pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm arch 5)