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=1796385001; b=JqBfSgWvlEfBtgIUbkLPzn15e7LlJUCO/k2chGcxS4ku2YMByN09HSbhgIloWUIFQdnq /jrT0WJeTC0RKZXwK/rd0jSDLcypFBmJ66lKblUfgyO+gF93p9zxAibdZzRhtcwr/mTE/ u+J9JVAJtQ2cGtjEi/V6Nfv3MmhN5WujuOKysnyckyyHxbqmGk7ycemRxm9uHOuYMtwhi nMP5tFZwtJydB5IUc8SRVXfGz4FimKDL2A2OT4JDrIrKAjAfaVNdEFN6WbmkbfkqHhTcp OTUutVwBlX1bT7kN1EGTbG6kF/r0jqGpVjgPXCGVDOpBCu4kAcOG3kjXG4nE/0MjECQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796385001; 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=JF9/Hy3J+OHsHHSiQ2DPeyJrJy7d13On3O5HauVoiHc=; b=Zk5w+LzmqJwEp1grNauMlzT1oG0xRKZ8rA/h3MgxxrgOP3cfbg+xU5rnsIq0WeXQ2xkA hgxt4BzYEykJxdUn2h/gbcWDp9dGbUsY6+zU9wPwvH3flMNEZa6OR5cITdlidYz1IUrc+ sFy1PtPgc8E45xaH/ahEqwk6dtkohwVnR22e2QcDSW0Dy5FiQmlywUp5f4HSWPCP8Itdg CHF5RY8prfZoEu/VxuPfdPo4hO0RAU1x6fu9SOonjdOA9Px6y5OhooHtPsWY7fOqkYu3a STWu/uma95ey9YVTH94oqHNhUY1XQlgRlQfKkqihnxlNz9oF2mBaE64smLd4tzG2/Sw== 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=YkHaTdnd; 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 BDEE5606A322; Fri, 4 Dec 2026 11:50:01 +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=YkHaTdnd Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2EC661F000CE; Fri, 4 Dec 2026 11:50:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796385001; bh=JF9/Hy3J+OHsHHSiQ2DPeyJrJy7d13On3O5HauVoiHc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=YkHaTdndZ4/56andSitLt7dAVhmwkxo+mvkcz5ZJ8QxGg7zXNFiHixmcVeGTcHGqQ yicHOrt1jHFQ1Qq6hM3RqxHqSeoqswmAf7wPmiOAGA0KBrnm+61BqJzDjfR0SDQDgv 40gnwWQ7X+HWso53MWVRWo0uDNNcy2/r54+kvmDY= 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.6 0380/1167] drm/amd/display: copy function name into dcn_fpu trace event Date: Fri, 4 Dec 2026 18:56:47 +0900 Message-ID: <20261204100711.901703127@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@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.6-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 the one-argument __assign_str(function) to the two-argument __assign_str(function, function), since this tree's macro needs 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 6ed9f34a1d289..8b2f8c50eb934 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 @@ -637,20 +637,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