mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
Update.
* elf/dl-fini.c (_dl_fini): Combine _dl_debug_printf calls. * elf/rtld.c (print_statistics): Likewise.
This commit is contained in:
parent
53bfdc1cf6
commit
42af49f875
@ -1,5 +1,8 @@
|
||||
2004-03-06 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* elf/dl-fini.c (_dl_fini): Combine _dl_debug_printf calls.
|
||||
* elf/rtld.c (print_statistics): Likewise.
|
||||
|
||||
* elf/dl-open.c: No need to pass any parameter to _dl_start_profile.
|
||||
They are the same in both places.
|
||||
* elf/dl-profile.c: Likewise.
|
||||
|
@ -174,13 +174,9 @@ _dl_fini (void)
|
||||
__rtld_lock_unlock_recursive (GL(dl_load_lock));
|
||||
|
||||
if (__builtin_expect (GLRO(dl_debug_mask) & DL_DEBUG_STATISTICS, 0))
|
||||
{
|
||||
_dl_debug_printf ("\nruntime linker statistics:\n");
|
||||
_dl_debug_printf ("\
|
||||
final number of relocations: %lu\n",
|
||||
GL(dl_num_relocations));
|
||||
_dl_debug_printf ("\
|
||||
final number of relocations from cache: %lu\n",
|
||||
GL(dl_num_cache_relocations));
|
||||
}
|
||||
_dl_debug_printf ("\nruntime linker statistics:\n"
|
||||
" final number of relocations: %lu\n"
|
||||
"final number of relocations from cache: %lu\n",
|
||||
GL(dl_num_relocations),
|
||||
GL(dl_num_cache_relocations));
|
||||
}
|
||||
|
10
elf/rtld.c
10
elf/rtld.c
@ -2266,11 +2266,11 @@ print_statistics (hp_timing_t *rtld_total_timep)
|
||||
num_relative_relocations += l->l_info[VERSYMIDX (DT_RELACOUNT)]->d_un.d_val;
|
||||
}
|
||||
|
||||
_dl_debug_printf (" number of relocations: %lu\n",
|
||||
GL(dl_num_relocations));
|
||||
_dl_debug_printf (" number of relocations from cache: %lu\n",
|
||||
GL(dl_num_cache_relocations));
|
||||
_dl_debug_printf (" number of relative relocations: %lu\n",
|
||||
_dl_debug_printf (" number of relocations: %lu\n"
|
||||
" number of relocations from cache: %lu\n"
|
||||
" number of relative relocations: %lu\n",
|
||||
GL(dl_num_relocations),
|
||||
GL(dl_num_cache_relocations),
|
||||
num_relative_relocations);
|
||||
|
||||
#ifndef HP_TIMING_NONAVAIL
|
||||
|
Loading…
Reference in New Issue
Block a user