lkml.org 
[lkml]   [2022]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3] ftrace: Add FTRACE_MCOUNT_MAX_OFFSET to avoid adding weak functions
On Thu, 26 May 2022 10:38:10 -0400
Steven Rostedt <rostedt@goodmis.org> wrote:

> +++ b/arch/x86/include/asm/ftrace.h
> @@ -9,6 +9,11 @@
> # define MCOUNT_ADDR ((unsigned long)(__fentry__))
> #define MCOUNT_INSN_SIZE 5 /* sizeof mcount call */
>
> +/* Ignore unused weak functions which will have non zero offsets */
> +#ifdef CONFIG_HAVE_FENTRY
> +# define FTRACE_MCOUNT_MAX_OFFSET 0
> +#endif
> +

I screwed up this patch. Please ignore.

And Peter just informed me that IBT is in 5.18 already, and not 5.19. So,
I'll add his suggestion in v4.

-- Steve

\
 
 \ /
  Last update: 2022-05-26 16:45    [W:0.025 / U:0.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site