From: Arnaldo Carvalho de Melo Date: Fri, 2 Apr 2010 12:50:42 +0000 (-0300) Subject: perf hist: Only allocate callchain_node if processing callchains X-Git-Tag: v2.6.35-rc1~522^2~127^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9fb93047756c5e4129dfda7591612de61b0e877;p=pandora-kernel.git perf hist: Only allocate callchain_node if processing callchains The struct callchain_node size is 120 bytes, that are never used when there are no callchains or '-g none' is specified, so conditionally allocate it, reducing sizeof(struct hist_entry) from 210 bytes to only 96, greatly speeding the non-callchain processing. LKML-Reference: Cc: Frédéric Weisbecker Cc: Mike Galbraith Cc: Peter Zijlstra Cc: Paul Mackerras Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed