]> git.karo-electronics.de Git - linux-beck.git/commit
perf hists: Introduce hists__link
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 8 Nov 2012 21:03:09 +0000 (18:03 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 8 Nov 2012 21:08:15 +0000 (18:08 -0300)
commit494d70a18137d18f0728fab7ad4f56aba29d1982
tree0056cc3dd78a3fcedf47950685a76dbc4218ecae
parent95529be47855be6350dfd0b9cd09ea863ca7421f
perf hists: Introduce hists__link

That given two hists will find the hist_entries (buckets) in the second
hists that are for the same bucket in the first and link them, then it
will look for all buckets in the second that don't have a counterpart in
the first and will create a dummy counterpart that will then be linked
to the entry in the second.

For multiple events this will be done pairing the leader with all the
other events in the group, so that in the end the leader will have all
the buckets in all the hists in a group, dummy or not while the other
hists will be left untouched.

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-l9l9ieozqdhn9lieokd95okw@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/hist.c
tools/perf/util/hist.h