Re: [PATCH] perf wrong branches event on AMD
From: Arnaldo Carvalho de Melo
Date: Thu Jul 01 2010 - 15:55:22 EST
Em Thu, Jul 01, 2010 at 03:30:16PM -0400, Vince Weaver escreveu:
> Hello
>
> while doing some performance counter validation tests on some assembly
> language programs I noticed that the "branches:u" count was very wrong on
> AMD machines.
>
> It looks like the wrong event was selected.
>
> This is why event selection needs to be in user-space... it could be fixed
> instantly there, but the way things are done now it will take months to
> years for this fix to filter down to those trying to use perf counters...
Well, you can use:
rNNN (see 'perf list --help' on how to encode it) [Raw hardware event descriptor]
In the meantime.
- Arnaldo
--
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/