2009-06-06 10:24:17 +00:00
|
|
|
/*
|
|
|
|
* builtin-list.c
|
|
|
|
*
|
|
|
|
* Builtin list command: list all event types
|
|
|
|
*
|
|
|
|
* Copyright (C) 2009, Thomas Gleixner <tglx@linutronix.de>
|
|
|
|
* Copyright (C) 2008-2009, Red Hat Inc, Ingo Molnar <mingo@redhat.com>
|
|
|
|
*/
|
|
|
|
#include "builtin.h"
|
|
|
|
|
|
|
|
#include "perf.h"
|
|
|
|
|
|
|
|
#include "util/parse-events.h"
|
2009-08-12 17:44:59 +00:00
|
|
|
#include "util/cache.h"
|
2009-06-06 10:24:17 +00:00
|
|
|
|
2009-07-01 10:37:06 +00:00
|
|
|
int cmd_list(int argc __used, const char **argv __used, const char *prefix __used)
|
2009-06-06 10:24:17 +00:00
|
|
|
{
|
2009-08-12 17:44:59 +00:00
|
|
|
setup_pager();
|
2009-06-06 10:24:17 +00:00
|
|
|
print_events();
|
|
|
|
return 0;
|
|
|
|
}
|