]> git.baikalelectronics.ru Git - kernel.git/commit
perf hists: Threaded addition and sorting of entries
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 5 Oct 2011 20:50:23 +0000 (17:50 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 7 Oct 2011 15:12:29 +0000 (12:12 -0300)
commit91f6761d7cf5ed61c2810a7b38d03e3049a2b147
tree3f2004bffaf6e77b66571e44f8af247ac177d92b
parent944551d2a7ca00292a249c172fb7931aa2ecc281
perf hists: Threaded addition and sorting of entries

By using a mutex just for inserting and rotating two hist_entry rb
trees, so that when sorting we can get the last batch of entries created
from the ring buffer, merge it with whatever we have processed so far
and show the output while new entries are being added.

The 'report' tool continues, for now, to do it without threading, but
will use this in the future to allow visualization of results in long
perf.data sessions while the entries are being processed.

The new 'top' tool will be the first user.

Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
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-9b05atsn0q6m7fqgrug8fk2i@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evsel.c
tools/perf/util/hist.c
tools/perf/util/hist.h
tools/perf/util/sort.h