Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1097986rda; Mon, 23 Oct 2023 02:22:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGXIkqN5w6Boq9sxDZR18M8Ipu6iq20fXAzVIZH16IMAZu52J9+qFbMQ2Mn2JzeiI9gdfJ6 X-Received: by 2002:a05:6a20:a10b:b0:17e:8326:e4b3 with SMTP id q11-20020a056a20a10b00b0017e8326e4b3mr52901pzk.43.1698052937681; Mon, 23 Oct 2023 02:22:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698052937; cv=none; d=google.com; s=arc-20160816; b=MYrlDr/mkQtWY8uq3n23cALGL6jUa0DIOf/2ORo5D+DtrPknHSA5bdqKA5em+h9JwE GwmZ84XrN5syyStUn0H7+FEQckK2EAGyfIWYtFWXRf8tXWLKMUuDMG2M27H6buEUxbpV KdioudbZCdmOvUBXnayPYcqcJaA5MsSpCkvwg++Ag8synv9AykFHqKw63BDWnEOJYiwo dSx6R0Ua2Pn6sbPbdrovGav0uWugXjld+avSKGugB9POtqR3tPfovLKiYhwnvGG5uBlk 43ySdCK8sUGqa5yunDC99y5XWxnEvfIlR8HLUqxvv7LHso0zXQjxF7UnMP637MmHUdee E5Xw== 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=fqXHWdzNtPSZFD9DoMuNb4UezbmU6fINXHDwnBwLtiQ=; fh=S5obLJdm3hG0tu8y9KrVYD5NjYRNYF0L4tmJlQjhXUE=; b=0sLYl8kTmGW2nUXMbrIxVNJxK1a96pKakx3PY4jQG9DqlnTs396xSQI6EtJw0n7GFk wT8zMf7vkWTBXe9P4vUYFEQokYnoT49X6apMuZ9xLSG8gAnrrzdZJ9ISC9wjeNxY3TNb UX9oq4lDWfylfZYHtZommd5FGsNMk6lMFfdydC7maHwGeo1tmfRyv3NluV8cOXhzp+QQ 3E+a7WNhOafK5sP62fJZ8BT2DGNgXyqhDmMS4b1gZiUp4JjsaBXGC60YvZhr7KSmtKZh 0FG+yE/z363RVINR8hgTnVp6F0847YPWBwu5eP+Bl0/MnbuuxfsIx/jwWZXXh2aHF4ZN 7Wqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id 12-20020a170902c10c00b001c732b6869csi5826376pli.63.2023.10.23.02.22.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 02:22:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id A32E08058441; Mon, 23 Oct 2023 02:22:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233182AbjJWJWG (ORCPT + 99 others); Mon, 23 Oct 2023 05:22:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233073AbjJWJVs (ORCPT ); Mon, 23 Oct 2023 05:21:48 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5046610DA for ; Mon, 23 Oct 2023 02:21:41 -0700 (PDT) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8Dx_+sjOzZlQOozAA--.34210S3; Mon, 23 Oct 2023 17:21:39 +0800 (CST) Received: from [10.130.0.149] (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Bx7twiOzZlLCQvAA--.34646S3; Mon, 23 Oct 2023 17:21:38 +0800 (CST) Subject: Re: [PATCH v4 8/8] LoongArch: Add ORC stack unwinder support To: Xi Ruoyao , Josh Poimboeuf , Peter Zijlstra , Huacai Chen References: <1698048691-19521-1-git-send-email-yangtiezhu@loongson.cn> <1698048691-19521-9-git-send-email-yangtiezhu@loongson.cn> <4d3363eb5f4d864cfd171d89b1a13da5ef8b784c.camel@xry111.site> Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn From: Tiezhu Yang Message-ID: <1a06a70d-5dae-93a7-c200-c5b58f1241d5@loongson.cn> Date: Mon, 23 Oct 2023 17:21:38 +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: <4d3363eb5f4d864cfd171d89b1a13da5ef8b784c.camel@xry111.site> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-CM-TRANSID: AQAAf8Bx7twiOzZlLCQvAA--.34646S3 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBj9xXoW7Jr1fuw17WF4UZw17AFWUtrc_yoW3WrXEk3 yruF1kC3yUZF1qg3W7Gan2vFy7Ga47Cw1UGFy0vrsrKryfta1DuF4qk3sYvFW8XF97CF1k uan8X343C3Z29osvyTuYvTs0mTUanT9S1TB71UUUUUJqnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUbfAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV W8JVWxJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6F4UJVW0owAaw2AFwI0_Jrv_JF1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0c Ia020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jrv_ JF1lYx0Ex4A2jsIE14v26r4j6F4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvEwIxGrw CYjI0SjxkI62AI1cAE67vIY487MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j 6r4UMxCIbckI1I0E14v26r126r1DMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwV AFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0EwIxGrwCI42IY6xIIjxv2 0xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4 v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Gr0_Cr1lIxAIcVC2z280aVCY1x0267AK xVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7IU8CksDUUUUU== X-Spam-Status: No, score=-4.1 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 23 Oct 2023 02:22:15 -0700 (PDT) On 10/23/2023 04:43 PM, Xi Ruoyao wrote: > On Mon, 2023-10-23 at 16:11 +0800, Tiezhu Yang wrote: >> +ifdef CONFIG_OBJTOOL >> +KBUILD_CFLAGS += -fno-optimize-sibling-calls -fno-jump-tables -falign-functions=4 >> +endif > > Why do we need to regress the code generation so much for objtool? Add the above options is to avoid generating some intractable instructions for objtool by now, I hope all of the extra options can be removed if possible. For example, without -fno-jump-tables, there exist many objtool warnings like this: "sibling call from callable instruction with modified stack frame" If the enhanced special function about jump table is implemented in objtool, -fno-jump-tables will be removed in the future. Thanks, Tiezhu