Skip to content

Commit df1bbf7

Browse files
Frankenweengregkh
authored andcommitted
ftrace/samples: Fix function size computation
[ Upstream commit 80d03a4 ] 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: 9d907f1 ("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 0a14bd6 commit df1bbf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/ftrace/ftrace-direct-modify.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ asm (
3636
" movq %rsp, %rbp\n"
3737
" call my_direct_func1\n"
3838
" leave\n"
39-
" .size my_tramp1, .-my_tramp1\n"
4039
ASM_RET
40+
" .size my_tramp1, .-my_tramp1\n"
4141

4242
" .type my_tramp2, @function\n"
4343
" .globl my_tramp2\n"

0 commit comments

Comments
 (0)