From: <no...@so...> - 2001-10-28 22:36:50
|
Bugs item #475307, was opened at 2001-10-26 07:17 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=116191&aid=475307&group_id=16191 Category: None Group: None >Status: Closed Resolution: Fixed Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: assembly functions not found by oprofpp Initial Comment: I am using oprofile 0.0.6 on Red Hat 6.2 with kernel 2.4.8 I have a program in which some of the code is written in C-callable assembly using nasm to assemble it (mmx stuff). I can find the assembly functions in gdb (e.g. set breakpoints), and if I use op_to_source -a I see them in the (tons of) output. But when I try to use oprofpp (oprofpp -l -d ./myprog), I don't see any of the functions written in assembler. If I give it -s and and the name of a function written in assembler, it says symbol not found. I am running on an athlon (t-bird) if that makes any difference. I am using the RETIRED_OPS counter. I am using gcc 2.95.3 and nasm 0.98. ---------------------------------------------------------------------- Comment By: Philippe Elie (phil_e) Date: 2001-10-28 14:32 Message: Logged In: YES user_id=318973 With nasm you must declare your function as GLOBAL:function function_name else the linker do not put BSF_FUNCTION flag to your symbol. ---------------------------------------------------------------------- Comment By: Philippe Elie (phil_e) Date: 2001-10-26 19:47 Message: Logged In: YES user_id=318973 That's probably a problem with nasm which incorrectly export the symbol. oprofpp filter symbol name to avoid flooding of symbol op_to_source -a use currently objdump to get assembly output so you can see them. Can you send the result of: $nm application_name | grep symbol_name ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=116191&aid=475307&group_id=16191 |