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_mutex_destroy.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'nptl/pthread_mutex_destroy.c') diff --git a/nptl/pthread_mutex_destroy.c b/nptl/pthread_mutex_destroy.c index 408b16a7b2..107ec8e4e4 100644 --- a/nptl/pthread_mutex_destroy.c +++ b/nptl/pthread_mutex_destroy.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. +/* Copyright (C) 2002-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 2002. @@ -19,11 +19,15 @@ #include #include "pthreadP.h" +#include + int __pthread_mutex_destroy (mutex) pthread_mutex_t *mutex; { + LIBC_PROBE (mutex_destroy, 1, mutex); + if ((mutex->__data.__kind & PTHREAD_MUTEX_ROBUST_NORMAL_NP) == 0 && mutex->__data.__nusers != 0) return EBUSY; -- cgit v1.2.1