perf hists: Factor output_resort from hists__output_resort
authorJiri Olsa <jolsa@kernel.org>
Mon, 18 Jan 2016 09:23:59 +0000 (10:23 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 3 Feb 2016 14:13:11 +0000 (11:13 -0300)
commit01441af5df438a171bce36bc3c7cfb588bc98a7a
treef30be6d560deee5bec203963aa215673b0ddf877
parent8eb22c984eb9eeaed47130f5679acd367af69678
perf hists: Factor output_resort from hists__output_resort

Currently hists__output_resort() depends on hists based on hists_evsel
struct, but we need to be able to sort common hists as well.

Cutting out the sorting base sorting code into output_resort
function, so it can be reused in following patch.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1453109064-1026-2-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/hist.c