Dear oprofile gurus,

I am trying to generate a call-graph profile but apparently doing something wrong. Flat profile works fine.
Could you please help me?

My commands:
sudo opcontrol --reset
sudo opcontrol -c 10
sudo opcontrol -s
<my program run>
sudo opcontrol -t
opcontrol --dump
opreport -l -t 1 -c a.out

My output (the call graph is not really a call graph but just a flat profile):
CPU: Core 2, speed 1600 MHz (estimated)
Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (Unhalted core cycles) count 100000
warning: could not check that the binary file /home/kcc/kcchess/a.out has not been modified since the profile was taken. Results may be inaccurate.
samples  %        symbol name
-------------------------------------------------------------------------------
776247   45.2359  KCChess::BOARD::attackers(KCChess::POS) const
  776247   100.000  KCChess::BOARD::attackers(KCChess::POS) const [self]
-------------------------------------------------------------------------------
509314   29.6803  unsigned int KCChess::BOARD::gen_moves<KCChess::GEN_MOVE_ACTION_STORE>(KCChess::GEN_MOVE_ACTION_STORE&) const
  509314   100.000  unsigned int KCChess::BOARD::gen_moves<KCChess::GEN_MOVE_ACTION_STORE>(KCChess::GEN_MOVE_ACTION_STORE&) const [self]
...

My environment:
Core 2 DUO
Linux 2.6.18.5, mixed 32- and 64-bit mode.
gcc 4.2.1 (I tried both -m32 and -m64)
oprofile 0.9.3 (built myself)

Thanks in advance,

--kcc