blob: 036e1e35b1a8fa5ed64439cb5c73d30558ed71b4 [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
Arnaldo Carvalho de Melo3938bad2016-03-23 15:06:35 -030010void list_common_cmds_help(void);
11const char *help_unknown_cmd(const char *cmd);
12void prune_packed_objects(int);
13int read_line_with_nul(char *buf, int size, FILE *file);
14int check_pager_config(const char *cmd);
Ingo Molnar07800602009-04-20 15:00:56 +020015
Arnaldo Carvalho de Melo3938bad2016-03-23 15:06:35 -030016int cmd_annotate(int argc, const char **argv, const char *prefix);
17int cmd_bench(int argc, const char **argv, const char *prefix);
18int cmd_buildid_cache(int argc, const char **argv, const char *prefix);
19int cmd_buildid_list(int argc, const char **argv, const char *prefix);
20int cmd_config(int argc, const char **argv, const char *prefix);
Jiri Olsa7aef3bf2016-09-22 17:36:38 +020021int cmd_c2c(int argc, const char **argv, const char *prefix);
Arnaldo Carvalho de Melo3938bad2016-03-23 15:06:35 -030022int cmd_diff(int argc, const char **argv, const char *prefix);
23int cmd_evlist(int argc, const char **argv, const char *prefix);
24int cmd_help(int argc, const char **argv, const char *prefix);
25int cmd_sched(int argc, const char **argv, const char *prefix);
Arnaldo Carvalho de Melo35563772017-01-05 15:33:32 -030026int cmd_kallsyms(int argc, const char **argv, const char *prefix);
Arnaldo Carvalho de Melo3938bad2016-03-23 15:06:35 -030027int cmd_list(int argc, const char **argv, const char *prefix);
28int cmd_record(int argc, const char **argv, const char *prefix);
29int cmd_report(int argc, const char **argv, const char *prefix);
30int cmd_stat(int argc, const char **argv, const char *prefix);
31int cmd_timechart(int argc, const char **argv, const char *prefix);
32int cmd_top(int argc, const char **argv, const char *prefix);
33int cmd_script(int argc, const char **argv, const char *prefix);
34int cmd_version(int argc, const char **argv, const char *prefix);
35int cmd_probe(int argc, const char **argv, const char *prefix);
36int cmd_kmem(int argc, const char **argv, const char *prefix);
37int cmd_lock(int argc, const char **argv, const char *prefix);
38int cmd_kvm(int argc, const char **argv, const char *prefix);
39int cmd_test(int argc, const char **argv, const char *prefix);
40int cmd_trace(int argc, const char **argv, const char *prefix);
41int cmd_inject(int argc, const char **argv, const char *prefix);
42int cmd_mem(int argc, const char **argv, const char *prefix);
43int cmd_data(int argc, const char **argv, const char *prefix);
Namhyung Kimd01f4e82013-03-07 21:45:20 +090044int cmd_ftrace(int argc, const char **argv, const char *prefix);
Thomas Gleixner86847b62009-06-06 12:24:17 +020045
Arnaldo Carvalho de Melo3938bad2016-03-23 15:06:35 -030046int find_scripts(char **scripts_array, char **scripts_path_array);
Ingo Molnar07800602009-04-20 15:00:56 +020047#endif