oprofile, opreport -l ->"No sample file found", loadable mod

Hi,

I’m using a x86_64 machine (4 CPU x 2 cores), OpenSUSE 11.2, oprofile ver 0.9.5, NMI’s are generated.
Trying to profile a loadable driver (xxx.ko) not included in initrd.

After sampling using this configuration (generated by opcontrol settings):

SESSION_DIR=/var/lib/oprofile
CHOSEN_EVENTS_0=CPU_CLK_UNHALTED:1000000000:0x00:1:0
NR_CHOSEN=1
SEPARATE_LIB=1
SEPARATE_KERNEL=1
SEPARATE_THREAD=0
SEPARATE_CPU=0
VMLINUX=/usr/src/linux-2.6.31.5-0.1/vmlinux
IMAGE_FILTER=/usr/src/mydrv/xxx.ko
BUF_SIZE=65536
CPU_BUF_SIZE=0
CALLGRAPH=100
KERNEL_RANGE=ffffffff81009000,ffffffff815557be
XENIMAGE=none

and these series of commands:
opcontrol --init, --start, <run the test> --stop, --dump,
(I’m “opcontrol --reset” when changing oprofiled.log)

I’m getting this oprofiled.log:

– OProfile Statistics –
Nr. sample dumps: 1684
Nr. non-backtrace samples: 1475265
Nr. kernel samples: 1212508
Nr. lost samples (no kernel/user): 5590782
Nr. lost kernel samples: 1107495
Nr. incomplete code structs: 30
Nr. samples lost due to sample file open failure: 0
Nr. samples lost due to no permanent mapping: 3
Nr. event lost due to buffer overflow: 0
Nr. samples lost due to no mapping: 5
Nr. backtraces skipped due to no file mapping: 6
Nr. samples lost due to no mm: 1

---- Statistics for cpu : 7
Nr. samples lost cpu buffer overflow: 0
Nr. samples received: 0
Nr. backtrace aborted: 0
Nr. samples lost invalid pc: 0

<similar outputs for CPU 6-0)…>

“opreport -l” displaying:

“No sample file found: try running opcontrol --dump…”

Alternatively, I tried the
“opcontrol --save=mysession”,
“opreport --session-dir=mysession -i /usr/src/mydrv/xxx.ko”
options as well, both /var/lib/profile/samples/current or …/mysession are empty.

xxx.ko contains symbols.

Using “IMAGE_FILTER=” (no driver specified), I’m getting a log but no xxx.ko driver broken-down statistics (expected).

Please help me getting the driver profile,

thanks,
John S.

PS Sorry if I’m misplacing this, but I couldn’t find a more related forum.