perf ui browser: Add filter method
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 14 Oct 2011 15:27:54 +0000 (12:27 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 14 Oct 2011 15:49:08 +0000 (12:49 -0300)
commit250611cfb60ff0c50ca189da7ca727dcd78e8cee
tree9983dca2ccca7edfb18218099c5bc64dc206ab5f
parent7296d66aca60a71076a5f0ffab39730e7788590f
perf ui browser: Add filter method

Its becoming common to allow the user to filter out parts of the data
structure being browsed, like already done in the hists browser and in
the annotate browser in the next commit, so provide it directly in the
ui_browser class list_head helpers.

More work required to move the equivalent routines found now in the
hists browser to the rb_tree helpers.

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