Re: WARNING in arch/x86/kernel/cpu/perf_event.c

From: Peter Zijlstra
Date: Thu May 23 2013 - 11:27:11 EST

On Thu, May 23, 2013 at 10:29:07AM -0400, Vince Weaver wrote:
> Hello,
> so now that I got past the OOPS in perf_mmap_close() I re-ran
> the fuzzer and quickly encountered the following WARNing.
> It happens here:
> static void x86_pmu_start(struct perf_event *event, int flags)
> {
> struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events);
> int idx = event->hw.idx;
> if (WARN_ON_ONCE(!(event->hw.state & PERF_HES_STOPPED)))
> return;
> Is it worth trying to come up with a reproducible case for this one?
> I never know how seriously to take WARN_ON_ONCE dumps.

Its not supposed to happen, you're trying to start an already running
event. I'll put it on the todo list.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at