Skip to content

Commit 80d03a4

Browse files
Frankenweenrostedt
authored andcommitted
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: 9d907f1 ("samples/ftrace: Fix asm function ELF annotations") Signed-off-by: Vladimir Riabchun <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 3d62ab3 commit 80d03a4

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
@@ -75,8 +75,8 @@ asm (
7575
CALL_DEPTH_ACCOUNT
7676
" call my_direct_func1\n"
7777
" leave\n"
78-
" .size my_tramp1, .-my_tramp1\n"
7978
ASM_RET
79+
" .size my_tramp1, .-my_tramp1\n"
8080

8181
" .type my_tramp2, @function\n"
8282
" .globl my_tramp2\n"

0 commit comments

Comments
 (0)