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