Re: [RFCv2 0/9] perf: Allow leader sampling on inherited events

From: Jiri Olsa
Date: Mon Aug 25 2014 - 10:52:17 EST

On Mon, Aug 25, 2014 at 04:45:34PM +0200, Jiri Olsa wrote:
> hi,
> Jen-Cheng(Tommy) Huang reported the leader sampling not working
> on children processes:
> The leader sampling (example below) lets the group leader event (cycles)
> do the sampling and reads the rest of the group (cache-misses) via
> Example:
> $ perf record -e '{cycles,cache-misses}:S' <workload>
> $ perf report --group
> The perf report --group allows to see all events group
> data in single view.
> The reason for leader sampling being switched off for inherited
> events, is that the kernel does no allow PERF_FORMAT_GROUP format
> on inherited events (which is used by leader sampling).
> I switched on the PERF_FORMAT_GROUP format for inherited events
> with few other fixies in patches:
> perf: Deny optimized switch for events read by PERF_SAMPLE_READ
> perf: Allow PERF_FORMAT_GROUP format on inherited events
> And I fixed perf tool code to be able to process data from
> children processes.
> Anyway, I might have missed some other reason why this was
> never switched on in kernel, so sending this as RFC.
> v2 changes:
> - detection of the kernel support
> - added perf script support for period column
> - separate kernel change for context_equiv change

and as usuall I forgot.. also reachable in here:

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