Skip to content

Commit

Permalink
perf list: Fix large list output by using the pager
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arnaldo Carvalho de Melo authored and Ingo Molnar committed Aug 13, 2009
1 parent 04da8a4 commit 8f7a0dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/perf/builtin-list.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@

#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;
}

0 comments on commit 8f7a0dc

Please sign in to comment.