Re: [PATCH 12/21] perf tools: Apply percent-limit to cumulative percentage

From: Namhyung Kim
Date: Mon Jan 06 2014 - 03:33:39 EST


On Sun, 5 Jan 2014 18:40:33 +0100, Jiri Olsa wrote:
> On Tue, Dec 24, 2013 at 05:22:18PM +0900, Namhyung Kim wrote:
>> + if (symbol_conf.cumulate_callchain) {
>> + percent = h->stat_acc->period * 100.0 /
>> + hb->hists->stats.total_period;
>> + } else {
>> + percent = h->stat.period * 100.0 /
>> + hb->hists->stats.total_period;
>> + }
>
> seems like above code (7 lines) should go to function

Will do!

Thanks,
Namhyung
--
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/