From: Eran R. <ER...@il...> - 2009-09-29 15:36:33
|
Hi All, Am new to OProfile, so apologies if this issue was brought and resolved before. (my searches so far did not help though). As the subject mentions I fail to see any debug symbols from libc. root@box1:/# opreport -l samples % samples % samples % image name app name symbol name 1890 16.0714 3684 28.9691 3192 29.3977 libc-2.9.so libc-2.9.so /lib/libc-2.9.so The debug symbols are there and match though: root@box1:/# opreport -V bfd -l ... looking for debugging file libc-2.9.so with crc32 = dcd904d7 found /usr/lib/debug/lib/libc-2.9.so with crc32 = dcd904d7 now loading: /usr/lib/debug/lib/libc-2.9.so bfd_info::get_symbols() for /usr/lib/debug/lib/libc-2.9.so bfd_get_symtab_upper_bound: 58656 bfd_canonicalize_symtab: 7331 ... Done some printing within libutil++/op_bfd.cpp op_bfd::get_symbols I learned that: 1. The number of symbols in ibfd are zero (perhaps this is expected) 2. The number of symbols in dbfd are 7331, HOWEVER, all of them get dropped on being uninteresting (e.g. __vprintf is dropped on SEC_LOAD flag) Seems like there is a compatibility problem between libc and binutils. Even if this is the case I am not sure what to do. Let me know if I should post this somewhere else. Thanks very much, Eran P.S. my configuration is: Intel QuadCore (Intel(R) Xeon(TM) CPU 3.00GHz) Ubuntu 9.04 Linux 2.6.30 kernel libc6 2.9-4ubuntu6.1 libc6-dbg 2.9-4ubuntu6.1 libc6-dev 2.9-4ubuntu6.1 binutils 2.19.1-0ubuntu3 binutils-dev 2.19.1-0ubuntu3 binutils-static 2.19.1-0ubuntu3 |