Skip to content

Commit 06c26a6

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 f7ec68c commit 06c26a6

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
@@ -40,8 +40,8 @@ asm (
4040
CALL_DEPTH_ACCOUNT
4141
" call my_direct_func1\n"
4242
" leave\n"
43-
" .size my_tramp1, .-my_tramp1\n"
4443
ASM_RET
44+
" .size my_tramp1, .-my_tramp1\n"
4545

4646
" .type my_tramp2, @function\n"
4747
" .globl my_tramp2\n"

0 commit comments

Comments
 (0)