public inbox for linux-trace-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] ftrace/samples: Fix function size computation
@ 2025-08-26 16:16 Vladimir Riabchun
  2025-09-04 18:55 ` Vladimir Riabchun
  0 siblings, 1 reply; 2+ messages in thread
From: Vladimir Riabchun @ 2025-08-26 16:16 UTC (permalink / raw)
  To: rostedt; +Cc: mhiramat, mark.rutland, linux-kernel, linux-trace-kernel

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

Fixes: 9d907f1ae80b ("samples/ftrace: Fix asm function ELF annotations")
Signed-off-by: Vladimir Riabchun <ferr.lambarginio@gmail.com>
---
Changes since v1: https://lore.kernel.org/all/aK2I2IGKRwmkQuIR@vova-pc/
- Fix commit message

 samples/ftrace/ftrace-direct-modify.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/samples/ftrace/ftrace-direct-modify.c b/samples/ftrace/ftrace-direct-modify.c
index cfea7a38befb..da3a9f2091f5 100644
--- a/samples/ftrace/ftrace-direct-modify.c
+++ b/samples/ftrace/ftrace-direct-modify.c
@@ -75,8 +75,8 @@ asm (
 	CALL_DEPTH_ACCOUNT
 "	call my_direct_func1\n"
 "	leave\n"
-"	.size		my_tramp1, .-my_tramp1\n"
 	ASM_RET
+"	.size		my_tramp1, .-my_tramp1\n"
 
 "	.type		my_tramp2, @function\n"
 "	.globl		my_tramp2\n"
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] ftrace/samples: Fix function size computation
  2025-08-26 16:16 [PATCH v2] ftrace/samples: Fix function size computation Vladimir Riabchun
@ 2025-09-04 18:55 ` Vladimir Riabchun
  0 siblings, 0 replies; 2+ messages in thread
From: Vladimir Riabchun @ 2025-09-04 18:55 UTC (permalink / raw)
  To: ferr.lambarginio
  Cc: linux-kernel, linux-trace-kernel, mark.rutland, mhiramat, rostedt

Friendly ping.

Best regards,
Riabchun Vladimir

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-09-04 18:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-26 16:16 [PATCH v2] ftrace/samples: Fix function size computation Vladimir Riabchun
2025-09-04 18:55 ` Vladimir Riabchun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox