From 8422c9a560e6e3c854739c8a13ecb1c6714f930f Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 25 May 2012 13:31:57 -0700 Subject: Add systemtap static probe points in setjmp/longjmp on x86. --- sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sysdeps/unix/sysv/linux/x86_64') diff --git a/sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S b/sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S index c392820cd0..d9bdb67d52 100644 --- a/sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S +++ b/sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S @@ -18,6 +18,7 @@ #include #include #include +#include #include @@ -103,7 +104,9 @@ ENTRY(____longjmp_chk) movl %ebx, %esi cfi_restore (%rsi) -.Lok: /* We add unwind information for the target here. */ +.Lok: + LIBC_PROBE (longjmp, 3, LP_SIZE@%RDI_LP, -4@%esi, LP_SIZE@%RDX_LP) + /* We add unwind information for the target here. */ cfi_def_cfa(%rdi, 0) cfi_register(%rsp,%r8) cfi_register(%rbp,%r9) @@ -122,5 +125,7 @@ ENTRY(____longjmp_chk) movl %esi, %eax mov %R8_LP, %RSP_LP movq %r9,%rbp + LIBC_PROBE (longjmp_target, 3, + LP_SIZE@%RDI_LP, -4@%eax, LP_SIZE@%RDX_LP) jmpq *%rdx END (____longjmp_chk) -- cgit v1.2.3-70-g09d2