Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1527554pxb; Thu, 4 Mar 2021 13:48:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwETfetp6Igoyc0Ro6aAW0lXT6zL7QnYhlblN5rJDSI21eNXy/1+5eqFI2b8OQ+9pBRCZIj X-Received: by 2002:a17:907:c16:: with SMTP id ga22mr6516680ejc.120.1614894536535; Thu, 04 Mar 2021 13:48:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614894536; cv=none; d=google.com; s=arc-20160816; b=SBgj1OeFwho2Wr8tZlVk9xn+ElRrnR+bvjBxtnuKNxPfEv0Zd3WVkFxiFhbFg/h1Pn sivx3t+1e/RC1BjT6O7EM8lqyAccLdtykT1QlRvr/UwKBL8NdtPAG2ly+UGIkfttF7j8 Rag+XfNV6W9XHfW01gVynu6WamWt4sDKEphYHTRUoUFh6F7BLO9w2OajZw10H8S+DLRW jQPeflCaG0QXuquIED4GkWOh5192FsUvfqEIRMzu/MdF1aNKHF0TfjVunqV/oB2+47io pww5vUYSHto4jtoh0KgJSUpu+8QkuwNgU+G6AH5yfONK1dkqP9Q7Dvvi+ZdjXim/ZcJl fg8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=62KK1EtrPwDpveUviuINUmjHcRrckD3Hrdf208FRBvY=; b=r6aLTFcdAKMMhaqFxxYdxtd/mvGhx+UvOo+t10MVRN4rpx9N69zqZuGpVA6LgfikWY FjQamOD1VLAhxjlQZryHo/fwQAcAgMBzNnTnanIGYgQabic/2pEIUPXggrokpRgZ+2bD 4scEaPohYIT4bQNZQnSyFU7jdP5TjZ02qrOFn1ej7TYsfZWbuyrv+37ijGsXJsCALrCM rF4OIKREB8pThQu+HuoB185c7/WguNufey30Uo+Nnjh75WZiWu4T5AnyvlMtoxgUZ1wl i3If9sGp8Dwg7/ePGKIgqqXWjQbkDoT3V0dAjCcJRx9iZE9qDFiOYkHPvfzcOQ7ry5Pg vPzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=NpZLN3Mb; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a1si481936edx.487.2021.03.04.13.48.33; Thu, 04 Mar 2021 13:48:56 -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; dkim=pass header.i=@suse.com header.s=susede1 header.b=NpZLN3Mb; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238569AbhCCPLW (ORCPT + 99 others); Wed, 3 Mar 2021 10:11:22 -0500 Received: from mx2.suse.de ([195.135.220.15]:54078 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241090AbhCCK0q (ORCPT ); Wed, 3 Mar 2021 05:26:46 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1614767159; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=62KK1EtrPwDpveUviuINUmjHcRrckD3Hrdf208FRBvY=; b=NpZLN3MbUIPglvtn76MoeqxABY4sIVponKFYMpU/RMBDzXGNDYLccQP9CFwhpmcBJ89XOq KvpSufVHkZNN9Pz9Mqhi/pWxhQcVdDurgnHvg/EU3guj1mopTFoDy2mQmMZeJFW41deuYY BX/DB2mg7p7e58bJINgTUW4V3+4aSnU= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 8308FAC54; Wed, 3 Mar 2021 10:25:59 +0000 (UTC) Date: Wed, 3 Mar 2021 11:25:58 +0100 From: Petr Mladek To: Stephen Boyd Cc: Andrew Morton , linux-kernel@vger.kernel.org, Jiri Olsa , Alexei Starovoitov , Jessica Yu , Evan Green , Hsin-Yi Wang , Steven Rostedt , Sergey Senozhatsky , Andy Shevchenko , Rasmus Villemoes , linux-doc@vger.kernel.org Subject: Re: [PATCH 5/7] printk: Make %pS and friends print module build ID Message-ID: References: <20210301174749.1269154-1-swboyd@chromium.org> <20210301174749.1269154-6-swboyd@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210301174749.1269154-6-swboyd@chromium.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 2021-03-01 09:47:47, Stephen Boyd wrote: > The %pS printk format (among some others) is used to print kernel > addresses symbolically. When the kernel prints an address inside of a > module, the kernel prints the addresses' symbol name along with the > module's name that contains the address. Let's make kernel stacktraces > easier to identify on KALLSYMS builds by including the build ID of a > module when we print the address. > > This is especially helpful for crash debugging with pstore or crashdump > kernels. If we have the build ID for the module in the stacktrace we can > request the debug symbols for the module from a remote debuginfod server I have read the thread so for. IMHO, all mentioned variants complicate the logs a lot. Either the backtrace lines are hard to parse. Or the OOps/panic blocks gets too long when the ID is mentioned for every loaded module. IMHO, neither proposed solution is acceptable to be always used. First, I think that only I some developers would actually use this information. Many of them either know what module was used or they do not have an easy way to get the debugging information by the ID. So, it should be configurable at minimum. Second, I am not sure that it should be part of each OOps/panic blob. One solution would be to print the ID by the module loader when the module gets loaded. It would be mentioned earlier in the log then. Or we could make it available, for example, via /proc. It is a kind of information that might be gathered later on a rebooted system. SUSE has "supportconfig" command that allows to gather a lot of similar information about the system. We use it when analyzing crashdumps and kernel bugs in general. Anyway, I consider this a very detailed information that is not suitable for everyone. It should be availabe on request, like for example, backtraces from all CPUs, list of tasks, memory info. Alternative solution would be to minimize the information, for example, by printing only the modules that appear in the backtrace. But this might be complicated to implement. Best Regards, Petr