From: SourceForge.net <no...@so...> - 2004-08-15 04:23:50
|
Bugs item #1009412, was opened at 2004-08-14 20:41 Message generated for change (Comment added) made by goemon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=116191&aid=1009412&group_id=16191 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Dan Hollis (goemon) Assigned to: Nobody/Anonymous (nobody) Summary: no symbols Initial Comment: i'm unable to get any symbols from opreport. redhat 7.3 (glibc 2.2.5) kernel 2.6.8.1 gcc 2.96-113 oprofile 0.8 i get the nice usage breakdown by library and application, but i'm unable to get any symbol breakdown inside any of them. [root@washuu goemon]# opcontrol --vmlinux=/usr/src/linux-2.6.8.1/vmlinux --separate=kernel [root@washuu goemon]# opcontrol --start Using default event: CPU_CLK_UNHALTED:100000:0:1:1 Using 2.6+ OProfile kernel interface. Reading module info. Using log file /var/lib/oprofile/oprofiled.log Daemon started. Profiler running. [root@washuu goemon]# opreport -f | more CPU: AMD64 processors, speed 1402.67 MHz (estimated) Counted CPU_CLK_UNHALTED events (Cycles outside of halt state) with a unit mask of 0x00 (No unit mask) count 1000 00 CPU_CLK_UNHALT...| samples| %| ------------------ 8703906 95.9390 /usr/local/games/enemy-territory-102/ettv.x86 CPU_CLK_UNHALT...| samples| %| ------------------ 4447002 51.0920 /usr/local/games/enemy-territory-102/ettv.x86 2507957 28.8142 /lib/libc-2.2.5.so 1588779 18.2536 /usr/src/linux-2.6.8.1/vmlinux 47289 0.5433 /home/tvmaster/.etwolf/etpro/tvgame.mp.i386.so 36089 0.4146 /home/wolf/.etwolf/etpro/tvgame.mp.i386.so 26167 0.3006 /home/tvmaster/.etwolf/pb/pbsv.so 15589 0.1791 /nvidia 13029 0.1497 /home/tvmaster/.etwolf/etpro/qagame.mp.i386.so ... blabla .. [root@washuu goemon]# opreport -l /usr/local/games/enemy-territory-102/ettv.x86 | more warning: /ip_conntrack could not be found. warning: /ip_tables could not be found. warning: /ipt_MASQUERADE could not be found. warning: /iptable_filter could not be found. warning: /iptable_nat could not be found. warning: /nvidia could not be found. warning: /ohci1394 could not be found. warning: /oprofile could not be found. warning: /psmouse could not be found. warning: /sk98lin could not be found. warning: /snd_trident could not be found. warning: /sunrpc could not be found. warning: /uhci_hcd could not be found. warning: /usbcore could not be found. warning: /usbhid could not be found. that's all the output i get! [root@washuu goemon]# opreport -l /lib/libc-2.2.5.so | more CPU: AMD64 processors, speed 1402.67 MHz (estimated) Counted CPU_CLK_UNHALTED events (Cycles outside of halt state) with a unit mask of 0x00 (No unit mask) count 1000 00 samples % image name app name symbol name 2710986 98.8347 libc-2.2.5.so ettv.x86 (no symbols) 8151 0.2972 libc-2.2.5.so cc1 (no symbols) 2788 0.1016 libc-2.2.5.so opreport (no symbols) 2546 0.0928 libc-2.2.5.so cpp0 (no symbols) [...etc etc...] and that's it. no symbols no nothing! i can guarantee 100% that ettv.x86 has symbols though. it's compiled with -g, not stripped, and 'nm' output confirms it has symbols: [goemon@washuu src]$ nm /usr/local/games/enemy-territory-102/ettv.x86 | more [...] 08066e68 T ETTV_DEBUG 08c233ec B ettv_delay 08065754 T ettv_DemoNumber 080652e8 T ETTV_GetPlayerState 08065fa0 T ettv_init 080a0528 D ettv_lastmessagetime 08060990 T ettv_NextSlavePacket 08d0dd10 B ettv_paceslavepackets 08d0dd0c B ettv_password 080647a4 T ettv_ServerInfo 08c233e0 B ettv_shownet 080a052c D ettv_shownet_lasttime [... etc etc ...] i can also gdb this process with full symbolic info etc. so the symbols are definitely there. it just seems that oprofile 0.8 doesn't know how to read them? or am I doing something wrong? ---------------------------------------------------------------------- >Comment By: Dan Hollis (goemon) Date: 2004-08-14 21:23 Message: Logged In: YES user_id=106082 ok more info: looks like opreport is segfaulting: #0 op_bfd::op_bfd (this=0xbffff820, fname=@0x817df60, symbol_filter=@0x8175898, ok=@0xbffff7bf) at op_bfd.cpp:272 272 if (sect->flags & SEC_DEBUGGING) { (gdb) bt #0 op_bfd::op_bfd (this=0xbffff820, fname=@0x817df60, symbol_filter=@0x8175898, ok=@0xbffff7bf) at op_bfd.cpp:272 #1 0x080a0dba in populate_for_image (samples=@0xbffff910, ip=@0x817df60, symbol_filter=@0x8175898) at populate.cpp:56 #2 0x08050362 in {anonymous}::opreport (non_options=@0xbffff980) at /usr/include/g++-3/stl_list.h:71 #3 0x08065b80 in run_pp_tool (argc=3, argv=0xbffffa34, fct=0x804ffc0 <{anonymous}::opreport(vector<basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >, allocator<basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> > > > const &)>) at common_option.cpp:110 #4 0x080506ba in main (argc=3, argv=0xbffffa34) at opreport.cpp:440 #5 0x400b21c4 in __libc_start_main () from /lib/libc.so.6 (gdb) print sect $1 = (asection *) 0x832175db (gdb) print sect->flags Cannot access memory at address 0x832175eb oprofile is linked against libbfd 2.15.90 ... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=116191&aid=1009412&group_id=16191 |