Re: [RFC][PATCH] perf_events: Fix FORK events

From: Peter Zijlstra
Date: Mon Feb 08 2010 - 10:58:14 EST


On Mon, 2010-02-08 at 08:44 +0100, Ingo Molnar wrote:
>
> > We could of course just slam the commit in and not worry about it, but
> > that just doesn't feel right.
>
> Would be nice to figure it out ...

OK, so it is real simple, patch 22e19085 ("perf: Honour event state for
aux stream data") drops all events for !ACTIVE and newly inherited child
counters are INACTIVE.

So we can either go with the original patch and send the FORK events to
the parent because that's always ACTIVE (already true for COMM and
MMAP), or weaken the state test to < INACTIVE, which would also satisfy
Anton's case because PERF_EVENT_IOC_DISABLE sets events to OFF.



--
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/