This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

LD_DEBUG=statistics and hp timing


   In testing prelinking on ppclinux, I finally got Geoff's old
ppc-hp-timing patch working on glibc 2.2.94. However I am somewhat
puzzled by the details of its output. For example, if I create a
directory that is empty, cd into it and do...

LD_DEBUG=statistics ls

...I get...

03601:
03601:  runtime linker statistics:
03601:    total startup time in dynamic loader: 38935 clock cycles
03601:              time needed for relocation: 17614 clock cycles (45.2%)
03601:                   number of relocations: 139
03601:        number of relocations from cache: 5
03601:             time needed to load objects: 17394 clock cycles (44.6%)
03601:
03601:  runtime linker statistics:
03601:             final number of relocations: 204
03601:  final number of relocations from cache: 5

..where normally any listed files from the 'ls' command would appear
before the second runtime linker section. What puzzles me is why
the number of relocations differs from the final number of relocations.
I assume the first set of numbers reflect only relocations done in the
dynamic loader. Does the second set include relocations done elsewhere?
Thanks in advance for any clarifications.
                                Jack


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]