Ingo Molnar | 0780060 | 2009-04-20 15:00:56 +0200 | [diff] [blame] | 1 | #ifndef BUILTIN_H |
| 2 | #define BUILTIN_H |
| 3 | |
Ingo Molnar | 148be2c | 2009-04-27 08:02:14 +0200 | [diff] [blame] | 4 | #include "util/util.h" |
| 5 | #include "util/strbuf.h" |
Ingo Molnar | 0780060 | 2009-04-20 15:00:56 +0200 | [diff] [blame] | 6 | |
Ingo Molnar | 0780060 | 2009-04-20 15:00:56 +0200 | [diff] [blame] | 7 | extern const char perf_usage_string[]; |
| 8 | extern const char perf_more_info_string[]; |
| 9 | |
| 10 | extern void list_common_cmds_help(void); |
| 11 | extern const char *help_unknown_cmd(const char *cmd); |
| 12 | extern void prune_packed_objects(int); |
| 13 | extern int read_line_with_nul(char *buf, int size, FILE *file); |
| 14 | extern int check_pager_config(const char *cmd); |
| 15 | |
Ingo Molnar | 8035e42 | 2009-06-06 15:19:13 +0200 | [diff] [blame] | 16 | extern int cmd_annotate(int argc, const char **argv, const char *prefix); |
Hitoshi Mitake | 11bd341 | 2009-11-05 09:31:35 +0900 | [diff] [blame] | 17 | extern int cmd_bench(int argc, const char **argv, const char *prefix); |
Arnaldo Carvalho de Melo | ef12a14 | 2010-01-20 15:28:45 -0200 | [diff] [blame] | 18 | extern int cmd_buildid_cache(int argc, const char **argv, const char *prefix); |
Arnaldo Carvalho de Melo | c34984b | 2009-11-16 16:32:45 -0200 | [diff] [blame] | 19 | extern int cmd_buildid_list(int argc, const char **argv, const char *prefix); |
Arnaldo Carvalho de Melo | 86a9eee | 2009-12-14 20:09:31 -0200 | [diff] [blame] | 20 | extern int cmd_diff(int argc, const char **argv, const char *prefix); |
Arnaldo Carvalho de Melo | 43adec9 | 2011-03-15 11:04:13 -0300 | [diff] [blame] | 21 | extern int cmd_evlist(int argc, const char **argv, const char *prefix); |
Ingo Molnar | 6142fdd | 2009-04-20 16:05:55 +0200 | [diff] [blame] | 22 | extern int cmd_help(int argc, const char **argv, const char *prefix); |
Ingo Molnar | 0a02ad9 | 2009-09-11 12:12:54 +0200 | [diff] [blame] | 23 | extern int cmd_sched(int argc, const char **argv, const char *prefix); |
| 24 | extern int cmd_list(int argc, const char **argv, const char *prefix); |
Ingo Molnar | e33e0a4 | 2009-04-20 15:58:01 +0200 | [diff] [blame] | 25 | extern int cmd_record(int argc, const char **argv, const char *prefix); |
Arnaldo Carvalho de Melo | 8fa66bd | 2009-05-18 12:45:42 -0300 | [diff] [blame] | 26 | extern int cmd_report(int argc, const char **argv, const char *prefix); |
Ingo Molnar | 1d8c8b2 | 2009-04-20 15:52:29 +0200 | [diff] [blame] | 27 | extern int cmd_stat(int argc, const char **argv, const char *prefix); |
Arjan van de Ven | 1027498 | 2009-09-12 07:53:05 +0200 | [diff] [blame] | 28 | extern int cmd_timechart(int argc, const char **argv, const char *prefix); |
Ingo Molnar | e33e0a4 | 2009-04-20 15:58:01 +0200 | [diff] [blame] | 29 | extern int cmd_top(int argc, const char **argv, const char *prefix); |
Ingo Molnar | 133dc4c | 2010-11-16 18:45:39 +0100 | [diff] [blame] | 30 | extern int cmd_script(int argc, const char **argv, const char *prefix); |
Ingo Molnar | 0a02ad9 | 2009-09-11 12:12:54 +0200 | [diff] [blame] | 31 | extern int cmd_version(int argc, const char **argv, const char *prefix); |
Masami Hiramatsu | 4ea42b1 | 2009-10-08 17:17:38 -0400 | [diff] [blame] | 32 | extern int cmd_probe(int argc, const char **argv, const char *prefix); |
Li Zefan | ba77c9e | 2009-11-20 15:53:25 +0800 | [diff] [blame] | 33 | extern int cmd_kmem(int argc, const char **argv, const char *prefix); |
Hitoshi Mitake | 9b5e350 | 2010-01-30 20:43:33 +0900 | [diff] [blame] | 34 | extern int cmd_lock(int argc, const char **argv, const char *prefix); |
Zhang, Yanmin | a1645ce | 2010-04-19 13:32:50 +0800 | [diff] [blame] | 35 | extern int cmd_kvm(int argc, const char **argv, const char *prefix); |
Arnaldo Carvalho de Melo | 1c6a800 | 2010-04-29 18:58:32 -0300 | [diff] [blame] | 36 | extern int cmd_test(int argc, const char **argv, const char *prefix); |
Arnaldo Carvalho de Melo | 514f1c6 | 2012-09-26 20:05:56 -0300 | [diff] [blame] | 37 | extern int cmd_trace(int argc, const char **argv, const char *prefix); |
Tom Zanussi | 454c407 | 2010-05-01 01:41:20 -0500 | [diff] [blame] | 38 | extern int cmd_inject(int argc, const char **argv, const char *prefix); |
Thomas Gleixner | 86847b6 | 2009-06-06 12:24:17 +0200 | [diff] [blame] | 39 | |
Feng Tang | e5f3705 | 2012-09-07 16:42:26 +0800 | [diff] [blame] | 40 | extern int find_scripts(char **scripts_array, char **scripts_path_array); |
Ingo Molnar | 0780060 | 2009-04-20 15:00:56 +0200 | [diff] [blame] | 41 | #endif |