perf list: Fix large list output by using the pager
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 12 Aug 2009 17:44:59 +0000 (14:44 -0300)
committerIngo Molnar <mingo@elte.hu>
Thu, 13 Aug 2009 07:05:48 +0000 (09:05 +0200)
When /sys/kernel/debug is mounted the list can be imense, so
use the pager like the other tools.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <20090812174459.GB3495@ghostprotocols.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-list.c

index f990fa8..d88c696 100644 (file)
 
 #include "perf.h"
 
-#include "util/parse-options.h"
 #include "util/parse-events.h"
+#include "util/cache.h"
 
 int cmd_list(int argc __used, const char **argv __used, const char *prefix __used)
 {
+       setup_pager();
        print_events();
        return 0;
 }