Re: [RFC -tip]

From: Cyrill Gorcunov
Date: Tue Aug 17 2010 - 10:10:24 EST


On Tue, Aug 17, 2010 at 05:14:01PM +0800, Lin Ming wrote:
> On Mon, 2010-08-16 at 19:02 +0800, Cyrill Gorcunov wrote:
> > Hi,
> >
> > please review the approach, I can't test it due to lack
> > of hw (btw Ming, if you have some spare minutes -- mind to
> > pass some event as RAW and see how it goes?).
>
> #raw event for cpu cycles
> perf top -e r3000020c0403c000
>
> #raw event for cache-misses
> perf top -e r120e00030803e000
>

Ming, I had something different in mind, I'll prepare the case
to be tested. Will notify you. Thanks!

> I tried some raw events and it works.
>
> > Index: linux-2.6.git/arch/x86/include/asm/Kbuild
> > =====================================================================
> > --- linux-2.6.git.orig/arch/x86/include/asm/Kbuild
> > +++ linux-2.6.git/arch/x86/include/asm/Kbuild
> > @@ -24,3 +24,4 @@ unifdef-y += unistd_32.h
> > unifdef-y += unistd_64.h
> > unifdef-y += vm86.h
> > unifdef-y += vsyscall.h
> > +unifdef-y += perf_event_p4.h
>
> +header-y += perf_event_p4.h
>
> Need to update this to header-y.


Yeah, thanks for catching this!

>
> Thanks,
> Lin Ming
>
...

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