lkml.org 
[lkml]   [2005]   [May]   [8]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateSun, 8 May 2005 00:20:38 -0700 (PDT)
Fromli nux <>
SubjectRe: oprofile: enabling cpu events
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 09:24    [from the cache]
©2003-2008