History

objtool: Rename "VMLINUX_VALIDATION" -> "NOINSTR_VALIDATION"

CONFIG_VMLINUX_VALIDATION is just the validation of the "noinstr" rules. That name is a misnomer, because now objtool actually does vmlinux validation for other reasons. Rename CONFIG_VMLINUX_VALIDATION to CONFIG_NOINSTR_VALIDATION.

Josh Poimboeuf committed 4 years ago

Commit 0f620ce1 parent 22102f43 files · +5 −5Browse files

Unified · Split

3 files
  1. include/linux/instrumentation.h +3 −3
  2. lib/Kconfig.debug +1 −1
  3. scripts/link-vmlinux.sh +1 −1
include/linux/instrumentation.h+3−3
@@ -2,7 +2,7 @@ · 1 unmodified line
22 #ifndef __LINUX_INSTRUMENTATION_H
33 #define __LINUX_INSTRUMENTATION_H
44
5−#ifdef CONFIG_VMLINUX_VALIDATION
5+#ifdef CONFIG_NOINSTR_VALIDATION
66
77 #include <linux/stringify.h>
88
@@ -53,9 +53,9 @@ · 44 unmodified lines
5353 ".popsection\n\t" : : "i" (c)); \
5454 })
5555 #define instrumentation_end() __instrumentation_end(__COUNTER__)
56−#else /* !CONFIG_VMLINUX_VALIDATION */
56+#else /* !CONFIG_NOINSTR_VALIDATION */
5757 # define instrumentation_begin() do { } while(0)
5858 # define instrumentation_end() do { } while(0)
59−#endif /* CONFIG_VMLINUX_VALIDATION */
59+#endif /* CONFIG_NOINSTR_VALIDATION */
6060
6161 #endif /* __LINUX_INSTRUMENTATION_H */
lib/Kconfig.debug+1−1
@@ -500,7 +500,7 @@ config STACK_VALIDATION · 499 unmodified lines
500500 For more information, see
501501 tools/objtool/Documentation/stack-validation.txt.
502502
503−config VMLINUX_VALIDATION
503+config NOINSTR_VALIDATION
504504 bool
505505 depends on HAVE_OBJTOOL && DEBUG_ENTRY
506506 select OBJTOOL
scripts/link-vmlinux.sh+1−1
@@ -160,7 +160,7 @@ objtool_link() · 159 unmodified lines
160160 objtoolopt="${objtoolopt} --lto"
161161 fi
162162
163− if is_enabled CONFIG_VMLINUX_VALIDATION; then
163+ if is_enabled CONFIG_NOINSTR_VALIDATION; then
164164 objtoolopt="${objtoolopt} --noinstr"
165165 fi
166166