Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1480850rdb; Wed, 6 Dec 2023 23:23:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IHuA3Ajyf7Vn7WGtun/6La7WxCGCHJQO8zje8i12eLa38wrIDiwHsvf8Z27lANJirh1bY7O X-Received: by 2002:a92:d6c9:0:b0:35d:69c8:8d61 with SMTP id z9-20020a92d6c9000000b0035d69c88d61mr2546304ilp.14.1701933813724; Wed, 06 Dec 2023 23:23:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701933813; cv=none; d=google.com; s=arc-20160816; b=bEF/Y4jGNdH721FEItWWq334bRWfI7ZOCPcrYIBzLcCry/4Iik6M1gpTcGGNbK9emo Hryqhi+RowkwF9bBBcrxmeSCBvjEDpxbDoDQLkqQsx1227rsWG+N4ES2+xjf/B5k6QIi yXVlQUlr3GKsrcqoDBky43sXqfxWJyxQHwmn0SkqWFRsjz+SSGo07nTv/z/trjLdUKmO CWGYNMxR3P4LSoq2LncGtEcY1AyP1WLdPx9m7/uH7k/tHiAoISYMNdFL4+vCOG87ieSi AXdWtsnUMKbk4p8Yv0GULBqUYKGn8GdjADPwyeblnSKVJRvK/70kPP2RdXWdIBckNFxy 1h8g== 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=jWg3g68EBtUfhUNuukNRPWRpDe8a2tkdvJVzqoFJxb0=; fh=et9HAm4FIFyzvWjHiJO5P+LkpsKU+bx3cJHkp1X9Saw=; b=ThLP3RREp8fJms2bDMLxDd2sze8N+a/DP5FiFkcvoQKIf266eZ1s4dY9wzsp2OAPo8 wglGMByqSnq2VnbnbMj3ZfaFhWyxQZEMf2pwIHQyEOvspNCiRkjgHt+U4bEaESg0v8ZX O3jy+NcvtHsPKsZsGT4sXvCt5ggn1lc3srR52b3H1ULXbApq7o1c8bcpUHj9sG5SvI9e iPaIpKXYwHfy0wAHiNTCF4iu9Jb77zx4HHzdBEs1O5jdzidKl2HJFlooHWQDYDUFYWJE 6Wp2ipmLaoueuTw055CTXFlvHTiazo5cm07sP1QVwnS3186kkZww9bMN6EI7/wPkfNYz 5iVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id 22-20020a631256000000b005b95fbb1745si701223pgs.562.2023.12.06.23.23.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 23:23:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 439918149729; Wed, 6 Dec 2023 23:23:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377638AbjLGHXR (ORCPT + 99 others); Thu, 7 Dec 2023 02:23:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjLGHXQ (ORCPT ); Thu, 7 Dec 2023 02:23:16 -0500 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4CC84137 for ; Wed, 6 Dec 2023 23:23:21 -0800 (PST) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8AxuerncnFldI8_AA--.51386S3; Thu, 07 Dec 2023 15:23:19 +0800 (CST) Received: from [10.130.0.149] (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Bxni_lcnFlkEdXAA--.62240S3; Thu, 07 Dec 2023 15:23:18 +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:23:17 +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: AQAAf8Bxni_lcnFlkEdXAA--.62240S3 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBj93XoW7AFy5tFy5KFWkGrWDJFW7ZFc_yoW8Xryrpa yUAFs8tr4kK3y0qr9FyayUXr1kt3ykGr90gFs8CFy8Zwn8Z345Jrs3KF4DuFyUWwn5ArWI vFn5Wa4xuFW8A3gCm3ZEXasCq-sJn29KB7ZKAUJUUUU5529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUU9Sb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Xr0_Ar1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x0267AK xVW8Jr0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx 1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r126r1DMcIj6I8E87Iv 67AKxVW8JVWxJwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IY64vIr41lc7I2V7IY0VAS07 AlzVAYIcxG8wCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwCFI7km07C2 67AKxVWUAVWUtwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI 8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUCVW8 JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r 1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBI daVFxhVjvjDU0xZFpf9x07jOb18UUUUU= 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 06 Dec 2023 23:23:31 -0800 (PST) On 12/03/2023 08:42 PM, Huacai Chen wrote: > 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/lib/Makefile b/arch/loongarch/lib/Makefile >> index a77bf160bfc4..e3023d9a508c 100644 >> --- a/arch/loongarch/lib/Makefile >> +++ b/arch/loongarch/lib/Makefile >> @@ -3,6 +3,8 @@ >> # Makefile for LoongArch-specific library files. >> # >> >> +OBJECT_FILES_NON_STANDARD := y >> + >> lib-y += delay.o memset.o memcpy.o memmove.o \ >> clear_user.o copy_user.o csum.o dump_tlb.o unaligned.o >> > I have a draft live-patch patch here: > https://github.com/chenhuacai/linux/commit/744942cbf456b320f2333638e4bd27d35900284c > > But we get such an error: > > # selftests: livepatch: test-ftrace.sh > > [48/1865] > [14936.262721] livepatch: failed to register ftrace handler for > function 'cmdline_proc_show' (-16) > # TEST: livepatch interaction with ftrace_enabled sysctl ... ... > I think it is probably because we skip mem* functions here. I did not test livepatch which is a separate new feature, let me try it, maybe it needs some time because I am very busy with some other stuffs. Thanks, Tiezhu