mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 03:52:37 +00:00
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 <[email protected]> Acked-by: Frederic Weisbecker <[email protected]> Cc: Peter Zijlstra <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
22 lines
437 B
C
22 lines
437 B
C
/*
|
|
* builtin-list.c
|
|
*
|
|
* Builtin list command: list all event types
|
|
*
|
|
* Copyright (C) 2009, Thomas Gleixner <[email protected]>
|
|
* Copyright (C) 2008-2009, Red Hat Inc, Ingo Molnar <[email protected]>
|
|
*/
|
|
#include "builtin.h"
|
|
|
|
#include "perf.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;
|
|
}
|