Lines Matching refs:opts

17 struct opts opts;
32 opts.dump_orc = true;
51 opts.hack_jump_label = true;
56 opts.hack_noinstr = true;
61 opts.hack_skylake = true;
71 OPT_BOOLEAN('i', "ibt", &opts.ibt, "validate and annotate IBT"),
72 OPT_BOOLEAN('m', "mcount", &opts.mcount, "annotate mcount/fentry calls for ftrace"),
73 OPT_BOOLEAN('n', "noinstr", &opts.noinstr, "validate noinstr rules"),
74 OPT_BOOLEAN('o', "orc", &opts.orc, "generate ORC metadata"),
75 OPT_BOOLEAN('r', "retpoline", &opts.retpoline, "validate and annotate retpoline usage"),
76 OPT_BOOLEAN(0, "rethunk", &opts.rethunk, "validate and annotate rethunk usage"),
77 OPT_BOOLEAN(0, "unret", &opts.unret, "validate entry unret placement"),
78 OPT_INTEGER(0, "prefix", &opts.prefix, "generate prefix symbols"),
79 OPT_BOOLEAN('l', "sls", &opts.sls, "validate straight-line-speculation mitigations"),
80 OPT_BOOLEAN('s', "stackval", &opts.stackval, "validate frame pointer rules"),
81 OPT_BOOLEAN('t', "static-call", &opts.static_call, "annotate static calls"),
82 OPT_BOOLEAN('u', "uaccess", &opts.uaccess, "validate uaccess rules for SMAP"),
83 OPT_BOOLEAN(0 , "cfi", &opts.cfi, "annotate kernel control flow integrity (kCFI) function preambles"),
87 OPT_BOOLEAN(0, "backtrace", &opts.backtrace, "unwind on error"),
88 OPT_BOOLEAN(0, "backup", &opts.backup, "create .orig files before modification"),
89 OPT_BOOLEAN(0, "dry-run", &opts.dryrun, "don't write modifications"),
90 OPT_BOOLEAN(0, "link", &opts.link, "object is a linked object"),
91 OPT_BOOLEAN(0, "module", &opts.module, "object is part of a kernel module"),
92 OPT_BOOLEAN(0, "mnop", &opts.mnop, "nop out mcount call sites"),
93 OPT_BOOLEAN(0, "no-unreachable", &opts.no_unreachable, "skip 'unreachable instruction' warnings"),
94 OPT_BOOLEAN(0, "sec-address", &opts.sec_address, "print section addresses in warnings"),
95 OPT_BOOLEAN(0, "stats", &opts.stats, "print statistics"),
96 OPT_BOOLEAN('v', "verbose", &opts.verbose, "verbose warnings"),
124 opts.verbose = true;
134 if (opts.hack_jump_label ||
135 opts.hack_noinstr ||
136 opts.ibt ||
137 opts.mcount ||
138 opts.noinstr ||
139 opts.orc ||
140 opts.retpoline ||
141 opts.rethunk ||
142 opts.sls ||
143 opts.stackval ||
144 opts.static_call ||
145 opts.uaccess) {
146 if (opts.dump_orc) {
154 if (opts.unret && !opts.rethunk) {
159 if (opts.dump_orc)
168 if (opts.mnop && !opts.mcount) {
178 if (opts.link)
183 opts.link = true;
187 if (opts.noinstr) {
192 if (opts.ibt) {
197 if (opts.unret) {
217 if (opts.dump_orc)