Re: [PATCH 1/4] perf: fix counter of ftrace events

From: Arun Sharma
Date: Fri Oct 14 2011 - 15:31:22 EST


On Mon, Sep 26, 2011 at 07:55:32PM +0400, Andrew Vagin wrote:
> Each event adds some points to its counters. By default it adds 1,
> and a number of points may be transmited in event's parameters.
>
> E.g. sched:sched_stat_runtime adds how long process has been running.
>
> But this functionality was broken by v2.6.31-rc5-392-gf413cdb
> and now the event's parameters doesn't affect on a number of points.
>
> TP_perf_assign isn't defined, so __perf_count(c) isn't executed and
> __count is always equal to 1.
>
> Signed-off-by: Andrew Vagin <avagin@xxxxxxxxxx>

Acked-by: Arun Sharma <asharma@xxxxxx>

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