blob: 08143bd854c7db8b09369ee9e108d9dd09714518 [file] [log] [blame]
Ingo Molnar07800602009-04-20 15:00:56 +02001#ifndef BUILTIN_H
2#define BUILTIN_H
3
Ingo Molnar148be2c2009-04-27 08:02:14 +02004#include "util/util.h"
5#include "util/strbuf.h"
Ingo Molnar07800602009-04-20 15:00:56 +02006
Ingo Molnar07800602009-04-20 15:00:56 +02007extern const char perf_usage_string[];
8extern const char perf_more_info_string[];
9
10extern void list_common_cmds_help(void);
11extern const char *help_unknown_cmd(const char *cmd);
12extern void prune_packed_objects(int);
13extern int read_line_with_nul(char *buf, int size, FILE *file);
14extern int check_pager_config(const char *cmd);
15
Ingo Molnar8035e422009-06-06 15:19:13 +020016extern int cmd_annotate(int argc, const char **argv, const char *prefix);
Hitoshi Mitake11bd3412009-11-05 09:31:35 +090017extern int cmd_bench(int argc, const char **argv, const char *prefix);
Arnaldo Carvalho de Meloef12a142010-01-20 15:28:45 -020018extern int cmd_buildid_cache(int argc, const char **argv, const char *prefix);
Arnaldo Carvalho de Meloc34984b2009-11-16 16:32:45 -020019extern int cmd_buildid_list(int argc, const char **argv, const char *prefix);
Arnaldo Carvalho de Melo86a9eee2009-12-14 20:09:31 -020020extern int cmd_diff(int argc, const char **argv, const char *prefix);
Arnaldo Carvalho de Melo43adec92011-03-15 11:04:13 -030021extern int cmd_evlist(int argc, const char **argv, const char *prefix);
Ingo Molnar6142fdd2009-04-20 16:05:55 +020022extern int cmd_help(int argc, const char **argv, const char *prefix);
Ingo Molnar0a02ad92009-09-11 12:12:54 +020023extern int cmd_sched(int argc, const char **argv, const char *prefix);
24extern int cmd_list(int argc, const char **argv, const char *prefix);
Ingo Molnare33e0a42009-04-20 15:58:01 +020025extern int cmd_record(int argc, const char **argv, const char *prefix);
Arnaldo Carvalho de Melo8fa66bd2009-05-18 12:45:42 -030026extern int cmd_report(int argc, const char **argv, const char *prefix);
Ingo Molnar1d8c8b22009-04-20 15:52:29 +020027extern int cmd_stat(int argc, const char **argv, const char *prefix);
Arjan van de Ven10274982009-09-12 07:53:05 +020028extern int cmd_timechart(int argc, const char **argv, const char *prefix);
Ingo Molnare33e0a42009-04-20 15:58:01 +020029extern int cmd_top(int argc, const char **argv, const char *prefix);
Ingo Molnar133dc4c2010-11-16 18:45:39 +010030extern int cmd_script(int argc, const char **argv, const char *prefix);
Ingo Molnar0a02ad92009-09-11 12:12:54 +020031extern int cmd_version(int argc, const char **argv, const char *prefix);
Masami Hiramatsu4ea42b12009-10-08 17:17:38 -040032extern int cmd_probe(int argc, const char **argv, const char *prefix);
Li Zefanba77c9e2009-11-20 15:53:25 +080033extern int cmd_kmem(int argc, const char **argv, const char *prefix);
Hitoshi Mitake9b5e3502010-01-30 20:43:33 +090034extern int cmd_lock(int argc, const char **argv, const char *prefix);
Zhang, Yanmina1645ce2010-04-19 13:32:50 +080035extern int cmd_kvm(int argc, const char **argv, const char *prefix);
Arnaldo Carvalho de Melo1c6a8002010-04-29 18:58:32 -030036extern int cmd_test(int argc, const char **argv, const char *prefix);
Arnaldo Carvalho de Melo514f1c62012-09-26 20:05:56 -030037extern int cmd_trace(int argc, const char **argv, const char *prefix);
Tom Zanussi454c4072010-05-01 01:41:20 -050038extern int cmd_inject(int argc, const char **argv, const char *prefix);
Thomas Gleixner86847b62009-06-06 12:24:17 +020039
Feng Tange5f37052012-09-07 16:42:26 +080040extern int find_scripts(char **scripts_array, char **scripts_path_array);
Ingo Molnar07800602009-04-20 15:00:56 +020041#endif