From patchwork Tue Sep 24 09:20:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mao Jinlong X-Patchwork-Id: 13810573 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CD9E3CF9C6B for ; Tue, 24 Sep 2024 09:24:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=0KM+FJAr/cYes3wxTLSxONy/JO5Uoi2TW3jKtZroXq0=; b=4OXw51ObRlFRZhRMk+Vac39Y11 Oy9NShUFw0MrNTT/qPG3qOSGmo4NjUjgCfKwvyc9NLl2ToqH957OnqtKm4Bo5ddFP+G+gkYEcxxeP 7NSU0RxbWcIUBsTze5BH4X+jNaW16Lk2csB56qT1Y3Fdg7ZFoGP1lF8sd3fQKsiEa+60pgII3diUT HV4+nkZufZJxdTtmP5aUmHS+bFXalEAWJ/uuNg/n7wwyWhKlSPWsrF7r+4GmY1iejr5wtlgs35PIt QOL8egUq9wLYnqnqhSPJTidUiCc5XNoDdRKyLO4PgrDzTqD9+VVU8iEm5fY8N9bOK//qrUV277iXO Qn0gXQSw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1st1mM-00000001ml3-2M8H; Tue, 24 Sep 2024 09:24:18 +0000 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1st1jR-00000001mBQ-1A81 for linux-arm-kernel@lists.infradead.org; Tue, 24 Sep 2024 09:21:18 +0000 Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 48NMuNJi027530; Tue, 24 Sep 2024 09:20:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=0KM+FJAr/cYes3wxTLSxON y/JO5Uoi2TW3jKtZroXq0=; b=Ifw2AwLt5qvlqiyCPNrzhzZLRWtqjjCup0P0FU 07ovUtcHZHsYXrlGfIbkk8Z9EZMtcCr7PTQtxUGSMNv1ZwOsTHK7d4hdOSNp4EGJ cSLDRGmfzfj/w6saQN+tNw/lyXPVk9jFAxG24CTaFka51OE0j/l+ZctK18Woj7z9 BbaHqrk2faDoAsXrt9QtzWQY6UT4A7nriVmPKgJUgDkCIJByOBCP/lr7SpRkQBvQ yYpXk9Ih/wTHBhEsdm7zsOIWFx0sFjomhH1vD1IJtf3HhYlnvcuf1U7lY73DfQ28 9yFar5rXwmxePRK7znIUGtwAsRpzCUF2fGybSlJaBc/mxOGQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 41snfh032u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 24 Sep 2024 09:20:45 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 48O9Kigg025681 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 24 Sep 2024 09:20:44 GMT Received: from hu-jinlmao-lv.qualcomm.com (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 24 Sep 2024 02:20:43 -0700 From: Mao Jinlong To: Catalin Marinas , Will Deacon , Bjorn Andersson , Geert Uytterhoeven , Dmitry Baryshkov , Krzysztof Kozlowski , Neil Armstrong , Arnd Bergmann , =?utf-8?b?J07DrWNvbGFzIEYgLiBSIC4gQSAuIFByYWRvJw==?= CC: Mao Jinlong , , Subject: [PATCH v3] arm64: defconfig: Enable Ftrace and STM configs Date: Tue, 24 Sep 2024 02:20:31 -0700 Message-ID: <20240924092033.2626-1-quic_jinlmao@quicinc.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: AnoOUsiCCTJ8lhUmQc56pMXZ7ScXK6zD X-Proofpoint-GUID: AnoOUsiCCTJ8lhUmQc56pMXZ7ScXK6zD X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 adultscore=0 lowpriorityscore=0 priorityscore=1501 malwarescore=0 mlxscore=0 suspectscore=0 impostorscore=0 spamscore=0 phishscore=0 mlxlogscore=676 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2408220000 definitions=main-2409240065 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240924_022117_466952_4452D919 X-CRM114-Status: GOOD ( 13.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org To make software trace sources go through STM(System Trace Module), need to enable STP (System Trace Protocol) protocols and stm sources. Refer to Documentation/trace/stm.rst. Then software trace logs can be captured by STM over TMC sink path. We can enable software trace(Ftrace, console) logs along with HW trace of coresight component. The timestamp of software trace logs and hw traces will be in sync which helps to debug. Changes in v3: - update commit message. Changes in v2: - select ftrace config explicitly. Signed-off-by: Mao Jinlong --- arch/arm64/configs/defconfig | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 4a3999eefa67..c0a56e58e554 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -1554,6 +1554,12 @@ CONFIG_NVMEM_SNVS_LPGPR=y CONFIG_NVMEM_SPMI_SDAM=m CONFIG_NVMEM_SUNXI_SID=y CONFIG_NVMEM_UNIPHIER_EFUSE=y +CONFIG_STM_PROTO_BASIC=m +CONFIG_STM_PROTO_SYS_T=m +CONFIG_STM_DUMMY=m +CONFIG_STM_SOURCE_CONSOLE=m +CONFIG_STM_SOURCE_HEARTBEAT=m +CONFIG_STM_SOURCE_FTRACE=m CONFIG_FPGA=y CONFIG_FPGA_MGR_ALTERA_CVP=m CONFIG_FPGA_MGR_STRATIX10_SOC=m @@ -1663,7 +1669,7 @@ CONFIG_DEBUG_INFO_REDUCED=y CONFIG_MAGIC_SYSRQ=y CONFIG_DEBUG_FS=y # CONFIG_SCHED_DEBUG is not set -# CONFIG_FTRACE is not set +CONFIG_FTRACE=y CONFIG_CORESIGHT=m CONFIG_CORESIGHT_LINK_AND_SINK_TMC=m CONFIG_CORESIGHT_CATU=m