builtin-check.c (6f84981772535e670e4e2df051a672af229b6694) builtin-check.c (cfd66e81799f4a2fdc6447fa99bdb1871f45ff08)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (C) 2015-2017 Josh Poimboeuf <jpoimboe@redhat.com>
4 */
5
6#include <subcmd/parse-options.h>
7#include <string.h>
8#include <stdlib.h>

--- 51 unchanged lines hidden (view full) ---

60 if (!str || strstr(str, "skylake")) {
61 opts.hack_skylake = true;
62 found = true;
63 }
64
65 return found ? 0 : -1;
66}
67
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (C) 2015-2017 Josh Poimboeuf <jpoimboe@redhat.com>
4 */
5
6#include <subcmd/parse-options.h>
7#include <string.h>
8#include <stdlib.h>

--- 51 unchanged lines hidden (view full) ---

60 if (!str || strstr(str, "skylake")) {
61 opts.hack_skylake = true;
62 found = true;
63 }
64
65 return found ? 0 : -1;
66}
67
68const struct option check_options[] = {
68static const struct option check_options[] = {
69 OPT_GROUP("Actions:"),
70 OPT_CALLBACK_OPTARG('h', "hacks", NULL, NULL, "jump_label,noinstr,skylake", "patch toolchain bugs/limitations", parse_hacks),
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"),

--- 157 unchanged lines hidden ---
69 OPT_GROUP("Actions:"),
70 OPT_CALLBACK_OPTARG('h', "hacks", NULL, NULL, "jump_label,noinstr,skylake", "patch toolchain bugs/limitations", parse_hacks),
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"),

--- 157 unchanged lines hidden ---