lkml.org 
[lkml]   [2005]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: oprofile: enabling cpu events
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 <baruch@ev-en.org> 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
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-05-08 16:23    [W:0.050 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site