Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Link: https://lkml.kernel.org/r/173f07e2d6d1afc0874aed975a61783207c6a531.1650300597.git.jpoimboe@redhat.com

authored by

Josh Poimboeuf and committed by
Peter Zijlstra
0f620cef 22102f45

+5 -5
+3 -3
include/linux/instrumentation.h
··· 2 2 #ifndef __LINUX_INSTRUMENTATION_H 3 3 #define __LINUX_INSTRUMENTATION_H 4 4 5 - #ifdef CONFIG_VMLINUX_VALIDATION 5 + #ifdef CONFIG_NOINSTR_VALIDATION 6 6 7 7 #include <linux/stringify.h> 8 8 ··· 53 53 ".popsection\n\t" : : "i" (c)); \ 54 54 }) 55 55 #define instrumentation_end() __instrumentation_end(__COUNTER__) 56 - #else /* !CONFIG_VMLINUX_VALIDATION */ 56 + #else /* !CONFIG_NOINSTR_VALIDATION */ 57 57 # define instrumentation_begin() do { } while(0) 58 58 # define instrumentation_end() do { } while(0) 59 - #endif /* CONFIG_VMLINUX_VALIDATION */ 59 + #endif /* CONFIG_NOINSTR_VALIDATION */ 60 60 61 61 #endif /* __LINUX_INSTRUMENTATION_H */
+1 -1
lib/Kconfig.debug
··· 500 500 For more information, see 501 501 tools/objtool/Documentation/stack-validation.txt. 502 502 503 - config VMLINUX_VALIDATION 503 + config NOINSTR_VALIDATION 504 504 bool 505 505 depends on HAVE_OBJTOOL && DEBUG_ENTRY 506 506 select OBJTOOL