Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1440359pxb; Thu, 4 Mar 2021 11:18:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxj3QxW59FEavBNQGbVaYeCGHJB8Xot/2m8q13TGZS+o6as2kqOJdm/l7KRofVwio+pRNey X-Received: by 2002:a17:906:4d44:: with SMTP id b4mr6034164ejv.338.1614885493721; Thu, 04 Mar 2021 11:18:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614885493; cv=none; d=google.com; s=arc-20160816; b=pflLN2EE7gHzRIDhbet1Q5K7rZQqCbr8pVadr0L2WRghvFaOFX1BGDasfiQwLHsQ5q Mmo+plbBe9OANYEd7lyp0nAEPzL+M6s4Ow5Geib2+A/7TOrdECXi+BXqx3zOYC2QbObI yyKnZjUEKXviUkkjDph/u7viH4FQjmAD7rOK09/a63akD2oYUeSMGdIxrAC6eCRcuZGZ MKHbpHULJJK4vmBMsFSD7s1S+lOCGD+/+52meav/aF1N9ZyAWCdDY3HPhPNzM6Trbu5V yEDPOcpK3e9OAFaeKfqVKcJWr6G56Gt6Cou6T2DQtSCisPWd5jfksO+1eWUTx+whXUE3 pAAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=qo7JldTnJo6GF/avOLXGrmdYjouVdk0OdVSsXFxxTyM=; b=F/9O07hvxYf0oGfRiKk9/0Yjux5L2Txb+xRSXlJKDwx9ZmidqO+BCuSfEdwTtuQ0Wm vVbigeYc+1zTeg9aYHAW6qyu62zfRR9g1axGjhc6/RHlykuRcwpUC2UUX4F7Z4ElygTF ejBJ1kkQ3A2QchvLm7eZMDTKNLZsG+Ym4CKWidvdKU4gupekTBtbgRXydhyAdtoFpS7n NONFXCs4UT9hxOnb1zkqqJ3tk08Su++wub0fPCv2e9gsdC2IVKNBmmp909IFRD7MrUG0 MYmc87G66aCgZsV6cSIizwybFiFgw9kGO+NUadbmrfHyJMFoi4cPTvwMNwiypDIm06jI 76Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Ea4IXmaD; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s20si217983edq.484.2021.03.04.11.17.51; Thu, 04 Mar 2021 11:18:13 -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=@chromium.org header.s=google header.b=Ea4IXmaD; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233617AbhCDTMw (ORCPT + 99 others); Thu, 4 Mar 2021 14:12:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231590AbhCDTMb (ORCPT ); Thu, 4 Mar 2021 14:12:31 -0500 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AC56C061762 for ; Thu, 4 Mar 2021 11:11:51 -0800 (PST) Received: by mail-pj1-x102e.google.com with SMTP id i4-20020a17090a7184b02900bfb60fbc6bso4939039pjk.0 for ; Thu, 04 Mar 2021 11:11:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:in-reply-to:references :subject:from:cc:to:date:message-id:user-agent; bh=qo7JldTnJo6GF/avOLXGrmdYjouVdk0OdVSsXFxxTyM=; b=Ea4IXmaDS12tOW7BTFzuRKuEXNr+yoP6VLnxJJ4Hg5oDmXwdeX58elNPluiRgSfXzs 5gaTCp6dysybX/zFf/2R9YT0I4/DACygZKfBgB/T6hFxhWhHhDGCYvvGIYA4OglgVfP0 6x9FMusgBu5e/E/8enT+WlKh+A6h/4HeltiZM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :in-reply-to:references:subject:from:cc:to:date:message-id :user-agent; bh=qo7JldTnJo6GF/avOLXGrmdYjouVdk0OdVSsXFxxTyM=; b=GQ/InZVEp3x7oPcWiO/38cPWHSyVeAJD5fH2kE/3KEAn7FZTPNupgoQTx/s3qSdEeh 0q5fVrrzfqMTFUhEqWIB0yvQMMd/Hl1Uzfe0RDf3RPVpPgRw+gM86x2QdvTTVdQAyGx8 UtmvrPnRF1y9Zf7oJaEH+UZJDT7vHBLR4d887cQsDA6gSFWTsmiXG6bZKOBi+H21tzEf xVQZvuHW5aDcS7DCAcL3thF4Ku+Bc3c9KwOHBds5QnWiLDDAC+P3BTy7MZI0VHD4eUDv tGcebXCMYM1ei2VVo/++Jw9ELfDqfb3Kz9jLeyZoF/0zEJHUvKgPv8rcUTiQ+QtssRLO tsBA== X-Gm-Message-State: AOAM532n/4aI2Ep1OGTo3gdeIpa2hg/8HFpJvKl8gNNRSd6/FyKbkJqL +HaUE+9HJOVspRtLfqv+TOeMpg== X-Received: by 2002:a17:90a:5887:: with SMTP id j7mr5971637pji.178.1614885110727; Thu, 04 Mar 2021 11:11:50 -0800 (PST) Received: from chromium.org ([2620:15c:202:201:b498:4a2d:bc34:b77e]) by smtp.gmail.com with ESMTPSA id y72sm158597pfg.126.2021.03.04.11.11.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Mar 2021 11:11:50 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20210304171940.GL2723601@casper.infradead.org> References: <20210301174749.1269154-1-swboyd@chromium.org> <20210301174749.1269154-6-swboyd@chromium.org> <20210301214319.7e54c66f@oasis.local.home> <20210304171940.GL2723601@casper.infradead.org> Subject: Re: [PATCH 5/7] printk: Make %pS and friends print module build ID From: Stephen Boyd Cc: Andrew Morton , linux-kernel@vger.kernel.org, Jiri Olsa , Alexei Starovoitov , Jessica Yu , Evan Green , Hsin-Yi Wang , Petr Mladek , Sergey Senozhatsky , Andy Shevchenko , Rasmus Villemoes , linux-doc@vger.kernel.org To: Matthew Wilcox , Steven Rostedt Date: Thu, 04 Mar 2021 11:11:48 -0800 Message-ID: <161488510845.1478170.2089177121697044390@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Matthew Wilcox (2021-03-04 09:19:40) > On Mon, Mar 01, 2021 at 09:43:19PM -0500, Steven Rostedt wrote: > > On Mon, 1 Mar 2021 09:47:47 -0800 > > Stephen Boyd wrote: > >=20 > > > 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. > >=20 > > Please no! > >=20 > > This kills the output of tracing with offset, and can possibly break > > scripts. I don't want to look at traces like this! > >=20 > > -0 [004] ..s1 353.842577: ipv4_conntrack_in+0x0= /0x10 [nf_conntrack] (3b39eb771b2566331887f671c741f90bfba0b051) <-nf_hook_s= low+0x40/0xb0 >=20 > Would it make sense to only print the build-id if it differs from the > build-id of the kernel which has loaded it? No. The build-id of the module is different from the kernel that loaded it all the time, so it would always be printed.