diff options
author | Gary Benson <gbenson@redhat.com> | 2012-07-26 11:03:35 +0100 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2012-07-27 14:03:20 +0100 |
commit | 815e6fa3e010628f77838abec18692cbfeb60809 (patch) | |
tree | 68a6c353d769cf5d2a9b3620251c757b9bf6e80b /elf/dl-close.c | |
parent | 9f98c16cfe10fd70fedd647b328adac1a9b38f78 (diff) | |
download | glibc-815e6fa3e010628f77838abec18692cbfeb60809.tar glibc-815e6fa3e010628f77838abec18692cbfeb60809.tar.gz glibc-815e6fa3e010628f77838abec18692cbfeb60809.tar.bz2 glibc-815e6fa3e010628f77838abec18692cbfeb60809.zip |
Add SystemTap static probes to the runtime linker. [BZ #14298]
Diffstat (limited to 'elf/dl-close.c')
-rw-r--r-- | elf/dl-close.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/elf/dl-close.c b/elf/dl-close.c index a250ea5e3e..45b218787b 100644 --- a/elf/dl-close.c +++ b/elf/dl-close.c @@ -31,6 +31,7 @@ #include <sys/mman.h> #include <sysdep-cancel.h> #include <tls.h> +#include <stap-probe.h> /* Type of the constructor functions. */ @@ -468,6 +469,7 @@ _dl_close_worker (struct link_map *map) struct r_debug *r = _dl_debug_initialize (0, nsid); r->r_state = RT_DELETE; _dl_debug_state (); + LIBC_PROBE (unmap_start, 2, nsid, r); if (unload_global) { @@ -737,6 +739,7 @@ _dl_close_worker (struct link_map *map) /* Notify the debugger those objects are finalized and gone. */ r->r_state = RT_CONSISTENT; _dl_debug_state (); + LIBC_PROBE (unmap_complete, 2, nsid, r); /* Recheck if we need to retry, release the lock. */ out: |