blob: 41c24010ab43188aeca2addd02e712dd3b726493 [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);
21int cmd_diff(int argc, const char **argv, const char *prefix);
22int cmd_evlist(int argc, const char **argv, const char *prefix);
23int cmd_help(int argc, const char **argv, const char *prefix);
24int cmd_sched(int argc, const char **argv, const char *prefix);
25int cmd_list(int argc, const char **argv, const char *prefix);
26int cmd_record(int argc, const char **argv, const char *prefix);
27int cmd_report(int argc, const char **argv, const char *prefix);
28int cmd_stat(int argc, const char **argv, const char *prefix);
29int cmd_timechart(int argc, const char **argv, const char *prefix);
30int cmd_top(int argc, const char **argv, const char *prefix);
31int cmd_script(int argc, const char **argv, const char *prefix);
32int cmd_version(int argc, const char **argv, const char *prefix);
33int cmd_probe(int argc, const char **argv, const char *prefix);
34int cmd_kmem(int argc, const char **argv, const char *prefix);
35int cmd_lock(int argc, const char **argv, const char *prefix);
36int cmd_kvm(int argc, const char **argv, const char *prefix);
37int cmd_test(int argc, const char **argv, const char *prefix);
38int cmd_trace(int argc, const char **argv, const char *prefix);
39int cmd_inject(int argc, const char **argv, const char *prefix);
40int cmd_mem(int argc, const char **argv, const char *prefix);
41int cmd_data(int argc, const char **argv, const char *prefix);
Thomas Gleixner86847b62009-06-06 12:24:17 +020042
Arnaldo Carvalho de Melo3938bad2016-03-23 15:06:35 -030043int find_scripts(char **scripts_array, char **scripts_path_array);
Ingo Molnar07800602009-04-20 15:00:56 +020044#endif