From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796387716; b=AZjHuG8CkfqTUBrqHdCu8reP1mNZAM1zoTCRV8xciBBawMVSoXoSe9iHKtxhAhTM0z9O jVikOhTGUZsq7pKUuEGmYNWhD55I2CCw7zojxvmESwmVlEjwKr6+zZsf0NpB93HddUNsS MZL/c2Z/Zc12oiSqh0h6lBvKA8ZeZaC1CbU9tPTs97uqiELSv/m7kTEToCuRZLqink0cx AB72KTy4P9tizunpqzoSKjF9teeKXGIKbAijq8/KMVwtSyJI0yL5F4Q/hDC3b6siJBMFj MmYHCm88gOUFgMcUJ8Flo02Vv2c1u1GdzFk1IGITcCL221A7WuoBM/xy9wi16q00I4A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796387716; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=OACVFHKiamAq0aonaUXKl6OglsutE1ytJ0RPFF7emnA=; b=3BxHNRn8Q8Lrz+N5oLu6a+QU+z4mLSKmpcFYrfR/fNp+m9BEpe8KSS/HhMNJYgl4Gdy6 E5B4j0EbFBnlHKrfLbCaAK4G5hWLQEaryEeaDzDEKO1vhl+05ArqqAnrHvvNDTC5BkqOO BUsIf0F4EE7qpBwVgum1syXlw0HFLULfoozB2wZLiOTWWvF3kHPeSVu3+LjAKiqACCYxo YGsOWzfUSOH16SbI1F/yITiprj4rdp7XxZ/dmRtH3kipOUSB0F1J5G05bnyhhrcbgsYlC fDg975TyUMlXI442HaVDUJ2mBfv2fh7JxcdGFOxTXsucpL9WdsexbURzqWr/HZF/OoQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=qaFcAoY+; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8FE88606A322; Fri, 4 Dec 2026 12:35:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=qaFcAoY+ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 080E51F000C2; Fri, 4 Dec 2026 12:35:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796387716; bh=OACVFHKiamAq0aonaUXKl6OglsutE1ytJ0RPFF7emnA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=qaFcAoY++q2AxKa9umtR7HifauQFOsQflQ6Oesi1gGQfLXs5aaCzSqayWi+VpRy+5 ra0o+yaUX8T12DQ2r26VizvbAqfqL4xU+uH6LQyS7lQBNDrN4haFLT8hY5UWmlV+nA Bac+3PeBp1kqjssXHqraasmOtSfNMUdz7wTl7vXU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Melissa Wen , Tvrtko Ursulin , Dan Wheeler , Roman Li , Alex Deucher , Sasha Levin Subject: [PATCH 6.1 0359/1059] drm/amd/display: copy function name into dcn_fpu trace event Date: Fri, 4 Dec 2026 18:58:10 +0900 Message-ID: <20261204100653.566710362@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Melissa Wen [ Upstream commit b4d41522012d91cd875cebdfd1a3bbb04eb863dd ] Userspace trace tools that use libtraceevent to read binary buffer only see a kernel address when printing const char *. Use string macros in dcn_fpu to copy the function name into the trace event. Fixes: 96ee63730fa3 ("drm/amd/display: Add control mechanism for FPU") Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Melissa Wen Reviewed-by: Tvrtko Ursulin Tested-by: Dan Wheeler Reviewed-by: Roman Li Signed-off-by: Alex Deucher [ sashal: Changed __assign_str(function) to the two-argument __assign_str(function, function), because this tree's trace macro takes both a destination and a source. ] Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h index 8d3c7e4d593cf..5f50861c0fb88 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h @@ -636,20 +636,20 @@ TRACE_EVENT(dcn_fpu, TP_STRUCT__entry( __field(bool, begin) - __field(const char *, function) + __string(function, function) __field(int, line) __field(int, recursion_depth) ), TP_fast_assign( __entry->begin = begin; - __entry->function = function; + __assign_str(function, function); __entry->line = line; __entry->recursion_depth = recursion_depth; ), TP_printk("%s: recursion_depth: %d: %s()+%d:", __entry->begin ? "begin" : "end", __entry->recursion_depth, - __entry->function, + __get_str(function), __entry->line ) ); -- 2.53.0