Message ID | hb7v5p6y4aqydsecsnla2ystu3kocevngekyhdbn4kuwboetjq@s3uaiuwd73wl (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 67129C2BA18 for <linux-mm@archiver.kernel.org>; Tue, 18 Jun 2024 15:07:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B18078D002D; Tue, 18 Jun 2024 11:07:47 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AC8888D002C; Tue, 18 Jun 2024 11:07:47 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9421B8D002D; Tue, 18 Jun 2024 11:07:47 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 75F9E8D002C for <linux-mm@kvack.org>; Tue, 18 Jun 2024 11:07:47 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 86CC644F60 for <linux-mm@kvack.org>; Tue, 18 Jun 2024 14:43:09 +0000 (UTC) X-FDA: 82244276940.04.9116D6B Received: from mx0a-00823401.pphosted.com (mx0a-00823401.pphosted.com [148.163.148.104]) by imf12.hostedemail.com (Postfix) with ESMTP id 6374C40010 for <linux-mm@kvack.org>; Tue, 18 Jun 2024 14:43:07 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=motorola.com header.s=DKIM202306 header.b="wvP/R0rX"; spf=pass (imf12.hostedemail.com: domain of mbland@motorola.com designates 148.163.148.104 as permitted sender) smtp.mailfrom=mbland@motorola.com; dmarc=pass (policy=none) header.from=motorola.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1718721778; 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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=k7mR/1SYybA1E3VAkvQonOeZDJRDOYjJN4T4w1geSnY=; b=ozgkJRDGoN54sL/qoWm5YLikohLMqEJi6IlTFtkgGLLFO95Si+6b0t1LsfjuAcDryUgqjQ mLuAW0CPNSJmK4PecfDlWtUQPHGqafNU+aGwOBIP38AYBbKz1BaHxxnjVLQmV2gBTY3smN yvTEi1m3or6tcmdCqLiEzKysCaQQwS8= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=motorola.com header.s=DKIM202306 header.b="wvP/R0rX"; spf=pass (imf12.hostedemail.com: domain of mbland@motorola.com designates 148.163.148.104 as permitted sender) smtp.mailfrom=mbland@motorola.com; dmarc=pass (policy=none) header.from=motorola.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1718721778; a=rsa-sha256; cv=none; b=VCJQ8oWQOKh8zL1Dk3HWgW4H9R17Ui+TDeuKTRHukC7dsww7rLrufBONztwTvh+b8faiLT 0qdGIiFdswNjzlDLNdNaqcBgoOetUBi2E1UJd8YJGbp2+7UtrztO/r7wcfd0xyog176+8N 4JqLyb8u9GqZxd/vPB37IWm43wRVinY= Received: from pps.filterd (m0355086.ppops.net [127.0.0.1]) by mx0a-00823401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45IDF1Ec018084; Tue, 18 Jun 2024 14:42:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=motorola.com; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to; s=DKIM202306; bh=k7mR/1SYybA1E3VAkvQonOe ZDJRDOYjJN4T4w1geSnY=; b=wvP/R0rX9a8dgx5FDpQnFK1jCQK+H4ZG2fYy7Cd Mykjl4BJafMvBub/tcH9tDgOBl3/wwmJ49aWM69M0GBjRl/jOoH/GUGHfugjUTHa sAUDYiIWPEO7CSJLTwCa1Bk2G4j/u+Kaq6kXToN4Z7esMnB31aUD/TPxXS0FQTqS kYQ6YmvXIqXXhA1ae7MxS837nWBAT5/wWkRwt01qulCHG++C5uXn7rsgsxOByr1N tik4nW1LhEuKFDr6/VmUaMrjQDRbyLPWLSvMrN05ncPDMwVS1aqV/OwW0NpjUICa KQPuBItc6I8fBgAodSNFwdM/L+7iuLA4CKC1gbotYVSxO1w== Received: from va32lpfpp01.lenovo.com ([104.232.228.21]) by mx0a-00823401.pphosted.com (PPS) with ESMTPS id 3ysrqk6n1s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 18 Jun 2024 14:42:58 +0000 (GMT) Received: from ilclmmrp02.lenovo.com (ilclmmrp02.mot.com [100.65.83.26]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by va32lpfpp01.lenovo.com (Postfix) with ESMTPS id 4W3Txr6TbMzfBb1; Tue, 18 Jun 2024 14:42:56 +0000 (UTC) Received: from ilclasset02 (ilclasset02.mot.com [100.64.49.13]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: mbland) by ilclmmrp02.lenovo.com (Postfix) with ESMTPSA id 4W3Txr5H2Bz3p6jp; Tue, 18 Jun 2024 14:42:56 +0000 (UTC) Date: Tue, 18 Jun 2024 09:42:55 -0500 From: Maxwell Bland <mbland@motorola.com> To: linux-mm@kvack.org Cc: Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Jonathan Corbet <corbet@lwn.net>, Andrew Morton <akpm@linux-foundation.org>, Ard Biesheuvel <ardb@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Christophe Leroy <christophe.leroy@csgroup.eu>, Maxwell Bland <mbland@motorola.com>, Alexandre Ghiti <alexghiti@rivosinc.com>, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 4/5] arm64: exclusive upper bound for ptdump entries Message-ID: <hb7v5p6y4aqydsecsnla2ystu3kocevngekyhdbn4kuwboetjq@s3uaiuwd73wl> References: <aw675dhrbplkitj3szjut2vyidsxokogkjj3vi76wl2x4wybtg@5rhk5ca5zpmv> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <aw675dhrbplkitj3szjut2vyidsxokogkjj3vi76wl2x4wybtg@5rhk5ca5zpmv> X-Proofpoint-ORIG-GUID: lUW5eH0wfVUKzgqnNwLox3eS303p6jMG X-Proofpoint-GUID: lUW5eH0wfVUKzgqnNwLox3eS303p6jMG X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-18_02,2024-06-17_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 lowpriorityscore=0 clxscore=1015 mlxscore=0 malwarescore=0 spamscore=0 mlxlogscore=941 bulkscore=0 adultscore=0 phishscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406180110 X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 6374C40010 X-Stat-Signature: td77xycxaq7mkm8a1nj4uptoej4ar4b3 X-Rspam-User: X-HE-Tag: 1718721787-879891 X-HE-Meta: U2FsdGVkX18dGCbrWv4Empsh0RGidLQDjuKsFtOTJ8khfzniYLDXMS0vFVg2unN/ivEShRGlp4c020iJByMsMZeJGvks20Hz3eEsln+Ic51ki9ctJmJh/83wCGS3zVv5evwvqGzCf9aYtpNdJskV9Hj8H7jxdNSccZFGGBl/qXM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JxJj/x+JoFnfl791yayIHcinM28v9L0BOyp+Y6e2TFcJszFIgMxjZRZ/a765so/G6RKgGCUN7RdteU= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000225, 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 |
ptdump: add intermediate directory support
|
expand
|
diff --git a/arch/arm64/mm/ptdump.c b/arch/arm64/mm/ptdump.c index 2ec16b523043..63f17c08c406 100644 --- a/arch/arm64/mm/ptdump.c +++ b/arch/arm64/mm/ptdump.c @@ -359,11 +359,11 @@ static void note_page(struct ptdump_state *pt_st, unsigned long addr, int level, else delta = pg_level[st->level].size; pt_dump_seq_printf(st->seq, "0x%016lx-0x%016lx ", - addr, addr + delta); + addr, addr + delta - 1); } else { delta = (addr - st->start_address); pt_dump_seq_printf(st->seq, "0x%016lx-0x%016lx ", - st->start_address, addr); + st->start_address, addr - 1); } /* Align region information regardlesss of level */
Update the upper bound of all ptdump entries to not include the byte which is actually governed by the next entry. As the lowest byte is included and governed, this makes the size specifications exact. Signed-off-by: Maxwell Bland <mbland@motorola.com> --- arch/arm64/mm/ptdump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)