I had try the .timer=1 at the mode parameters, but the result is the same bad and the error message is the same.

root@OpenWrt:/# opreport -l
opreport error: No sample file found: try running opcontrol --dump
or specify a session containing sample files



2009/12/6 Yongheng Qi <jetever@gmail.com>
Dear sam

How to set the oprofile.timer=1 ? where  set? Please tell me.

Thanks


2009/12/6 Sam Liao <phyomh@gmail.com>

Please check the document, you can set to the timer mode from boot
line with "oprofile.timer=1" option.

-Sam

On Sun, Dec 6, 2009 at 2:56 PM, Yongheng Qi <jetever@gmail.com> wrote:
> Dear Sam, Thanks your replay.
>
> 2009/12/5 Sam Liao <phyomh@gmail.com>
>>
>> There are something you can try:
>>
>> 1. run oprofile on timer mode.
>
>     I run oprofile on openwrt, it not support modprole, on use insmod, I run
> insmode oproble timer =1, not purpose.
>
>>
>> 2. do not use session option, just opreport -l directly.
>
>    this I try to use , but the result is the same.
>
>>
>> 3. check kernel message.
>
>     kernel message I use dmesg  and logread, not message about oproble.
>
>>
>> 4. check oprofile stats under /dev/oprofile/stats directory.
>
>     in the /dev/oprofile/stats, all file value is 0.
>>
>> With these commands you can make sure it's a kernel problem or UP's
>> problem.
>>
>> -Sam
>>
>> On Fri, Dec 4, 2009 at 4:58 PM, Yongheng Qi <jetever@gmail.com> wrote:
>> > I read the linux kernel profile document:
>> >
>> > Add "profile=2" to the kernel command line.
>> >
>> > Get the source (see Changes for required version) from
>> > http://oprofile.sourceforge.net/ and add "idle=poll" to the kernel
>> > command
>> > line.
>> >
>> > I don't know how to add the kernel command on the opewrt and emabled
>> > system.
>> >
>> > Thanks
>> >
>> > 2009/12/4 Joe Hewitt <joe.z.hewitt@gmail.com>
>> >>
>> >> I believe it supports or cpu_type won't be mips/24K.
>> >>
>> >>
>> >> Once you setup session-dir in --setup you don't have to setup it
>> >> again. It's strange that you can issue 'opcontrol --dump
>> >> --session-dir=/var/lib/oprofile', on my x64 box, this command returns
>> >> 'Option "--setup" not valid with "--dump"'.
>> >>
>> >> what do you get if you 'cd /var/lib/oprofile/samples'?
>> >>
>> >> On Fri, Dec 4, 2009 at 10:23 AM, Yongheng Qi <jetever@gmail.com> wrote:
>> >> > OK, Thanks
>> >> >
>> >> > root@OpenWrt:/proc# cat /dev/oprofile/cpu_type
>> >> > mips/24K
>> >> >
>> >> > The oprofiled.log:
>> >> >
>> >> > Thu Jan  1 09:42:46 1970
>> >> >
>> >> > Nr. sample dumps: 6
>> >> > Nr. non-backtrace samples: 0
>> >> > Nr. kernel samples: 0
>> >> > 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: 0
>> >> > Nr. backtrace aborted: 0
>> >> > Nr. samples lost invalid pc: 0
>> >> >
>> >> > oprofile could support MIPS 24K?
>> >> >
>> >> > 2009/12/3 Joe Hewitt <joe.z.hewitt@gmail.com>
>> >> >>
>> >> >> You can attach your oprofiled.log, cat /dev/oprofile/cpu_type and
>> >> >> the
>> >> >> command sequence etc. thus guys here can  help diagnosis.
>> >> >>
>> >> >> On Thu, Dec 3, 2009 at 2:13 PM, Yongheng Qi <jetever@gmail.com>
>> >> >> wrote:
>> >> >> > Thanks Joe,
>> >> >> >
>> >> >> > I tried your commad , the result is same as before.
>> >> >> >
>> >> >> > root@OpenWrt:/tmp/lib/oprofile/samples# opreport
>> >> >> > session:foosession
>> >> >> > opreport error: No sample file found: try running opcontrol --dump
>> >> >> > or specify a session containing sample files
>> >> >> >
>> >> >> > Thanks
>> >> >> >
>> >> >> > 2009/12/3 Joe Hewitt <joe.z.hewitt@gmail.com>
>> >> >> >>
>> >> >> >> these 2:
>> >> >> >>
>> >> >> >> > opcontrol --dump --session-dir=/var/lib/oprofile
>> >> >> >> > opreport -l --session-dir=/var/lib/oprofile
>> >> >> >>
>> >> >> >> instead, try
>> >> >> >>
>> >> >> >> opcontrol --save=foosession
>> >> >> >> opreport session:foosession
>> >> >> >>
>> >> >> >> you can ref oprofile online doc for explanation and samples.
>> >> >> >>
>> >> >> >> On Thu, Dec 3, 2009 at 1:19 PM, Yongheng Qi <jetever@gmail.com>
>> >> >> >> wrote:
>> >> >> >> > Dear All:
>> >> >> >> >
>> >> >> >> > I am a newbie use oprifile. I run it on my openwrt , the kernel
>> >> >> >> > version
>> >> >> >> > is
>> >> >> >> > 2.6.26. run on a MIPS 24K cpu
>> >> >> >> >
>> >> >> >> > used oprofile version is 0.94. This is my command:
>> >> >> >> >
>> >> >> >> > opcontrol --init
>> >> >> >> > opcontrol --setup --event=CYCLES:5000:0:1:0
>> >> >> >> > --vmlinux=/etc/vmlinux
>> >> >> >> > --session-dir=/var/lib/oprofile
>> >> >> >> > opcontrol --start
>> >> >> >> >
>> >> >> >> > wait a monent, because I want to optimize linux kernel and
>> >> >> >> > driver,
>> >> >> >> > thay
>> >> >> >> > all
>> >> >> >> > run at kernel level.
>> >> >> >> >
>> >> >> >> > opcontrol --dump --session-dir=/var/lib/oprofile
>> >> >> >> > opreport -l --session-dir=/var/lib/oprofile
>> >> >> >> > then, the result is:
>> >> >> >> > opreport error: No sample file found: try running opcontrol
>> >> >> >> > --dump
>> >> >> >> > or specify a session containing sample files
>> >> >> >> >
>> >> >> >> > I try to a million times. and find many FAQ, don't solve.
>> >> >> >> > Anyone
>> >> >> >> > could
>> >> >> >> > help
>> >> >> >> > me?
>> >> >> >> >
>> >> >> >> > Thanks
>> >> >> >> >
>> >> >> >> > --
>> >> >> >> > Yongheng Qi
>> >> >> >> >
>> >> >> >> > Mobile: +86 1390 119 7481
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > ------------------------------------------------------------------------------
>> >> >> >> > Join us December 9, 2009 for the Red Hat Virtual Experience,
>> >> >> >> > a free event focused on virtualization and cloud computing.
>> >> >> >> > Attend in-depth sessions from your desk. Your couch. Anywhere.
>> >> >> >> > http://p.sf.net/sfu/redhat-sfdev2dev
>> >> >> >> > _______________________________________________
>> >> >> >> > oprofile-list mailing list
>> >> >> >> > oprofile-list@lists.sourceforge.net
>> >> >> >> > https://lists.sourceforge.net/lists/listinfo/oprofile-list
>> >> >> >> >
>> >> >> >> >
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> --
>> >> >> >> Joe H
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > --
>> >> >> > Yongheng Qi
>> >> >> >
>> >> >> > Mobile: +86 1390 119 7481
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> Joe H
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Yongheng Qi
>> >> >
>> >> > Mobile: +86 1390 119 7481
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Joe H
>> >
>> >
>> >
>> > --
>> > Yongheng Qi
>> >
>> > Mobile: +86 1390 119 7481
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Join us December 9, 2009 for the Red Hat Virtual Experience,
>> > a free event focused on virtualization and cloud computing.
>> > Attend in-depth sessions from your desk. Your couch. Anywhere.
>> > http://p.sf.net/sfu/redhat-sfdev2dev
>> > _______________________________________________
>> > oprofile-list mailing list
>> > oprofile-list@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/oprofile-list
>> >
>> >
>
>
>
> --
> Yongheng Qi
>
> Mobile: +86 1390 119 7481
>



--
Yongheng Qi  

Mobile: +86 1390 119 7481



--
Yongheng Qi  

Mobile: +86 1390 119 7481