From: Anton Blanchard Date: Sun, 18 Oct 2009 11:29:23 +0000 (+1100) Subject: perf stat: Add branch performance metric X-Git-Tag: v2.6.33-rc1~399^2~187^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11018201b831e19304c0d639f105ad6c27e120b1;p=pandora-kernel.git perf stat: Add branch performance metric When we count both branches and branch-misses it is useful to print out the percentage of branch-misses: # perf stat -e branches -e branch-misses /bin/true Performance counter stats for '/bin/true': 401684 branches # 0.000 M/sec 23301 branch-misses # 5.801 % Signed-off-by: Anton Blanchard Cc: paulus@samba.org Cc: a.p.zijlstra@chello.nl LKML-Reference: <20091018112923.GQ4808@kryten> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed