Message ID | 20250114-kcov-v1-7-004294b931a2@quicinc.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E790C02184 for <linux-mm@archiver.kernel.org>; Tue, 14 Jan 2025 05:36:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DB5A6280005; Tue, 14 Jan 2025 00:36:24 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D3A59280001; Tue, 14 Jan 2025 00:36:24 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B170F280005; Tue, 14 Jan 2025 00:36:24 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 8EE5B280001 for <linux-mm@kvack.org>; Tue, 14 Jan 2025 00:36:24 -0500 (EST) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 2ED7D806A2 for <linux-mm@kvack.org>; Tue, 14 Jan 2025 05:36:24 +0000 (UTC) X-FDA: 83004947088.10.6690516 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by imf21.hostedemail.com (Postfix) with ESMTP id B62BC1C0008 for <linux-mm@kvack.org>; Tue, 14 Jan 2025 05:36:21 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b=HikSzvI7; dmarc=pass (policy=none) header.from=quicinc.com; spf=pass (imf21.hostedemail.com: domain of quic_jiangenj@quicinc.com designates 205.220.168.131 as permitted sender) smtp.mailfrom=quic_jiangenj@quicinc.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1736832981; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=/Ra3dSoqbIv2eF9zoZUbyQQPjXpOzfwJvCpeTMxHEKs=; b=xULz7hKbfi0ySdI30kNeSGHHH7/ApBugG2sqIEcMkfhojQejwcPgpyQuHy/iPnWpI7vCQN j1+fs90SCz4R1bQdIQJ7WLSS0lMPhOVKHcuFl9XaUHp4FnwvoHvNMXiB7fSZe9KeTqrZ5H 6d3Ep0dQI6wXV9WpKUpMY/3gR95Q4IE= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1736832981; a=rsa-sha256; cv=none; b=AYRvt1tyb+tQITv77GllPRol6vTndCsVLaRMCBNBhJNdNYC1G9F1DtgFD6sng5xiAGBHlG vhkt+Ewb3Lwhb1OVd4YexxxXDgufIcV1MJqsTukdLTkvZzuJU/GaBkqfrvKvS9bgi00ucU RN/ykS9p3Q3u2bxKWmjiOOSpknsdfJ4= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b=HikSzvI7; dmarc=pass (policy=none) header.from=quicinc.com; spf=pass (imf21.hostedemail.com: domain of quic_jiangenj@quicinc.com designates 205.220.168.131 as permitted sender) smtp.mailfrom=quic_jiangenj@quicinc.com Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50E40bZB020725; Tue, 14 Jan 2025 05:36:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= /Ra3dSoqbIv2eF9zoZUbyQQPjXpOzfwJvCpeTMxHEKs=; b=HikSzvI7KYxlMco7 RYWzAkybYaofzND7NE4hK4kh74cceDeIxcHy4IlcELeV+V1szgEwQftpeoMU4ZxX I5vZm1eC4knIGqbT81HKE+xnKB7NP/T/S7DL4FTYVVSQLQp6k8hlGJ0JB6OvTIIV ogtxPXvzkGPqKoc7DrYPk8ot36bUWdSE1GZRtMUo5ZGxUkfriEokjDsR+THoxPFo 3etaL6pf3ZUxjT2Pq4NLi9xe0h3p0Klve1MwE/m7AFjjw78z1UPxTkdW6KVSr6YB EkcMcoBwvtfq0HISfK3vjQQEjxjnepwx64iXQBs1PRNTtxowDx9vO1yyLUvkocWX qu4VSA== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 445gh60526-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Jan 2025 05:36:13 +0000 (GMT) Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA05.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 50E5aCok016202 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Jan 2025 05:36:12 GMT Received: from la-sh002-lnx.ap.qualcomm.com (10.80.80.8) by nasanex01c.na.qualcomm.com (10.45.79.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Mon, 13 Jan 2025 21:36:06 -0800 From: "Jiao, Joey" <quic_jiangenj@quicinc.com> Date: Tue, 14 Jan 2025 13:34:37 +0800 Subject: [PATCH 7/7] arm64: disable kcov instrument in header files MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20250114-kcov-v1-7-004294b931a2@quicinc.com> References: <20250114-kcov-v1-0-004294b931a2@quicinc.com> In-Reply-To: <20250114-kcov-v1-0-004294b931a2@quicinc.com> To: Dmitry Vyukov <dvyukov@google.com>, Andrey Konovalov <andreyknvl@gmail.com>, Jonathan Corbet <corbet@lwn.net>, Andrew Morton <akpm@linux-foundation.org>, Dennis Zhou <dennis@kernel.org>, Tejun Heo <tj@kernel.org>, Christoph Lameter <cl@linux.com>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org> CC: <kasan-dev@googlegroups.com>, <linux-kernel@vger.kernel.org>, <workflows@vger.kernel.org>, <linux-doc@vger.kernel.org>, <linux-mm@kvack.org>, <linux-arm-kernel@lists.infradead.org>, <kernel@quicinc.com> X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1736832942; l=1362; i=quic_jiangenj@quicinc.com; s=20250114; h=from:subject:message-id; bh=1kWeMy8H18bHx7q6bxqI4S7xMp8TmEXRvurq+o8jSTk=; b=zPdx/wsH9uf3YlAIvy013JGGUIrnRUGzN+n5UmShLK05sjrO5Bv+UKhmFiYiSigdphGdNZ4mt wlcCgEsIO2HASI15aSluF7QMoXny39DoX3F20cozNtGxwEHgHdqrSVX X-Developer-Key: i=quic_jiangenj@quicinc.com; a=ed25519; pk=JPzmfEvx11SW1Q1qtMhFcAx46KP1Ui36jcetDgbev28= X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: SJSYjyfLnYMRCxOaFXFtA289YzGmtz-L X-Proofpoint-GUID: SJSYjyfLnYMRCxOaFXFtA289YzGmtz-L 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 impostorscore=0 mlxscore=0 suspectscore=0 malwarescore=0 mlxlogscore=761 phishscore=0 clxscore=1015 spamscore=0 lowpriorityscore=0 priorityscore=1501 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2501140044 X-Stat-Signature: tirdasegtyfb9ikfeune7zwy8tb1ntqp X-Rspamd-Queue-Id: B62BC1C0008 X-Rspam-User: X-Rspamd-Server: rspam01 X-HE-Tag: 1736832981-359932 X-HE-Meta: U2FsdGVkX1/r60uQY8C7XCihZrddj7dqPvVP3rpY3P0DBPh8ztWfVRWH6BjBJi3BAVIwc2JLp5PRwE0xXXgBuKMbeLkGfG7pwU1Pf7Vri3/q1C4P7KfAvthc4ftz7Bny5sqptmFdDikzCmFtAPYwUzBulXZI0ZaEj3AXUdEKkXQq+87srThELK+yNMb3HZTIGd/BPhbRgCaJfJT73S6osUn/aNoxi7ffpG4yUlf5iUcNtUyhKFVH/r0i5TvwB45B0Uj+QkqdU/+uJgcJwaWO3a3lvyyXlG3AFsdNXNnL5s3Y7bBKES/DCLCPAf+1YmJvxouu0EJYPlYMoLmIWzLtjtwlV6ySJ1H9hgvys4O5R2QQ44TlfW+UyevRgrj5oeExcNOu9TkwzSbYpjYQdq57Wt4sdZsbnf+I8oZoiMhdQybjOAueSueEiHCHRCdS+G06m+X7VjQj4uwy8sMPCSgD5ia/Ca3OoTlDu7jnmFcyM0Pu1NRlaDmlg1WCK93amqBG2LFCi3lO1fhiPTFVSpdZBDCb3kD1FAL+3R/rsxAITr0UKYWgiAYy5d0WrFWw6G7JuOdVaHRf6azVHuqRkqS4uTzZfJkerJlfxa5Dw53JmQ+LfKsiExGDwZG2jGdTGSTC6cklQ6ToKmE0P0YGVlsnr0nr7XIrKJnkBRx2DUu+HahsiFg02Vm8vOi41g5PeghSftwdccfX5WPwMOZT4yPd1QGAt4DhnlojL2uMl8iIXRNNQ8YtffCLLVZbBcZIyr1AOBUC1+Qvb/aHtAAaHTKHF8xt6qNLGIZs4DnjjqTkPHTCeBlYvvsbT4i9uv2X1Z9WTJagTAP8pDPz75IUA0T/FCozwGX6njl6UkfuBsAzXuN0mOgrmf1yIk0UnPizvDZEkRgvjLStFnP+YIbwjmx0K4wtwOPBp2i0NkWNwVYEADaR5VWdhpYas3BuoXb1pUyZKbMfU1X2V60xHAssDr+ Cgy27FRM w2b6TluC/x1VMhgyEmrdt+nMsmHJakR+CDEF2EU/u66o1avXFHiDhDI953MN0p6zA+wkdp/uEZPlZ7bhEwC2NkHHyCQuE7Pa2FFVzUjJRONjDeVGKSZ24ZCYrTh220HAXJrE90SqnEzFZKyUBhmS1mHWNkwo04lUFBx1bLM3NOUEIzadMHT1I9lFpgOGyu9Z5/aWmt7P9cojHak1YN2NtD0etEUUtztL46GsVV5tw61Gsr50Ixa5Harlxg71jGXVsxRyjYxU9mR7Yr+kafNKeWC28H1rHRoE2Eo4uaMqcRrsDA+zlNtACl0P1v92q3ucCF8XmG/LvaP2LmV0= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
kcov: Introduce New Unique PC|EDGE|CMP Modes
|
expand
|
diff --git a/arch/arm64/include/asm/percpu.h b/arch/arm64/include/asm/percpu.h index 9abcc8ef3087b7066c82db983ae2753f30607f7f..a40ff8168151bb481756d0f6cb341aa8dc52a121 100644 --- a/arch/arm64/include/asm/percpu.h +++ b/arch/arm64/include/asm/percpu.h @@ -29,7 +29,7 @@ static inline unsigned long __hyp_my_cpu_offset(void) return read_sysreg(tpidr_el2); } -static inline unsigned long __kern_my_cpu_offset(void) +static __no_sanitize_coverage inline unsigned long __kern_my_cpu_offset(void) { unsigned long off; diff --git a/arch/arm64/include/asm/preempt.h b/arch/arm64/include/asm/preempt.h index 0159b625cc7f0e7d6996b34b4de8e71b04ca32e5..a8742a57481a8bf7f1e35b9cd8b0fd9a37f0ba78 100644 --- a/arch/arm64/include/asm/preempt.h +++ b/arch/arm64/include/asm/preempt.h @@ -8,7 +8,7 @@ #define PREEMPT_NEED_RESCHED BIT(32) #define PREEMPT_ENABLED (PREEMPT_NEED_RESCHED) -static inline int preempt_count(void) +static __no_sanitize_coverage inline int preempt_count(void) { return READ_ONCE(current_thread_info()->preempt.count); }
Disable instrument which causes recursive call to __sanitizer_cov_trace_pc Signed-off-by: Jiao, Joey <quic_jiangenj@quicinc.com> --- arch/arm64/include/asm/percpu.h | 2 +- arch/arm64/include/asm/preempt.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)