aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@redhat.com>2010-01-05 17:47:10 -0500
committerIngo Molnar <mingo@elte.hu>2010-01-13 04:09:13 -0500
commit72041334b8c75ae7e1da2f17ba2b7afee8f2abd7 (patch)
tree6f5a0bbff7da71fbe88a37383d17a281206e5634 /tools
parentbbaa46fac6d1c652bfa6282420d36a44bdc53b64 (diff)
perf probe: Show probe list in pager
Show probe list in pager, because the list can be longer than a page. Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: systemtap <systemtap@sources.redhat.com> Cc: DLE <dle-develop@lists.sourceforge.net> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Mike Galbraith <efault@gmx.de> LKML-Reference: <20100105224710.19431.61542.stgit@dhcp-100-2-132.bos.redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/util/probe-event.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c
index 8e532d9824f0..a22141a773bc 100644
--- a/tools/perf/util/probe-event.c
+++ b/tools/perf/util/probe-event.c
@@ -37,6 +37,7 @@
37#include "string.h" 37#include "string.h"
38#include "strlist.h" 38#include "strlist.h"
39#include "debug.h" 39#include "debug.h"
40#include "cache.h"
40#include "parse-events.h" /* For debugfs_path */ 41#include "parse-events.h" /* For debugfs_path */
41#include "probe-event.h" 42#include "probe-event.h"
42 43
@@ -455,6 +456,8 @@ void show_perf_probe_events(void)
455 struct strlist *rawlist; 456 struct strlist *rawlist;
456 struct str_node *ent; 457 struct str_node *ent;
457 458
459 setup_pager();
460
458 fd = open_kprobe_events(O_RDONLY, 0); 461 fd = open_kprobe_events(O_RDONLY, 0);
459 rawlist = get_trace_kprobe_event_rawlist(fd); 462 rawlist = get_trace_kprobe_event_rawlist(fd);
460 close(fd); 463 close(fd);