aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/s390/s390-32/setjmp.S
diff options
context:
space:
mode:
authorStefan Liebler <stli@linux.vnet.ibm.com>2014-11-13 10:44:42 +0100
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>2014-11-13 10:44:42 +0100
commit53244a4e12797f10c028d2cf0e091330854c44e7 (patch)
tree5d507bb411c3c4c1131ead9d5eda8ab88fc69d22 /sysdeps/s390/s390-32/setjmp.S
parent47df8251e8df7570d9581806113723aeb07dc35d (diff)
downloadglibc-53244a4e12797f10c028d2cf0e091330854c44e7.tar
glibc-53244a4e12797f10c028d2cf0e091330854c44e7.tar.gz
glibc-53244a4e12797f10c028d2cf0e091330854c44e7.tar.bz2
glibc-53244a4e12797f10c028d2cf0e091330854c44e7.zip
S/390: Add SystemTap probes to longjmp and setjmp.
Diffstat (limited to 'sysdeps/s390/s390-32/setjmp.S')
-rw-r--r--sysdeps/s390/s390-32/setjmp.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/s390/s390-32/setjmp.S b/sysdeps/s390/s390-32/setjmp.S
index c0cf3abe17..f601f2589c 100644
--- a/sysdeps/s390/s390-32/setjmp.S
+++ b/sysdeps/s390/s390-32/setjmp.S
@@ -22,6 +22,7 @@
#define _SETJMP_H
#include <bits/setjmp.h>
#include <shlib-compat.h>
+#include <stap-probe.h>
#if !defined IS_IN_rtld
# if defined SHARED && SHLIB_COMPAT (libc, GLIBC_2_19, GLIBC_2_20)
@@ -53,6 +54,9 @@ END (__setjmp)
ENTRY(__sigsetjmp)
.Linternal_sigsetjmp:
+ /* setjmp probe expects sig/setjmp first argument (4@%r2), second
+ argument (-4@%r3) and target address (4@%r14). */
+ LIBC_PROBE (setjmp, 3, 4@%r2, -4@%r3, 4@%r14)
#ifdef PTR_MANGLE
stm %r6,%r13,0(%r2) /* store registers in jmp_buf */
lr %r4,%r14