1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef BUILTIN_H 3 #define BUILTIN_H 4 5 #include <stddef.h> 6 #include <linux/compiler.h> 7 #include <tools/config.h> 8 9 struct feature_status { 10 const char *name; 11 const char *macro; 12 int is_builtin; 13 }; 14 15 #define FEATURE_STATUS(name_, macro_) { \ 16 .name = name_, \ 17 .macro = #macro_, \ 18 .is_builtin = IS_BUILTIN(macro_) } 19 20 extern struct feature_status supported_features[]; 21 struct cmdnames; 22 23 void list_common_cmds_help(void); 24 const char *help_unknown_cmd(const char *cmd, struct cmdnames *main_cmds); 25 26 int cmd_annotate(int argc, const char **argv); 27 int cmd_bench(int argc, const char **argv); 28 int cmd_buildid_cache(int argc, const char **argv); 29 int cmd_buildid_list(int argc, const char **argv); 30 int cmd_check(int argc, const char **argv); 31 int cmd_config(int argc, const char **argv); 32 int cmd_c2c(int argc, const char **argv); 33 int cmd_diff(int argc, const char **argv); 34 int cmd_evlist(int argc, const char **argv); 35 int cmd_help(int argc, const char **argv); 36 int cmd_sched(int argc, const char **argv); 37 int cmd_kallsyms(int argc, const char **argv); 38 int cmd_list(int argc, const char **argv); 39 int cmd_record(int argc, const char **argv); 40 int cmd_report(int argc, const char **argv); 41 int cmd_stat(int argc, const char **argv); 42 int cmd_timechart(int argc, const char **argv); 43 int cmd_top(int argc, const char **argv); 44 int cmd_script(int argc, const char **argv); 45 int cmd_version(int argc, const char **argv); 46 int cmd_probe(int argc, const char **argv); 47 int cmd_kmem(int argc, const char **argv); 48 int cmd_lock(int argc, const char **argv); 49 int cmd_kvm(int argc, const char **argv); 50 int cmd_test(int argc, const char **argv); 51 int cmd_trace(int argc, const char **argv); 52 int cmd_inject(int argc, const char **argv); 53 int cmd_mem(int argc, const char **argv); 54 int cmd_data(int argc, const char **argv); 55 int cmd_ftrace(int argc, const char **argv); 56 int cmd_daemon(int argc, const char **argv); 57 int cmd_kwork(int argc, const char **argv); 58 59 int find_scripts(char **scripts_array, char **scripts_path_array, int num, 60 int pathlen); 61 #endif 62