From 5acf7263d52992ce4144e0a3b3644985b9e792b4 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 25 May 2012 13:35:08 -0700 Subject: Add systemtap static probe points in generic and x86_64 pthread code. --- nptl/pthread_rwlock_unlock.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'nptl/pthread_rwlock_unlock.c') diff --git a/nptl/pthread_rwlock_unlock.c b/nptl/pthread_rwlock_unlock.c index 15418c82f5..a727d89b9c 100644 --- a/nptl/pthread_rwlock_unlock.c +++ b/nptl/pthread_rwlock_unlock.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2003, 2007 Free Software Foundation, Inc. +/* Copyright (C) 2003-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Martin Schwidefsky , 2003. @@ -21,11 +21,14 @@ #include #include #include +#include /* Unlock RWLOCK. */ int __pthread_rwlock_unlock (pthread_rwlock_t *rwlock) { + LIBC_PROBE (rwlock_unlock, 1, rwlock); + lll_lock (rwlock->__data.__lock, rwlock->__data.__shared); if (rwlock->__data.__writer) rwlock->__data.__writer = 0; -- cgit v1.2.3-70-g09d2