Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1476301rdb; Wed, 6 Dec 2023 23:10:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IEOD9m7Z5tJUrlTesTqGB6lo1lkGF+Z3K2G9pJs9KOjh2DQPLpP6mV5jCrpXQgbJkeaPYnw X-Received: by 2002:a05:6a00:3309:b0:6ce:7d6f:cf4d with SMTP id cq9-20020a056a00330900b006ce7d6fcf4dmr2202445pfb.54.1701933057265; Wed, 06 Dec 2023 23:10:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701933057; cv=none; d=google.com; s=arc-20160816; b=R/PQUorllsXCgDaXTBou3gSd4gcoh/U+IRksk0YCBRLKTX+J5zZ8MIc56yLMQ/h2RZ Y8pN20dSTNEkSnLolMzJrkmB2LJ42XhQ6nt+kKTp851kgPk0J/0HBoGr6GQ8kkQYLorB dy4c9fR6CGt7r1zP6dX06LsNGE8I1ssJtgrFOHkrxgXlD0IbjWhC8bf3hHruA7eiE5Sn xa0srKf0deyPiLroOeoh8B8oNz2l52tX+okv6iB/3hGQA09lQ4KI7PduWzJZAA14l6S6 w5Dlwmv3Fx0+1qpGcwdNS9wJfdGwv7wjOopXtqxmCu7oYUhS8SihxoB/icGfrIabLpjQ 8zDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=Et7r0vEjqo3KUMPWNH2SJOPOwd3SrVeNLWMlrReSarg=; fh=et9HAm4FIFyzvWjHiJO5P+LkpsKU+bx3cJHkp1X9Saw=; b=UZRqrY6Owq7Kh42mIUJ/s25VKoG7x4413ReSJNlqOMpoCQxoaRWJ52s7J7lHFhsk/F KisSFqtMoefgWvPFhyvQv42YCbnlmCYhGygzWQmLULJw+N4z8WioQ3iHskr+vgKYE9nG gpLBevzeVg6CetiYIZXzjKyyYei5PsAn89mw2Ayl6S9yftOfPtmjJ3d5MsTGFGth9WfT rZ05JWVdmPrO51klALDuMEKLbyDItXo9tfzWLcoshreOX7FGabRSX/y41a2tDDTxkmyg vwqB0McoS+f2NE786NFM07/4e3WKWmKUUUu78ECcjFdO7TNuBkmvV2DpbQiQewKHJf00 sKWA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id ay31-20020a056a00301f00b006ce4df26354si757890pfb.56.2023.12.06.23.10.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 23:10:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 6AAF780DF9A3; Wed, 6 Dec 2023 23:09:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377822AbjLGHJT (ORCPT + 99 others); Thu, 7 Dec 2023 02:09:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231440AbjLGHJC (ORCPT ); Thu, 7 Dec 2023 02:09:02 -0500 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6793C172C for ; Wed, 6 Dec 2023 23:08:52 -0800 (PST) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8Cx5_GBb3FlkY4_AA--.61235S3; Thu, 07 Dec 2023 15:08:49 +0800 (CST) Received: from [10.130.0.149] (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Cxzt6Ab3Fly0RXAA--.63923S3; Thu, 07 Dec 2023 15:08:49 +0800 (CST) Subject: Re: [PATCH v5 8/8] LoongArch: Add ORC stack unwinder support To: Huacai Chen References: <20231129130701.27744-1-yangtiezhu@loongson.cn> <20231129130701.27744-9-yangtiezhu@loongson.cn> Cc: Josh Poimboeuf , Peter Zijlstra , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org From: Tiezhu Yang Message-ID: Date: Thu, 7 Dec 2023 15:08:48 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8Cxzt6Ab3Fly0RXAA--.63923S3 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBj9xXoW7JF48KrWkAr1xKw48GF4rZwc_yoWktrb_Gr 17C398C34DZr1UXw1qqa43A3yqq3yxJFZYk3s3Xr42qFn8JFy5JwsIy34fZwnYywsrGFZ5 Z3yYqFZ3Ar1j9osvyTuYvTs0mTUanT9S1TB71UUUUUDqnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUbIxYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV W8JVWxJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6r4UJVWxJr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27w Aqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jrv_JF1lYx0Ex4A2jsIE 14v26r4j6F4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvEwIxGrwCYjI0SjxkI62AI1c AE67vIY487MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8C rVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtw CIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x02 67AKxVWUJVW8JwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Gr 0_Cr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7IU8vA pUUUUUU== X-Spam-Status: No, score=-4.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 06 Dec 2023 23:09:55 -0800 (PST) On 12/02/2023 09:45 PM, Huacai Chen wrote: > Hi, Tiezhu, > > On Wed, Nov 29, 2023 at 9:07 PM Tiezhu Yang wrote: >> >> The kernel CONFIG_UNWINDER_ORC option enables the ORC unwinder, which is >> similar in concept to a DWARF unwinder. The difference is that the format >> of the ORC data is much simpler than DWARF, which in turn allows the ORC >> unwinder to be much simpler and faster. ... >> diff --git a/arch/loongarch/kernel/lbt.S b/arch/loongarch/kernel/lbt.S >> index 9c75120a26d8..4d6914f84c7e 100644 >> --- a/arch/loongarch/kernel/lbt.S >> +++ b/arch/loongarch/kernel/lbt.S >> @@ -11,6 +11,7 @@ >> #include >> #include >> #include >> +#include >> >> #define SCR_REG_WIDTH 8 >> >> @@ -153,3 +154,7 @@ SYM_FUNC_END(_restore_ftop_context) >> .L_lbt_fault: >> li.w a0, -EFAULT # failure >> jr ra >> + >> +#ifdef CONFIG_CPU_HAS_LBT >> +STACK_FRAME_NON_STANDARD _restore_ftop_context >> +#endif > This file is only compiled if CONFIG_CPU_HAS_LBT is set, so #ifdef can > be removed. OK, will remove it in the next version. Thanks, Tiezhu