tools/perf: Fix sorting for 64bit entries
authorAndi Kleen <ak@linux.intel.com>
Tue, 1 Oct 2013 14:22:15 +0000 (07:22 -0700)
committerIngo Molnar <mingo@kernel.org>
Fri, 4 Oct 2013 08:06:06 +0000 (10:06 +0200)
commit354cc40e3b0981c38ba2ce2964954480e6c03c37
tree49324485861fbf124babc19942a47d04bac35e10
parentfafd883f671dfc1c2f62009179920f27abc784a1
tools/perf: Fix sorting for 64bit entries

Some of the node comparisons in hist.c dropped the upper
32bit by using an int variable to store the compare
result. This broke various 64bit fields, causing
incorrect collapsing (found for the TSX transaction field)

Just use int64_t always.

Acked-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1380637335-30110-1-git-send-email-andi@firstfloor.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
tools/perf/util/hist.c