Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2962163pxb; Mon, 16 Nov 2020 01:51:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJxKMKremsDuCyZwOd9yZCiDTlkfJu1P42RIa0Gxtb63oxGaOmpAvcmlmMEwgFl9klOe6fsj X-Received: by 2002:a17:907:4302:: with SMTP id nh2mr13130177ejb.451.1605520291205; Mon, 16 Nov 2020 01:51:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605520291; cv=none; d=google.com; s=arc-20160816; b=F/vd08uITzHsol/qXbopZflWwNiko6KCONUhlG+UqhnWlUl85LOloVAO2WD/g1krGF MciNR0MYDgeeKgNz1Gd8SIuUQZNHzHmvb+B2mni6+hXVCnFgh38vXkPFqR2VeZ/mhaVM 9H/J59DBcK6OaXhGwQ2/+NrA51R1LcT3I480utndTHsDmBIgnJAv0xfe3mkdTEUdjB68 ObKHvkZMB5nKk35zFOuQUi/8m4IxpVXTI/FQK8M9JtGKYMKh2rmim2IdoxlIovF1Aopm fw4tCncxhAKlbjKGxHBPFvgJk/wzFyQjZ3DrqiAfn085L90obyZ75ia0Zaz2xAe8/s33 8uTw== 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=bfXKlKd+uhuM4JbCL/k18TTlyr9AEpejRVExqFY+Ekk=; b=aElK23O8ReivcCqIq0GU/XWeBvbJCVUXGzmw49cmXxeJkfyw3Nqz+xaDC/xdaCvjf2 LUJvWYl3oX/eIa0CDU7Edpgc9Cjcw8Kx3NZZXK5gQmz2c6ItP8Oaw2uLJnX4WSNo+7d3 whU20iQCFEYJ2b3zyE0QEBsT3/kcKjTd1mtrPdcg4+A6VIC0/QNPwalrK/vMSflA08PF zhP8Ha0NVfaGOT9j27ewDhF2bbRv9fMeChdi0nzcjqIyyhVRoSPYpLZeDKI7JAYoe+cu SW25VGQeJfVHiiGk6A342SzwkZN+FkB7aQ0zm/pBGqNwg+JLWfHsUlFDCau6Gn4EBivv axnQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hk6si10723308ejb.716.2020.11.16.01.51.08; Mon, 16 Nov 2020 01:51:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728674AbgKPJrx (ORCPT + 99 others); Mon, 16 Nov 2020 04:47:53 -0500 Received: from mail.loongson.cn ([114.242.206.163]:55554 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728492AbgKPJrx (ORCPT ); Mon, 16 Nov 2020 04:47:53 -0500 Received: from [10.130.0.80] (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9AxqtDGSrJfUOIPAA--.24770S3; Mon, 16 Nov 2020 17:47:50 +0800 (CST) Subject: Re: [RFC PATCH] MIPS: Kconfig: Select ARCH_WANT_FRAME_POINTERS To: Sergei Shtylyov , Thomas Bogendoerfer References: <1605502980-31946-1-git-send-email-yangtiezhu@loongson.cn> <62ea9838-70ce-ca73-7dae-e94620956ab5@gmail.com> Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li From: Tiezhu Yang Message-ID: Date: Mon, 16 Nov 2020 17:47:50 +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: <62ea9838-70ce-ca73-7dae-e94620956ab5@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf9AxqtDGSrJfUOIPAA--.24770S3 X-Coremail-Antispam: 1UD129KBjvJXoW7CF4fWw1fJF4UtFyrZFykuFg_yoW8AFyrpa 1vka1Dt3ykXayUK3W0yr4rZ345t393GayYkFZxKry5J3WrXa4fKrWftrs8WFn2gr1kKa4I qF9aqFyjgr1vy3DanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUvG14x267AKxVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK02 1l84ACjcxK6xIIjxv20xvE14v26ryj6F1UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26F4j 6r4UJwA2z4x0Y4vEx4A2jsIE14v26F4UJVW0owA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gc CE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E 2Ix0cI8IcVAFwI0_JF0_Jw1lYx0Ex4A2jsIE14v26r4j6F4UMcvjeVCFs4IE7xkEbVWUJV W8JwACjcxG0xvEwIxGrwACjI8F5VA0II8E6IAqYI8I648v4I1lc7I2V7IY0VAS07AlzVAY IcxG8wCY02Avz4vE14v_GFWl42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr 1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE 14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7 IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0rVWrJr0_WFyUJwCI42IY 6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa 73UjIFyTuYvjfUbEfYDUUUU X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/16/2020 05:08 PM, Sergei Shtylyov wrote: > Hello! > > On 16.11.2020 8:03, Tiezhu Yang wrote: > >> Select ARCH_WANT_FRAME_POINTERS to fix the following build error under >> CONFIG_DEBUG_ATOMIC_SLEEP: >> >> CC arch/mips/kernel/signal.o >> {standard input}: Assembler messages: >> {standard input}:1775: Error: Unable to parse register name $fp >> scripts/Makefile.build:283: recipe for target >> 'arch/mips/kernel/signal.o' failed >> make[2]: *** [arch/mips/kernel/signal.o] Error 1 >> scripts/Makefile.build:500: recipe for target 'arch/mips/kernel' failed >> make[1]: *** [arch/mips/kernel] Error 2 >> Makefile:1799: recipe for target 'arch/mips' failed >> make: *** [arch/mips] Error 2 >> >> I think it is useful to get debugging information as described in the >> following texts: >> >> lib/Kconfig.debug >> config FRAME_POINTER >> bool "Compile the kernel with frame pointers" >> ... >> default y if (DEBUG_INFO && UML) || ARCH_WANT_FRAME_POINTERS >> help >> If you say Y here the resulting kernel image will be slightly >> larger and slower, but it gives very useful debugging >> information >> in case of kernel bugs. (precise oopses/stacktraces/warnings) >> >> Documentation/dev-tools/kgdb.rst >> This option inserts code to into the compiled executable which saves > > So to or into? :-) Hi Sergei, Thanks for pointing that out,this may be a typo which should be "into". I will update the commit message to correct it. Thanks, Tiezhu > >> the frame information in registers or on the stack at different points >> which allows a debugger such as gdb to more accurately construct stack >> back traces while debugging the kernel. >> >> Signed-off-by: Tiezhu Yang > [...] > > MBR, Sergei