summaryrefslogtreecommitdiffstats
path: root/tools/objtool/include/objtool/builtin.h
blob: 87c1a7351e3cf81cf151ad9cd25071f46021a90c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Copyright (C) 2015 Josh Poimboeuf <jpoimboe@redhat.com>
 */
#ifndef _BUILTIN_H
#define _BUILTIN_H

#include <subcmd/parse-options.h>

extern const struct option check_options[];

struct opts {
	/* actions: */
	bool ibt;
	bool mcount;
	bool noinstr;
	bool retpoline;
	bool sls;
	bool uaccess;

	/* options: */
	bool backtrace;
	bool backup;
	bool dryrun;
	bool lto;
	bool module;
	bool no_fp;
	bool no_unreachable;
	bool stats;
	bool vmlinux;
};

extern struct opts opts;

extern int cmd_parse_options(int argc, const char **argv, const char * const usage[]);

extern int cmd_check(int argc, const char **argv);
extern int cmd_orc(int argc, const char **argv);

#endif /* _BUILTIN_H */