xref: /openbmc/linux/tools/objtool/include/objtool/builtin.h (revision c1601ea9a65133685c4ddaf3d3640d905e9405c8)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * Copyright (C) 2015 Josh Poimboeuf <jpoimboe@redhat.com>
4  */
5 #ifndef _BUILTIN_H
6 #define _BUILTIN_H
7 
8 #include <subcmd/parse-options.h>
9 
10 extern const struct option check_options[];
11 
12 struct opts {
13 	/* actions: */
14 	bool dump_orc;
15 	bool hack_jump_label;
16 	bool hack_noinstr;
17 	bool ibt;
18 	bool mcount;
19 	bool noinstr;
20 	bool orc;
21 	bool retpoline;
22 	bool sls;
23 	bool stackval;
24 	bool static_call;
25 	bool uaccess;
26 
27 	/* options: */
28 	bool backtrace;
29 	bool backup;
30 	bool dryrun;
31 	bool link;
32 	bool module;
33 	bool no_unreachable;
34 	bool sec_address;
35 	bool stats;
36 };
37 
38 extern struct opts opts;
39 
40 extern int cmd_parse_options(int argc, const char **argv, const char * const usage[]);
41 
42 extern int objtool_run(int argc, const char **argv);
43 
44 #endif /* _BUILTIN_H */
45