Re: [PATCH v3 04/19] perf, core: Add a concept of a weightened sample

From: Jiri Olsa
Date: Wed Nov 28 2012 - 10:23:59 EST


On Wed, Nov 21, 2012 at 01:49:30PM +0100, Stephane Eranian wrote:
> From: Andi Kleen <ak@xxxxxxxxxxxxxxx>

SNIP

> index 4f63c05..c52caab 100644
> --- a/include/uapi/linux/perf_event.h
> +++ b/include/uapi/linux/perf_event.h
> @@ -132,8 +132,10 @@ enum perf_event_sample_format {
> PERF_SAMPLE_BRANCH_STACK = 1U << 11,
> PERF_SAMPLE_REGS_USER = 1U << 12,
> PERF_SAMPLE_STACK_USER = 1U << 13,
> + PERF_SAMPLE_WEIGHT = 1U << 14,
> +
> + PERF_SAMPLE_MAX = 1U << 15, /* non-ABI */
>
> - PERF_SAMPLE_MAX = 1U << 14, /* non-ABI */
> };
>
> /*
> @@ -198,8 +200,9 @@ enum perf_event_read_format {
> PERF_FORMAT_TOTAL_TIME_RUNNING = 1U << 1,
> PERF_FORMAT_ID = 1U << 2,
> PERF_FORMAT_GROUP = 1U << 3,
> + PERF_FORMAT_WEIGHT = 1U << 4,

what's PERF_FORMAT_WEIGHT for?

thanks,
jirka
--
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/