mirror of
https://sourceware.org/git/glibc.git
synced 2026-01-06 11:51:29 +03:00
Add systemtap static probe points in generic and x86_64 pthread code.
This commit is contained in:
@@ -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 <drepper@redhat.com>, 2002.
|
||||
|
||||
@@ -19,11 +19,15 @@
|
||||
#include <errno.h>
|
||||
#include "pthreadP.h"
|
||||
|
||||
#include <stap-probe.h>
|
||||
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user