From patchwork Tue Apr 11 16:29:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Rutland X-Patchwork-Id: 13207862 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 E336CC76196 for ; Tue, 11 Apr 2023 16:31:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id: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=jvMmW52BRDQ9PNIqsjH4pMI76T7QZZacjy0RuriUkMo=; b=dchJMT0PfMLTQD JKipTFG4Mjwp8lvt7CGPdau9gSyecwXVSGGJ9bS+Aktr+rvuGohYyKObEYeVP46VbnZM18RGvFOPH 6JTxKJPWoI0pnuD3MHLjhy8wPQ88GGmbKTp2+8FrBvpGvJ6HkPKlGoqrx60i94Vy8x44bDXEyY+be 6YWd047AkttO2Z6e4EgbgLC41pYrOxQRjRvUkVhddWGvOIuJ3xS8q40DdKhsO1E4fQ+S6WBC4DJIt +rnpj1VGOygNVMjwhrMUbY5YJ+xHv+R4LR6e8eXI3dYqrN4VxFuD29QMVjB4+nHkf2QJ012VShpu2 TVT4JweOERA1M39ydp3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pmGsf-000Yqi-36; Tue, 11 Apr 2023 16:30:05 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pmGsZ-000Yp9-1F for linux-arm-kernel@lists.infradead.org; Tue, 11 Apr 2023 16:30:01 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 19FDC15DB; Tue, 11 Apr 2023 09:30:40 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A0EAB3F73F; Tue, 11 Apr 2023 09:29:54 -0700 (PDT) From: Mark Rutland To: linux-arm-kernel@lists.infradead.org Cc: broonie@kernel.org, catalin.marinas@arm.com, kaleshsingh@google.com, madvenka@linux.microsoft.com, mark.rutland@arm.com, will@kernel.org Subject: [PATCH v2 0/3] arm64: stacktrace: cleanups Date: Tue, 11 Apr 2023 17:29:40 +0100 Message-Id: <20230411162943.203199-1-mark.rutland@arm.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230411_092959_470705_69B5D0AB X-CRM114-Status: UNSURE ( 8.86 ) X-CRM114-Notice: Please train this message. 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 Hi Catalin, Will, These are a few minor cleanups for the arm64 stacktrace code, based on v6.3-rc3. The first patch is a minor fix (which I don't think we need to worry about backporting), and the last two are a cleanup for consistency. I'd originally intended to send these as part of a more substantial rework of the stacktrace code, but due to some other recent time sinks that's still in a half-baked state and I suspect I won't get that out before v6.4. Since v1 [1]: * Fold in Kalesh's Reviewed-by tags * avoid unused 'tsk' in unwind_recover_return_address() [1] https://lore.kernel.org/linux-arm-kernel/20230324134958.2496891-1-mark.rutland@arm.com Thanks, Mark. Mark Rutland (3): arm64: stacktrace: recover return address for first entry arm64: stacktrace: move dump functions to end of file arm64: stacktrace: always inline core stacktrace functions arch/arm64/kernel/stacktrace.c | 142 ++++++++++++++++++--------------- 1 file changed, 76 insertions(+), 66 deletions(-)