Looks like procedure you followed is wrong. Try following procedure.

1.       opcontrol -h                                       (Shutdown oprofile daemon is its running)

2.       opcontrol -reset                               (Reset profiler counters)

3.       opcontrol -i=./hello world –no-vmlinux                  (Specify absolute path to profile)

4.       opcontrol --setup --event=L2_REJECT_BUSQ:5000   (Set event using this command)

5.       opcontrol -start                                (Start oprofiler daemon)

6.       ./hello world                               (Running application)

7.       opcontrol -dump                              (Dump oprofiler info to report)

8.       opreport                      (Shows sampling info)

 

After this you can use opannotate command. For further run of your application, you can just reset counters with step (2) and start from step (6) of the above procedure.

 

regards,

Vishwa.

 

From: pushparaj muthu [mailto:muthu.pushparaj@gmail.com]
Sent: Tuesday, February 17, 2009 3:54 PM
To: oprofile-list@lists.sourceforge.net
Subject: No debug information available for any binary selected

 

Hi

 

 

I have cross compiled hello world program (for arm) -g option

 

arm-linux-gcc version is 3.4.5 

 

Everything works fine while executing opcontrol command

But Problem in getting annotated source code

 

By using command opannotate --source --search-dirs=/bin

 

It shows error message

"No debug information available for any binary selected"

 

  

Sequence of the executing opcontrol command

 

1. opcontrol --no-vmlinux

 

2. opcontrol --reset

 

3. opcontrol --start

 

4. .running all the application program ( ./hello world )

 

5. opcontrol --dump

 

6. opcontrol --stop

 

7. opcontrol --shutdown

 

8 opannotate --source --search-dirs=/bin

 

  

Result of opcontrol status

 

Daemon running: pid 563

Separate options: none

vmlinux file: none

Image filter: none

Call-graph depth: 0

 

 

Log message

 

JIT dump processing complete.

JIT dump processing exited abnormally: 0

 

Wed Jan  2 04:59:44 2008

 

Nr. sample dumps: 4

Nr. non-backtrace samples: 14903

Nr. kernel samples: 13955

Nr. lost samples (no kernel/user): 0

Nr. lost kernel samples: 0

Nr. incomplete code structs: 0

Nr. samples lost due to sample file open failure: 0

Nr. samples lost due to no permanent mapping: 0

Nr. event lost due to buffer overflow: 0

Nr. samples lost due to no mapping: 0

Nr. backtraces skipped due to no file mapping: 0

Nr. samples lost due to no mm: 0

Nr. samples lost cpu buffer overflow: 0

Nr. samples received: 15254

Nr. backtrace aborted: 0

oprofiled stopped Wed Jan  2 04:59:44 2008

start time/end time is 1199249805/1199249984

oprofiled started Wed Jan  2 05:05:52 2008

kernel pointer size: 4

 

  

 

Result of objdump  ./hello_wolrd

 

/bin # objdump -t hello_world

 

hello_world:     file format elf32-littlearm

 

SYMBOL TABLE:

000080d4 l    d  .interp        00000000              .interp

000080e8 l    d  .hash  00000000              .hash

00008184 l    d  .dynsym        00000000              .dynsym

000082c4 l    d  .dynstr        00000000              .dynstr

0000839e l    d  .gnu.version   00000000              .gnu.version

000083c8 l    d  .gnu.version_r 00000000              .gnu.version_r

000083e8 l    d  .rel.dyn       00000000              .rel.dyn

00008400 l    d  .rel.plt       00000000              .rel.plt

00008430 l    d  .init  00000000              .init

00008440 l    d  .plt   00000000              .plt

0000849c l    d  .text  00000000              .text

00008784 l    d  .fini  00000000              .fini

00008790 l    d  .rodata        00000000              .rodata

000087fc l    d  .eh_frame      00000000              .eh_frame

00010800 l    d  .ctors 00000000              .ctors

00010808 l    d  .dtors 00000000              .dtors

00010810 l    d  .jcr   00000000              .jcr

00010814 l    d  .dynamic       00000000              .dynamic

000108e4 l    d  .got   00000000              .got

00010914 l    d  .data  00000000              .data

00010920 l    d  .bss   00000000              .bss

00000000 l    d  .comment       00000000              .comment

00000000 l    d  .debug_aranges 00000000              .debug_aranges

00000000 l    d  .debug_pubnames        00000000              .debug_pubnames

00000000 l    d  .debug_info    00000000              .debug_info

00000000 l    d  .debug_abbrev  00000000              .debug_abbrev

00000000 l    d  .debug_line    00000000              .debug_line

00000000 l    d  .debug_frame   00000000              .debug_frame

00000000 l    d  .debug_str     00000000              .debug_str

00000000 l    d  *ABS*  00000000              .shstrtab

00000000 l    d  *ABS*  00000000              .symtab

00000000 l    d  *ABS*  00000000              .strtab

00000000 l    df *ABS*  00000000              crt1.S

00000000 l    df *ABS*  00000000              initfini.c

00000000 l    df *ABS*  00000000              crti.S

00000000 l    df *ABS*  00000000              crtstuff.c

00010800 l     O .ctors 00000000              __CTOR_LIST__

00010808 l     O .dtors 00000000              __DTOR_LIST__

000087fc l     O .eh_frame      00000000              __EH_FRAME_BEGIN__

00010810 l     O .jcr   00000000              __JCR_LIST__

0001091c l     O .data  00000000              p.0

00010920 l     O .bss   00000001              completed.1

000084ec l     F .text  00000000              __do_global_dtors_aux

0000855c l     F .text  00000000              call___do_global_dtors_aux

00010924 l     O .bss   00000018              object.2

00008564 l     F .text  00000000              frame_dummy

000085b8 l     F .text  00000000              call_frame_dummy

00000000 l    df *ABS*  00000000              crtstuff.c

00010804 l     O .ctors 00000000              __CTOR_END__

0001080c l     O .dtors 00000000              __DTOR_END__

000087fc l     O .eh_frame      00000000              __FRAME_END__

00010810 l     O .jcr   00000000              __JCR_END__

00008744 l     F .text  00000000              __do_global_ctors_aux

0000877c l     F .text  00000000              call___do_global_ctors_aux

00000000 l    df *ABS*  00000000              initfini.c

00000000 l    df *ABS*  00000000              crtn.S

00000000 l    df *ABS*  00000000              cycle_sample.c

00000000 l    df *ABS*  00000000              /home/pushparaj/EdiaryPhaseLast/ediary/buildroot/toolchain_build_arm/gcc-3.4.5/gcc/config/arm/lib1funcs.asm

00008728 l     F .text  0000001c              .hidden __div0

00008454       F *UND*  0000003c              printf

00010814 g     O *ABS*  00000000              _DYNAMIC

0001093c g       *ABS*  00000000              _bss_end__

00010920 g       *ABS*  00000000              __bss_start__

00010918 g     O .data  00000000              .hidden __dso_handle

00008430 g     F .init  00000004              _init

00000000  w    F *UND*  00000004              __deregister_frame_info@@GCC_3.0

0001093c g       *ABS*  00000000              __bss_end__

000085fc g     F .text  00000074              slow_multiply

0000849c g     F .text  00000050              _start

0000846c       F *UND*  000001f0              __uClibc_main

00010920 g       *ABS*  00000000              __bss_start

00008670 g     F .text  000000b8              main

0001093c g       *ABS*  00000000              __end__

000085c0 g     F .text  0000003c              fast_multiply

00010914  w      .data  00000000              data_start

00008784 g     F .fini  00000004              _fini

00010920 g       *ABS*  00000000              _edata

000108e4 g     O .got   00000000              .hidden _GLOBAL_OFFSET_TABLE_

0001093c g       *ABS*  00000000              _end

00008478       F *UND*  000000a8              exit

00000000  w    F *UND*  0000000c              __register_frame_info@@GCC_3.0

00010914 g       .data  00000000              __data_start

00000000  w      *UND*  00000000              _Jv_RegisterClasses

 

Please guide me in the right path

 

Regards

Raj