]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7fe2aa1318948863842bbf79561cff15f363497c
treef30be6d560deee5bec203963aa215673b0ddf877
parent8ff4f255270a671b455a45ca58f56bb38c94c1b1
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