perf diff: Start moving to support matching more than two hists
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 25 Oct 2012 16:42:45 +0000 (14:42 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 8 Nov 2012 20:43:09 +0000 (17:43 -0300)
commitb821c7325354c589ccc9611cf9e6b0d7490ed6a6
tree103deb4210a3187c52597def760435502cdc907e
parentff6f7778a66edc033044a6baa2459ce79519e571
perf diff: Start moving to support matching more than two hists

We want to match more than two hists, so that we can match more than two
perf.data files and moreover, match hist_entries (buckets) in multiple
events in a group.

So the "baseline"/"leader" will instead of a ->pair pointer, use a
list_head, that will link to the pairs and hists__match use it.

Following that perf_evlist__link will link the hists in its evsel
groups.

Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-2kbmzepoi544ygj9godseqpv@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-diff.c
tools/perf/ui/hist.c
tools/perf/util/hist.c
tools/perf/util/sort.h