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/rtld.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/rtld.c')
-rw-r--r-- | elf/rtld.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/elf/rtld.c b/elf/rtld.c index 6bcf224c49..06c4220c03 100644 --- a/elf/rtld.c +++ b/elf/rtld.c @@ -39,6 +39,7 @@ #include <dl-osinfo.h> #include <dl-procinfo.h> #include <tls.h> +#include <stap-probe.h> #include <stackinfo.h> #include <assert.h> @@ -1683,6 +1684,7 @@ ERROR: ld.so: object '%s' cannot be loaded as audit interface: %s; ignored.\n", /* We start adding objects. */ r->r_state = RT_ADD; _dl_debug_state (); + LIBC_PROBE (init_start, 2, LM_ID_BASE, r); /* Auditing checkpoint: we are ready to signal that the initial map is being constructed. */ @@ -2402,6 +2404,7 @@ ERROR: ld.so: object '%s' cannot be loaded as audit interface: %s; ignored.\n", r = _dl_debug_initialize (0, LM_ID_BASE); r->r_state = RT_CONSISTENT; _dl_debug_state (); + LIBC_PROBE (init_complete, 2, LM_ID_BASE, r); #ifndef MAP_COPY /* We must munmap() the cache file. */ |