From: Arnaldo Carvalho de Melo Date: Sun, 9 May 2010 16:02:23 +0000 (-0300) Subject: perf hist: Simplify the insertion of new hist_entry instances X-Git-Tag: v2.6.35-rc1~522^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28e2a106d16046ca792722795f809e3f80a5af80;p=pandora-kernel.git perf hist: Simplify the insertion of new hist_entry instances And with that fix at least one bug: The first hit for an entry, the one that calls malloc to create a new instance in __perf_session__add_hist_entry, wasn't adding the count to the per cpumode (PERF_RECORD_MISC_USER, etc) total variable. Cc: Frédéric Weisbecker Cc: Mike Galbraith Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Tom Zanussi LKML-Reference: Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed