Re: [RFC][PATCH 05/11] perf: Generic perf_sample_datainitialization

From: David Miller
Date: Wed Mar 03 2010 - 11:49:16 EST

From: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
Date: Wed, 03 Mar 2010 17:39:41 +0100

> This makes it easier to extend perf_sample_data and fixes a bug on
> arm and sparc, which failed to set ->raw to NULL, which can cause
> crashes when combined with PERF_SAMPLE_RAW.
> It also optimizes PowerPC and tracepoint, because the struct
> initialization is forced to zero out the whole structure.
> CC: Jamie Iles <jamie.iles@xxxxxxxxxxxx>
> CC: Jean Pihet <jpihet@xxxxxxxxxx>
> CC: Paul Mackerras <paulus@xxxxxxxxx>
> CC: Ingo Molnar <mingo@xxxxxxx>
> CC: David S. Miller <davem@xxxxxxxxxxxxx>
> CC: Stephane Eranian <eranian@xxxxxxxxxx>
> CC: Frederic Weisbecker <fweisbec@xxxxxxxxx>
> CC: stable@xxxxxxxxxx
> Signed-off-by: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>

Acked-by: David S. Miller <davem@xxxxxxxxxxxxx>
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