Re: [PATCH] perf, x86: catch spurious interrupts after disabling counters

From: Stephane Eranian
Date: Wed Sep 15 2010 - 16:21:20 EST


When you do perf record foo, it's equivalent to
perf record -e cycles:uk -F 1000 foo

I think there is a problem with perf record in case you provide
multiple events. It is going to sample on all of them at the same
frequency. You may not always want that, but I don't think there
is a way to change that.


On Wed, Sep 15, 2010 at 9:34 PM, Cyrill Gorcunov <gorcunov@xxxxxxxxx> wrote:
> On Wed, Sep 15, 2010 at 08:44:24PM +0200, Robert Richter wrote:
> ...
>>
>> Do you know at which period the counters running for the following?
>>
>> Âperf record ./hackbench 10
>> Âperf record -e cycles -e instructions -e cache-references \
>> Â Â Â-e cache-misses -e branch-misses -a -- <cmd>
>>
>> I couldn't find something about this in the man page.
>>
>
> It's on top of tools/perf/builtin-record.c so by default they
> should be sampled with frequency 1KHz. Frederic or Peter knows
> for sure ;)
>
> Â Â Â Â-- 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/