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

Configure Feed

Select the types of activity you want to include in your feed.

ftrace/samples: Fix function size computation

In my_tramp1 function .size directive was placed above
ASM_RET instruction, leading to a wrong function size.

Link: https://lore.kernel.org/aK3d7vxNcO52kEmg@vova-pc
Fixes: 9d907f1ae80b ("samples/ftrace: Fix asm function ELF annotations")
Signed-off-by: Vladimir Riabchun <ferr.lambarginio@gmail.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>

authored by

Vladimir Riabchun and committed by
Steven Rostedt (Google)
80d03a40 3d62ab32

+1 -1
+1 -1
samples/ftrace/ftrace-direct-modify.c
··· 75 75 CALL_DEPTH_ACCOUNT 76 76 " call my_direct_func1\n" 77 77 " leave\n" 78 - " .size my_tramp1, .-my_tramp1\n" 79 78 ASM_RET 79 + " .size my_tramp1, .-my_tramp1\n" 80 80 81 81 " .type my_tramp2, @function\n" 82 82 " .globl my_tramp2\n"