tracing: Load weak symbols for function tracing
Review Request #1659 - Created Jan. 21, 2013 and submitted
| Information | |
|---|---|
| Deyuan Guo | |
| gem5 | |
| Reviewers | |
| Default | |
Changeset 9477:d0aacc54ce --------------------------- tracing: Load weak symbols for function tracing Hello! Without loading weak symbols into gem5, some function names and the given PC cannot correspond correctly, because the binding attributes of function names in an ELF file are not only STB_GLOBAL or STB_LOCAL, but also STB_WEAK. We can load weak symbols and local symbols at the same time to get more precise function tracing and profiling results. For example, in m5out/ftrace.system.cpu, the function tracing results of tests/test-progs/hello/bin/mips/linux/hello: Without weak symbols: 2087500: __libc_csu_fini (8000) 2294500: __libc_csu_fini (8000) With weak symbols: 2087500: __errno_location (8000) 2294500: __errno_location (8000)
Ship It!
