1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Add --enable-systemtap configuration to define static probe points.

This commit is contained in:
Roland McGrath
2012-05-25 13:40:20 -07:00
parent 21708942c9
commit 3a097cc7a1
10 changed files with 179 additions and 5 deletions

View File

@ -31,6 +31,8 @@
#include <shlib-compat.h>
#include <stap-probe.h>
/* Local function to start thread and handle cleanup. */
static int start_thread (void *arg);
@ -299,6 +301,8 @@ start_thread (void *arg)
CANCEL_RESET (oldtype);
}
LIBC_PROBE (pthread_start, 3, (pthread_t) pd, pd->start_routine, pd->arg);
/* Run the code the user provided. */
#ifdef CALL_THREAD_FCT
THREAD_SETMEM (pd, result, CALL_THREAD_FCT (pd));