提交 72041334 编写于 作者: M Masami Hiramatsu 提交者: Ingo Molnar

perf probe: Show probe list in pager

Show probe list in pager, because the list can be longer than
a page.
Signed-off-by: NMasami 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: NIngo Molnar <mingo@elte.hu>
上级 bbaa46fa
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include "string.h" #include "string.h"
#include "strlist.h" #include "strlist.h"
#include "debug.h" #include "debug.h"
#include "cache.h"
#include "parse-events.h" /* For debugfs_path */ #include "parse-events.h" /* For debugfs_path */
#include "probe-event.h" #include "probe-event.h"
...@@ -455,6 +456,8 @@ void show_perf_probe_events(void) ...@@ -455,6 +456,8 @@ void show_perf_probe_events(void)
struct strlist *rawlist; struct strlist *rawlist;
struct str_node *ent; struct str_node *ent;
setup_pager();
fd = open_kprobe_events(O_RDONLY, 0); fd = open_kprobe_events(O_RDONLY, 0);
rawlist = get_trace_kprobe_event_rawlist(fd); rawlist = get_trace_kprobe_event_rawlist(fd);
close(fd); close(fd);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册