Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3690923pxu; Sun, 11 Oct 2020 20:35:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQxO3sOz0sc/vViB9Ar/2rAVBqpSWHt/ra4cc7zUpBjHhkYiyYHJrpkJLrooYshKlpFBFE X-Received: by 2002:aa7:d992:: with SMTP id u18mr11755473eds.284.1602473732945; Sun, 11 Oct 2020 20:35:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602473732; cv=none; d=google.com; s=arc-20160816; b=i6nYXGhngGfdTnIZ7dILBBU6hELejnpD3Um2Qs3wT/17FCY+g3ZIxTsEq2Uvsy1wcT NMiXBR/gCiA1A5Uz/QB1CwUaU1JLqo1nxGfXhVyTJk3RJW8+wBLV0vLQmwYzF9hVruMw 4lia1yCtIVHs6qETcw416yHp2amI5y/+MC1QQ5LDiBdQre4gs1CWAloFCQZIafJZcA37 wx0VyqWPaqA2TO+OlwmgvDdyOipxmFJwXL/s/irxYsjqG1c7NHj+l7uPwd1tPJmjDdMH HLJ9zNfoHKvc52KzAvJQfvkSqRaGjZAlzGjWVVHiNWdqCSQhSLd8/dBUnDMDQ5/43J8c dDiw== 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:references:cc:to :subject; bh=NCX7kQFP8nFFf911M0dhbG1rp6nCohdmx0czPbb3/y4=; b=m7IamZElYhClynuY3DxHCxpnG0rYF3lXnV0Idu4skvvlY5nm2cxesqjmNJ8RUM214m dJRsQT8PYa0gXy59PkPXKix/aTsAWsy46B0ykWosyWJJWW6CJGw+D6FQb1Hg3fs+VnXt RyaDDTQjd83k4qpNNtFhorSaSgU92LdcplWgMk/8HWmpC29SNMHBC4pXnbhsL8P/TZgU gpi+iiQIgCfyQ/PDPh5MpKkLAoiKwu/Z8K/bxGSUkQbJmr7QPS1gzWyOz7DaEgt+EkEA QncAiq36OFgHzM3y6MmfnAVT+mbdRM/UKknAiTMwrzLN5YMfkqTzSBrZSivk0Yy6umLv Tohw== 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 i3si12123979edj.574.2020.10.11.20.35.10; Sun, 11 Oct 2020 20:35:32 -0700 (PDT) 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 S1726058AbgJLCYI (ORCPT + 99 others); Sun, 11 Oct 2020 22:24:08 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:37758 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725882AbgJLCYI (ORCPT ); Sun, 11 Oct 2020 22:24:08 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 36A2E6A6EF26DEA1012C; Mon, 12 Oct 2020 10:24:06 +0800 (CST) Received: from [10.67.102.197] (10.67.102.197) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Mon, 12 Oct 2020 10:23:59 +0800 Subject: Re: [PATCH] arm:traps: Don't print stack or raw PC/LR values in backtraces To: Russell King - ARM Linux admin , "Sebastian Andrzej Siewior" CC: , , , , , , , , , , , , , , , , References: <20201009075957.110017-1-nixiaoming@huawei.com> <20201009080849.GM1551@shell.armlinux.org.uk> <20201009081820.jargnmck6zfkzegx@linutronix.de> <20201011213238.GN1551@shell.armlinux.org.uk> From: Xiaoming Ni Message-ID: Date: Mon, 12 Oct 2020 10:23:58 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.0.1 MIME-Version: 1.0 In-Reply-To: <20201011213238.GN1551@shell.armlinux.org.uk> Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.102.197] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/10/12 5:32, Russell King - ARM Linux admin wrote: > On Fri, Oct 09, 2020 at 10:18:20AM +0200, Sebastian Andrzej Siewior wrote: >> On 2020-10-09 09:08:50 [+0100], Russell King - ARM Linux admin wrote: >>> I am really not happy about this - it hurts at least my ability to >>> debug the kernel when people post oopses to the mailing list. If >>> people wish to make the kernel harder to debug, and are prepared >>> to be told "your kernel is undebuggable" then this patch is fine. >> >> I haven't look at the patch but don't they keep/add the representation: >> PC: symbol+offset/size >> LR: symbol+offset/size >> >> ? This is needed at very least as a replacement for the missing address. > > I don't have a problem getting rid of the hex numbers in [< >] > although then I will need to convert the symbol back to an address > using the vmlinux to then calculate its address to then find the > appropriate place in the objdump output - because objdump does > _not_ use the symbol+offset annotation. Yes, I really do look up > the numeric addresses in the objdump output to then read the > disassembly. > > $ objdump -d vmlinux | less > > and then search for the address is the fastest and most convenient > way for me rather than having to deal with some random script. > > Maybe I'm just antequated about how I do my debugging, but this > seems to me to be the most efficient and fastest way. > The loading address of the kernel module is not fixed, so symbol+offset is more useful than a hexadecimal address when the call stack contains kernel module symbols. Delete the PC/LR address and retain the sysbol+offset. The kernel can still be debugged. Thanks Xiaoming Ni