perf tools: Add ->sort() member to struct sort_entry
authorNamhyung Kim <namhyung@kernel.org>
Tue, 4 Mar 2014 02:01:41 +0000 (11:01 +0900)
committerJiri Olsa <jolsa@kernel.org>
Wed, 21 May 2014 09:45:35 +0000 (11:45 +0200)
commit202e7a6d16127323d03e912d7844aa0d614c315e
treecc13d7a1ed019ebf59b21d53a77804f778e45010
parenta7d945bc91602f916d2d0c794c179d9a784859e7
perf tools: Add ->sort() member to struct sort_entry

Currently, what the sort_entry does is just identifying hist entries
so that they can be grouped properly.  However, with -F option
support, it indeed needs to sort entries appropriately to be shown to
users.  So add ->sort() member to do it.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Ingo Molnar <mingo@kernel.org>
Link: http://lkml.kernel.org/r/1400480762-22852-13-git-send-email-namhyung@kernel.org
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
tools/perf/util/sort.c
tools/perf/util/sort.h