From: Ingo Molnar Date: Wed, 27 Apr 2011 02:36:37 +0000 (+0200) Subject: perf stat: Factor our shadow stats X-Git-Tag: v3.0-rc1~404^2~11^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcd9936a5a6d89512b5323c1145647f2dbe0236f;p=pandora-kernel.git perf stat: Factor our shadow stats Create update_shadow_stats() which is then used in both read_counter_aggr() and read_counter(). This not only simplifies the code but also fixes a bug: HW_CACHE_REFERENCES was not updated in read_counter(). Acked-by: Peter Zijlstra Acked-by: Arnaldo Carvalho de Melo Cc: Frederic Weisbecker Link: http://lkml.kernel.org/n/tip-9uc55z3g88r47exde7zxjm6p@git.kernel.org Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed