Lines Matching refs:opts
23 struct opts opts; variable
38 opts.dump_orc = true; in parse_dump()
57 opts.hack_jump_label = true; in parse_hacks()
62 opts.hack_noinstr = true; in parse_hacks()
67 opts.hack_skylake = true; in parse_hacks()
77 OPT_BOOLEAN('i', "ibt", &opts.ibt, "validate and annotate IBT"),
78 OPT_BOOLEAN('m', "mcount", &opts.mcount, "annotate mcount/fentry calls for ftrace"),
79 OPT_BOOLEAN('n', "noinstr", &opts.noinstr, "validate noinstr rules"),
80 OPT_BOOLEAN(0, "orc", &opts.orc, "generate ORC metadata"),
81 OPT_BOOLEAN('r', "retpoline", &opts.retpoline, "validate and annotate retpoline usage"),
82 OPT_BOOLEAN(0, "rethunk", &opts.rethunk, "validate and annotate rethunk usage"),
83 OPT_BOOLEAN(0, "unret", &opts.unret, "validate entry unret placement"),
84 OPT_INTEGER(0, "prefix", &opts.prefix, "generate prefix symbols"),
85 OPT_BOOLEAN('l', "sls", &opts.sls, "validate straight-line-speculation mitigations"),
86 OPT_BOOLEAN('s', "stackval", &opts.stackval, "validate frame pointer rules"),
87 OPT_BOOLEAN('t', "static-call", &opts.static_call, "annotate static calls"),
88 OPT_BOOLEAN('u', "uaccess", &opts.uaccess, "validate uaccess rules for SMAP"),
89 …OPT_BOOLEAN(0 , "cfi", &opts.cfi, "annotate kernel control flow integrity (kCFI) function preambl…
93 OPT_BOOLEAN(0, "backtrace", &opts.backtrace, "unwind on error"),
94 OPT_BOOLEAN(0, "dry-run", &opts.dryrun, "don't write modifications"),
95 OPT_BOOLEAN(0, "link", &opts.link, "object is a linked object"),
96 OPT_BOOLEAN(0, "module", &opts.module, "object is part of a kernel module"),
97 OPT_BOOLEAN(0, "mnop", &opts.mnop, "nop out mcount call sites"),
98 …OPT_BOOLEAN(0, "no-unreachable", &opts.no_unreachable, "skip 'unreachable instruction' warnings"…
99 OPT_STRING('o', "output", &opts.output, "file", "output file name"),
100 OPT_BOOLEAN(0, "sec-address", &opts.sec_address, "print section addresses in warnings"),
101 OPT_BOOLEAN(0, "stats", &opts.stats, "print statistics"),
102 OPT_BOOLEAN('v', "verbose", &opts.verbose, "verbose warnings"),
103 OPT_BOOLEAN(0, "Werror", &opts.werror, "return error on warnings"),
131 opts.verbose = true; in cmd_parse_options()
141 if (opts.mnop && !opts.mcount) { in opts_valid()
146 if (opts.noinstr && !opts.link) { in opts_valid()
151 if (opts.ibt && !opts.link) { in opts_valid()
156 if (opts.unret && !opts.link) { in opts_valid()
161 if (opts.hack_jump_label || in opts_valid()
162 opts.hack_noinstr || in opts_valid()
163 opts.ibt || in opts_valid()
164 opts.mcount || in opts_valid()
165 opts.noinstr || in opts_valid()
166 opts.orc || in opts_valid()
167 opts.retpoline || in opts_valid()
168 opts.rethunk || in opts_valid()
169 opts.sls || in opts_valid()
170 opts.stackval || in opts_valid()
171 opts.static_call || in opts_valid()
172 opts.uaccess) { in opts_valid()
173 if (opts.dump_orc) { in opts_valid()
181 if (opts.dump_orc) in opts_valid()
251 if (opts.output || opts.dryrun) in print_args()
305 if (opts.dump_orc) in objtool_run()
308 if (!opts.dryrun && opts.output) { in objtool_run()
310 if (copy_file(objname, opts.output)) in objtool_run()
314 objname = opts.output; in objtool_run()
321 if (!opts.link && has_multiple_files(file->elf)) { in objtool_run()
330 if (!opts.dryrun && file->elf->changed && elf_write(file->elf)) in objtool_run()