From nobody Tue Sep 9 21:28:50 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 69E982C3278 for ; Sat, 6 Sep 2025 22:17:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757197051; cv=none; b=lasSZye2gm0dKb9z/8B5h7FlhWGl2uGjhDdYr7NHlccR3Wpg4kU73sxl3de4l3J9epzLEr7AhDe/fkkPoN3/UEoCly5wfvtmlq3W/ZGjhXJi8NEMn//halAU4fE6Cnq1QLfV1mpi4U3xLOY9Z/Mp5t91/YbWkvvxhhDAJNe8bMM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757197051; c=relaxed/simple; bh=uxyBJmKu5Z7jyOGwW7QMY4WrNpM+wcyW7pVuNd8Nsqo=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=Qdwpe0Drg3anTTGjXZQBoEFiwNChuTSQw18rjkJkk4fQiRA8GoZvPStuHKogSmVUr5bVqAKS+o9HkIflYPyCTGBowxFAvY1eqgvZSCQTDwBNonxX2QN0GIhdt0ti3YI15S2fBlRZBj4Y7ySx/SlNxXrRhky8v9SDsl6iM65CLjE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Frc1MNwO; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Frc1MNwO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F889C4CEFC; Sat, 6 Sep 2025 22:17:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1757197051; bh=uxyBJmKu5Z7jyOGwW7QMY4WrNpM+wcyW7pVuNd8Nsqo=; h=Date:From:To:Cc:Subject:References:From; b=Frc1MNwOJTl7CDjhisJjkK+FfC7FCc0rssYMgnZ2kgVZYST6dzqQqRQYyU7Otk3kv 31wUE7RkxMip1M6dzsc4dSxBDdDaNmyiOEcXXTkqD7hkKMDFFI0iZxjqhswBTKi9Vm HjpBRA/6/n5l7Y3lXc9/iJQkPkmXYrJRS++peTmz5swUNQrRDOG95uppfV+Mqnen1j Mk9QvA428O7PhWA06Akfao03Qt1pIhvRM1tInNf7fosdM0j4vRAY8Lr6T4H6YML9gz zBdT7BoVH0dE4tA+4V2m44X/aN7pG/whMekHvkfbn4Gtewa/utUEtxx93gwj90yyd3 57sYgKn94nUXw== Received: from rostedt by gandalf with local (Exim 4.98.2) (envelope-from ) id 1uv1Ea-00000006UiB-44IT; Sat, 06 Sep 2025 18:18:12 -0400 Message-ID: <20250906221812.826443565@kernel.org> User-Agent: quilt/0.68 Date: Sat, 06 Sep 2025 18:17:54 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton , Vladimir Riabchun Subject: [for-linus][PATCH 3/5] ftrace/samples: Fix function size computation References: <20250906221751.054623340@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Vladimir Riabchun 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 Signed-off-by: Steven Rostedt (Google) --- 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" =20 " .type my_tramp2, @function\n" " .globl my_tramp2\n" --=20 2.50.1