mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Add systemtap static probe points in generic and x86_64 pthread code.
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
/* Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007
|
||||
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.
|
||||
|
||||
@ -23,6 +22,8 @@
|
||||
#include <kernel-features.h>
|
||||
#include "pthreadP.h"
|
||||
|
||||
#include <stap-probe.h>
|
||||
|
||||
static const struct pthread_mutexattr default_attr =
|
||||
{
|
||||
/* Default is a normal mutex, not shared between processes. */
|
||||
@ -134,6 +135,8 @@ __pthread_mutex_init (mutex, mutexattr)
|
||||
// mutex->__spins = 0; already done by memset
|
||||
// mutex->__next = NULL; already done by memset
|
||||
|
||||
LIBC_PROBE (mutex_init, 1, mutex);
|
||||
|
||||
return 0;
|
||||
}
|
||||
strong_alias (__pthread_mutex_init, pthread_mutex_init)
|
||||
|
Reference in New Issue
Block a user