Message ID | 20231220073629.2658-1-Kuan-Ying.Lee@mediatek.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 952FFC46CD3 for <linux-mm@archiver.kernel.org>; Wed, 20 Dec 2023 07:37:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1A4128D0002; Wed, 20 Dec 2023 02:37:27 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 155A38D0001; Wed, 20 Dec 2023 02:37:27 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 01BEB8D0002; Wed, 20 Dec 2023 02:37:26 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id E1CD58D0001 for <linux-mm@kvack.org>; Wed, 20 Dec 2023 02:37:26 -0500 (EST) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id ACC82A04C9 for <linux-mm@kvack.org>; Wed, 20 Dec 2023 07:37:26 +0000 (UTC) X-FDA: 81586391292.24.E78090C Received: from mailgw02.mediatek.com (mailgw02.mediatek.com [216.200.240.185]) by imf04.hostedemail.com (Postfix) with ESMTP id ACA6940013 for <linux-mm@kvack.org>; Wed, 20 Dec 2023 07:37:23 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=mediatek.com header.s=dk header.b=bQpsF4Vf; spf=pass (imf04.hostedemail.com: domain of kuan-ying.lee@mediatek.com designates 216.200.240.185 as permitted sender) smtp.mailfrom=kuan-ying.lee@mediatek.com; dmarc=pass (policy=quarantine) header.from=mediatek.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1703057844; 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: references:dkim-signature; bh=56MmzR0c9zXysLe67Ot4Yef+jNl96T4Rvs/yNt96T7M=; b=r4nHWImOT9/2mFJR0y6CjQ6hgW/jmAvSIptx56fJVdI8VY4Aq5mDCj+yt4r7v+XCaMae6o A3xwHtOyhQ3azrVmBHAI0YriM2Ql80a2wOZslH3G+o9sa2LTL9o4OvFJHTkIQ4T1+8NgVf N3pP9yynYHNR6PyVj4dS/mF5nK+6Gs0= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1703057844; a=rsa-sha256; cv=none; b=KjbMc2LKFjpZzlsebPjhFh+zbvS+XOuaGkook1e9JR/hEpauZr+IVh4NgaXrXT3t1iNn9A CjgwvR7FNqRyGOUTyUsdHLXed/KbKBgazd2kIx3/X0caNxBtt+Mf07iKdeJP34wKLfeDvO xS4fivaGEV5RUDQ5aTzeNL3Ex4yjNlQ= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=mediatek.com header.s=dk header.b=bQpsF4Vf; spf=pass (imf04.hostedemail.com: domain of kuan-ying.lee@mediatek.com designates 216.200.240.185 as permitted sender) smtp.mailfrom=kuan-ying.lee@mediatek.com; dmarc=pass (policy=quarantine) header.from=mediatek.com X-UUID: 9a60ad369f0a11ee958cff29c719f35b-20231220 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=56MmzR0c9zXysLe67Ot4Yef+jNl96T4Rvs/yNt96T7M=; b=bQpsF4Vf/Yvoc/vzSLb9vvfctXnYxPQbZ3SgwP/Zac38VXpgaBNM7FwjtBsGgPgNXcG1CeBiNX8Mmw0IJJ9b/UKR0Cy7g2vSfyYNKRvcIu9s8CAq6tTNxnBaLM0NetmrSH8VpHglm7kdb6afgrt/IfmUDDDuiGWM29w1EvL8QVE=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.35,REQID:6328c251-622c-44a2-939e-e4781a49ace4,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:5d391d7,CLOUDID:e3a5787e-4f93-4875-95e7-8c66ea833d57,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:11|1,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR: NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_ULN X-UUID: 9a60ad369f0a11ee958cff29c719f35b-20231220 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw02.mediatek.com (envelope-from <kuan-ying.lee@mediatek.com>) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1447712857; Wed, 20 Dec 2023 00:37:18 -0700 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Wed, 20 Dec 2023 15:36:39 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Wed, 20 Dec 2023 15:36:39 +0800 From: Kuan-Ying Lee <Kuan-Ying.Lee@mediatek.com> To: Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> CC: <casper.li@mediatek.com>, <chinwen.chang@mediatek.com>, <qun-wei.lin@mediatek.com>, <linux-mm@kvack.org>, <akpm@linux-foundation.org>, Kuan-Ying Lee <Kuan-Ying.Lee@mediatek.com>, <linux-kernel@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-mediatek@lists.infradead.org> Subject: [PATCH] scripts: Fix no space expression between sp and offset Date: Wed, 20 Dec 2023 15:36:28 +0800 Message-ID: <20231220073629.2658-1-Kuan-Ying.Lee@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-Product-Ver: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-AS-Result: No-10--1.838400-8.000000 X-TMASE-MatchedRID: +ngMWxkROpCWHmpvkeKJB7MjW/sniEQKQKuv8uQBDjq95d3486lhDSdV PZLj058XKso8TQS0K69nHbrFgUuD0ug9HcxTn+DoKaMQ6tw7oDJMkOX0Uoduubra7c58qofOo8W MkQWv6iXBcIE78YqRWo6HM5rqDwqtbSlBMyqqDUULV7pRjhdwXMMzFZKbl0jgifiQwpPzKTMSI/ jO40Gt+CQqeQ5Qn5jx7ltWiLNaZPyWqC20cd7+1qT7trat8oNiwZBgUyJVEbl6Fw8/PpTMRaVvm iAyeA2kc5MSfkiJFI5QBJtcKcOYfpRMZUCEHkRt X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--1.838400-8.000000 X-TMASE-Version: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-SNTS-SMTP: 429CEE084C7287DB87733FD72DAC4F7D8977E3FCA84B8E1BD170B1C2EBFD7C472000:8 X-MTK: N X-Stat-Signature: z3jgbwajmk3qn5bcof4kqinj6zpps9y3 X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: ACA6940013 X-Rspam-User: X-HE-Tag: 1703057843-380724 X-HE-Meta: U2FsdGVkX19kouQAuukeh2M7LCa3rHvjnMoKC0ohJ+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LHn7PEgoGv6MajbbftN9nBFFzbf+tsOIWi2YeogoHKZ4iDrEr14wFrfYeAfrStBi8W7rABgDpfdCXwlAIvEKhcYRFPk9CzobZfMzwyrPZ5frnbRE7JzwzSq/lip7fMc9+cLSwQ== 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 |
scripts: Fix no space expression between sp and offset
|
expand
|
diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl index b70482a95088..a0e25a8830b4 100755 --- a/scripts/checkstack.pl +++ b/scripts/checkstack.pl @@ -56,7 +56,7 @@ my (@stack, $re, $dre, $sub, $x, $xs, $funcre, $min_stack); if ($arch =~ '^(aarch|arm)64$') { #ffffffc0006325cc: a9bb7bfd stp x29, x30, [sp, #-80]! #a110: d11643ff sub sp, sp, #0x590 - $re = qr/^.*stp.*sp, \#-([0-9]{1,8})\]\!/o; + $re = qr/^.*stp.*sp, ?\#-([0-9]{1,8})\]\!/o; $dre = qr/^.*sub.*sp, sp, #(0x$x{1,8})/o; } elsif ($arch eq 'arm') { #c0008ffc: e24dd064 sub sp, sp, #100 ; 0x64
When I use older version aarch64 objdump (2.24) to disassemble aarch64 vmlinux, I get the result like below. There is no space between sp and offset. ffff800008010000 <dw_apb_ictl_handle_irq>: ffff800008010000: d503233f hint #0x19 ffff800008010004: a9bc7bfd stp x29, x30, [sp,#-64]! ffff800008010008: 90011e60 adrp x0, ffff80000a3dc000 <num_ictlrs> ffff80000801000c: 910003fd mov x29, sp ffff800008010010: a9025bf5 stp x21, x22, [sp,#32] When I use newer version aarch64 objdump (2.35), I get the result like below. There is a space between sp and offset. ffff800008010000 <dw_apb_ictl_handle_irq>: ffff800008010000: d503233f paciasp ffff800008010004: a9bc7bfd stp x29, x30, [sp, #-64]! ffff800008010008: 90011e60 adrp x0, ffff80000a3dc000 <num_ictlrs> ffff80000801000c: 910003fd mov x29, sp ffff800008010010: a9025bf5 stp x21, x22, [sp, #32] Add no space support of regular expression for old version objdump. Cc: Casper Li <casper.li@mediatek.com> Signed-off-by: Kuan-Ying Lee <Kuan-Ying.Lee@mediatek.com> --- scripts/checkstack.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)