I want to profile cpu events using oprofile, when i
issue following command, it gives me an error saying
that oprofile is in timer mode.
What does it mean ?
the link
http://oprofile.sourceforge.net/docs/intel-piii-events.php3
says event=CPU_CLK_UNHALTED is suppported for Pentium
II processor.
Is there any way i can enable cpu events ?
# opcontrol --setup --event=CPU_CLK_UNHALTED
You cannot specify any performance counter events
because OProfile is in timer mode.
#opcontrol --event=CPU_CLK_UNHALTED
You cannot specify any performance counter events
because OProfile is in timer mode.
-lnxluv
__________________________________
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
http://mobile.yahoo.com/learn/mail
li nux wrote:
> I want to profile cpu events using oprofile, when i
> issue following command, it gives me an error saying
> that oprofile is in timer mode.
> What does it mean ?
> the link
> http://oprofile.sourceforge.net/docs/intel-piii-events.php3
> says event=CPU_CLK_UNHALTED is suppported for Pentium
> II processor.
>
> Is there any way i can enable cpu events ?
>
> # opcontrol --setup --event=CPU_CLK_UNHALTED
> You cannot specify any performance counter events
> because OProfile is in timer mode.
The code has some "protection" against too new processors, the kernel
folks prefer that you use older CPUs, or use newer kernels.
The patch that worked for me against 2.6.6 is attached.
Baruch
Thanks Baruch,
But, I am still hitting the same issue.
I am using SuSE 2.6.5, but oprofile code looks
similar.
so i manually made that small change from if
(cpu_model > 3) to if (cpu_model > 100), and did a
make modules and make modules_install.
Then inserted the fresh oprofile module.
# opcontrol --setup --event=CPU_CLK_UNHALTED
You cannot specify any performance counter events
because OProfile is in timer mode.
--- Baruch Even <[email protected]> wrote:
> The patch that worked for me against 2.6.6 is
> attached.
>
> Baruch
> > arch/i386/oprofile/nmi_int.c | 2 +-
> 1 files changed, 1 insertion(+), 1 deletion(-)
>
> Index: 2.6.6/arch/i386/oprofile/nmi_int.c
>
===================================================================
> --- 2.6.6.orig/arch/i386/oprofile/nmi_int.c
> +++ 2.6.6/arch/i386/oprofile/nmi_int.c
> @@ -313,7 +313,7 @@ static int __init p4_init(void)
> {
> __u8 cpu_model = current_cpu_data.x86_model;
>
> - if (cpu_model > 3)
> + if (cpu_model > 100)
> return 0;
>
> #ifndef CONFIG_SMP
>
Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html
On Sun, 08 May 2005 at 00:20 +0000, li nux wrote:
> Thanks Baruch,
> But, I am still hitting the same issue.
> I am using SuSE 2.6.5, but oprofile code looks
> similar.
> so i manually made that small change from if
> (cpu_model > 3) to if (cpu_model > 100), and did a
> make modules and make modules_install.
> Then inserted the fresh oprofile module.
> # opcontrol --setup --event=CPU_CLK_UNHALTED
> You cannot specify any performance counter events
> because OProfile is in timer mode.
check if local apic support is turned on.
Philippe Elie
There should be a similar case there for PPro machines, and you might
have something other than an Intel Xeon.
The best route to solve your problem is the oprofile irc channel, you
can find its details in the oprofile website.
Baruch
li nux wrote:
> Thanks Baruch,
> But, I am still hitting the same issue.
> I am using SuSE 2.6.5, but oprofile code looks
> similar.
> so i manually made that small change from if
> (cpu_model > 3) to if (cpu_model > 100), and did a
> make modules and make modules_install.
> Then inserted the fresh oprofile module.
> # opcontrol --setup --event=CPU_CLK_UNHALTED
> You cannot specify any performance counter events
> because OProfile is in timer mode.
>
> --- Baruch Even <[email protected]> wrote:
>
>>The patch that worked for me against 2.6.6 is
>>attached.
>>
>>Baruch
>>
>>> arch/i386/oprofile/nmi_int.c | 2 +-
>>
>> 1 files changed, 1 insertion(+), 1 deletion(-)
>>
>>Index: 2.6.6/arch/i386/oprofile/nmi_int.c
>>
>
> ===================================================================
>
>>--- 2.6.6.orig/arch/i386/oprofile/nmi_int.c
>>+++ 2.6.6/arch/i386/oprofile/nmi_int.c
>>@@ -313,7 +313,7 @@ static int __init p4_init(void)
>> {
>> __u8 cpu_model = current_cpu_data.x86_model;
>>
>>- if (cpu_model > 3)
>>+ if (cpu_model > 100)
>> return 0;
>>
>> #ifndef CONFIG_SMP
>>
>
>
>
>
>
> Yahoo! Mail
> Stay connected, organized, and protected. Take the tour:
> http://tour.mail.yahoo.com/mailtour.html
>
Thanks Philippe,
You are right, it seems that apci is off by default.
How to turn it on ?
the flags in /proc/cpuinfo does not show acpi
cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 5
model name : Pentium II (Deschutes)
stepping : 3
cpu MHz : 450.008
cache size : 1024 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8
sep mtrr pge mca cmov pat pse36 mmx fxsr
bogomips : 886.78
--- Philippe Elie <[email protected]> wrote:
> On Sun, 08 May 2005 at 00:20 +0000, li nux wrote:
>
> > Thanks Baruch,
> > # opcontrol --setup --event=CPU_CLK_UNHALTED
> > You cannot specify any performance counter events
> > because OProfile is in timer mode.
>
>
> check if local apic support is turned on.
>
> Philippe Elie
>
Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html
On Sun, May 15, 2005 at 04:54:59AM -0700, li nux wrote:
> You are right, it seems that apci is off by default.
> How to turn it on ?
It's apic not acpi. Read the docs for your kernel version.
john