diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h index b94d08d05..b2e50f7a1 100644 --- a/include/linux/compiler_types.h +++ b/include/linux/compiler_types.h @@ -180,6 +180,10 @@ struct ftrace_likely_data { */ #define noinline_for_stack noinline +/* Section for code which can't be instrumented at all */ +#define noinstr \ + noinline notrace __attribute((__section__(".noinstr.text"))) + #endif /* __KERNEL__ */ #endif /* __ASSEMBLY__ */