|
|
147e83 |
diff -pruN glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/lowlevellock.c glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/lowlevellock.c
|
|
|
147e83 |
--- glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/lowlevellock.c 2012-12-25 08:32:13.000000000 +0530
|
|
|
147e83 |
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/lowlevellock.c 2014-09-05 21:50:56.982975803 +0530
|
|
|
147e83 |
@@ -21,11 +21,13 @@
|
|
|
147e83 |
#include <sysdep.h>
|
|
|
147e83 |
#include <lowlevellock.h>
|
|
|
147e83 |
#include <sys/time.h>
|
|
|
147e83 |
+#include <stap-probe.h>
|
|
|
147e83 |
|
|
|
147e83 |
|
|
|
147e83 |
void
|
|
|
147e83 |
__lll_lock_wait_private (int *futex)
|
|
|
147e83 |
{
|
|
|
147e83 |
+ LIBC_PROBE (lll_lock_wait_private, 1, futex);
|
|
|
147e83 |
if (*futex == 2)
|
|
|
147e83 |
lll_futex_wait (futex, 2, LLL_PRIVATE);
|
|
|
147e83 |
|
|
|
147e83 |
@@ -39,6 +42,7 @@ __lll_lock_wait_private (int *futex)
|
|
|
147e83 |
void
|
|
|
147e83 |
__lll_lock_wait (int *futex, int private)
|
|
|
147e83 |
{
|
|
|
147e83 |
+ LIBC_PROBE (lll_lock_wait, 2, futex, FUTEX_WAIT | private);
|
|
|
147e83 |
if (*futex == 2)
|
|
|
147e83 |
lll_futex_wait (futex, 2, private);
|
|
|
147e83 |
|
|
|
147e83 |
diff -pruN glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
|
|
|
147e83 |
--- glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h 2012-12-25 08:32:13.000000000 +0530
|
|
|
147e83 |
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h 2014-09-05 21:51:58.722483631 +0530
|
|
|
147e83 |
@@ -19,6 +19,8 @@
|
|
|
147e83 |
#ifndef _LOWLEVELLOCK_H
|
|
|
147e83 |
#define _LOWLEVELLOCK_H 1
|
|
|
147e83 |
|
|
|
147e83 |
+#include <stap-probe.h>
|
|
|
147e83 |
+
|
|
|
147e83 |
#include <time.h>
|
|
|
147e83 |
#include <sys/param.h>
|
|
|
147e83 |
#include <bits/pthreadtypes.h>
|
|
|
147e83 |
@@ -106,6 +108,7 @@
|
|
|
147e83 |
INTERNAL_SYSCALL_DECL (__err); \
|
|
|
147e83 |
long int __ret; \
|
|
|
147e83 |
\
|
|
|
147e83 |
+ LIBC_PROBE (lll_futex_wake, 3, futexp, nr, private); \
|
|
|
147e83 |
__ret = INTERNAL_SYSCALL (futex, __err, 4, (futexp), \
|
|
|
147e83 |
__lll_private_flag (FUTEX_WAKE, private), \
|
|
|
147e83 |
(nr), 0); \
|
|
|
147e83 |
diff -pruN glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h
|
|
|
147e83 |
--- glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h 2012-12-25 08:32:13.000000000 +0530
|
|
|
147e83 |
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h 2014-09-05 21:51:58.722483631 +0530
|
|
|
147e83 |
@@ -19,6 +19,8 @@
|
|
|
147e83 |
#ifndef _LOWLEVELLOCK_H
|
|
|
147e83 |
#define _LOWLEVELLOCK_H 1
|
|
|
147e83 |
|
|
|
147e83 |
+#include <stap-probe.h>
|
|
|
147e83 |
+
|
|
|
147e83 |
#include <time.h>
|
|
|
147e83 |
#include <sys/param.h>
|
|
|
147e83 |
#include <bits/pthreadtypes.h>
|
|
|
147e83 |
@@ -122,6 +124,7 @@
|
|
|
147e83 |
register unsigned long int __r4 asm ("4") = (unsigned long int) (nr); \
|
|
|
147e83 |
register unsigned long int __result asm ("2"); \
|
|
|
147e83 |
\
|
|
|
147e83 |
+ LIBC_PROBE (lll_futex_wake, 3, futex, nr, private); \
|
|
|
147e83 |
__asm __volatile ("svc %b1" \
|
|
|
147e83 |
: "=d" (__result) \
|
|
|
147e83 |
: "i" (SYS_futex), "0" (__r2), "d" (__r3), "d" (__r4) \
|