From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7C6E6C432BE for ; Thu, 26 Aug 2021 23:21:12 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 3698B60E8B for ; Thu, 26 Aug 2021 23:21:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3698B60E8B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:In-Reply-To:MIME-Version:Date: Message-ID:From:References:Cc:To:Subject:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=ytoiq1XQPsz4pxg6nw5cpdt7d6Wetns0XLIYktvNqVY=; b=BkdkRaEZpcMXCt69bbhxAXBUxK E1PpuYcdeIxvk6+3dAc4DwhDa+0VNdFjnb/CxeYP9Mak30bByWnuMI2+O7u8/cmK5ImT8jmfq15uk UrVuMPhFiTuFbiJLB31Tgx8i3WWbCCwgoBfhEaXMvvDGr8XG0ZTg59+A2jvsFbT8WxP3o5WTlnpCs r4MRrxNX1aI0q0SdCeCbpX/f1jTGqxleEF3nRnCogXGUxt+H6z0UQNpSf/cKsuqLHLaPgZ1E1gBYb nPTGMFlhxlDHig0RgcVV1oARsHa0Y7quwjol2OGMWABZE2ohjxyOCBAsd4MVDfbfyb6pI+iayGvL1 hT4pRWMg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mJOeQ-00B2RB-DG; Thu, 26 Aug 2021 23:19:14 +0000 Received: from linux.microsoft.com ([13.77.154.182]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mJOeM-00B2QU-Ig for linux-arm-kernel@lists.infradead.org; Thu, 26 Aug 2021 23:19:12 +0000 Received: from [192.168.254.32] (unknown [47.187.212.181]) by linux.microsoft.com (Postfix) with ESMTPSA id 8A5A420B861E; Thu, 26 Aug 2021 16:19:08 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 8A5A420B861E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1630019949; bh=TNk71oULKpnJVXpIAkpW4dxCRZZFfi0WY/GV0rQ4Blw=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=sDrPH0DIYqzWljDeynFQ2cHN8Shft6uXuyS4L8KXZr4/VtcLamVAxWh5cQW0bRTzZ jRY4voAsLQE2MfrL7Lxe/Oqs/DQ0JxZFajO2NvhnOok99Bv9D9JJvywU8FT7g7p6vD vtYq3ii0I1E1jMYUrrV4jbhwRbx90qfjp7fFyjq4= Subject: Re: [RFC PATCH v8 2/4] arm64: Reorganize the unwinder code for better consistency and maintenance To: Mark Brown Cc: mark.rutland@arm.com, jpoimboe@redhat.com, ardb@kernel.org, nobuta.keiya@fujitsu.com, sjitindarsingh@gmail.com, catalin.marinas@arm.com, will@kernel.org, jmorris@namei.org, pasha.tatashin@soleen.com, jthierry@redhat.com, linux-arm-kernel@lists.infradead.org, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210812190603.25326-1-madvenka@linux.microsoft.com> <20210812190603.25326-3-madvenka@linux.microsoft.com> From: "Madhavan T. Venkataraman" Message-ID: Date: Thu, 26 Aug 2021 18:19:07 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210826_161910_741709_5E77B500 X-CRM114-Status: GOOD ( 19.78 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 8/26/21 10:46 AM, Mark Brown wrote: > On Thu, Aug 12, 2021 at 02:06:01PM -0500, madvenka@linux.microsoft.com wrote: > >> Renaming of unwinder functions >> ============================== > >> Rename unwinder functions to unwind_*() similar to other architectures >> for naming consistency. More on this below. > > This feels like it could probably do with splitting up a bit for > reviewability, several of these headers you've got in the commit > logs look like they could be separate commits. Splitting things > up does help with reviewability, having only one change to keep > in mind at once is a lot less cognative load. > >> Replace walk_stackframe() with unwind() >> ======================================= >> >> walk_stackframe() contains the unwinder loop that walks the stack >> frames. Currently, start_backtrace() and walk_stackframe() are called >> separately. They should be combined in the same function. Also, the >> loop in walk_stackframe() should be simplified and should look like >> the unwind loops in other architectures such as X86 and S390. > > This definitely seems like a separate change. > OK. I will take a look at splitting the patch. I am also requesting a review of the sym_code special section approach. I know that you have already approved it. I wanted one more vote. Then, I can remove the "RFC" word from the title and then it will be just a code review of the patch series. Mark Rutland, Do you also approve the idea of placing unreliable functions (from an unwind perspective) in a special section and using that in the unwinder for reliable stack trace? Thanks. Madhavan _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel