Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4274834pxb; Tue, 2 Mar 2021 10:48:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJwaqQoc3iNwwwHUPDRe3XHDPBO1G2u9C7V43CdOixk+1bzzm2S9ggYoBkuy6+DoANIKDmxh X-Received: by 2002:a17:907:962a:: with SMTP id gb42mr21635210ejc.206.1614710889746; Tue, 02 Mar 2021 10:48:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614710889; cv=none; d=google.com; s=arc-20160816; b=h6hfXPvYMFuyrqpy3uIl+kE0kEcPg9T5eZOuHJgANpxABpOeV0kDYcmtsJCnJ6H+jp UxCOMQ/3g4xbb6lD0q56j6scNbY+o6tnTGBObQz8pui4IjB8QkTl50J/ELQWPrHvGgMO lMvyX/MtA1DKYrVfpPjubPI6RrfqHjmsxKcsst8TnZNMx3DLrOIelMWHRFLLj7WJIFvf CYonLn+ollTr1rL2Dc/+YrRyhyp6guNkWWv/5ZENBtISiuGblOr6p4+ve9AV0eWm5HOa vUV5dLRV0HrX0X01q/rx0TVtPTtZV6ZbAx9UI9UR7nN27MShPJ2MnfXL/nxU48vZb4UG XQJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=YjL22wsFSr8poWgmTenwY9y2xX8ZdTNh+8LdvA0Ti+o=; b=Uup68uYrEi8qN1y+8m+xkKRFCtAP00k9A4AL5+kfxKOplY9Xf/2AGzZjZNbMU09KwS 7MMU41LYI5fname20CUlvdQ4uLFfLhOD2ve+4+v1NN9e0nPf5GLr1uB6AmabLHl7qP0Q wGKtXMe0xcyRXZ0oSYK3io22rmoNsUyk5Xg2i/IWmn+/CoA3u0CgF1TL+AhiObsTJJUv pMQbHR7QloreH1zKI0h1msrEuDPdNmj6Qpukuc5B8Qw+Tuewj+OJypbH61MFIUeKFGc8 0SfbtHvaiht5SASRz+FQA2aMllVHuXKPovLveqfte3Tce9ldYiGqO4eF0pxx2TVzGlOR DuJw== 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 n1si3674325edo.504.2021.03.02.10.47.45; Tue, 02 Mar 2021 10:48:09 -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 S1576771AbhCBEc0 (ORCPT + 99 others); Mon, 1 Mar 2021 23:32:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:56266 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1444692AbhCBCoE (ORCPT ); Mon, 1 Mar 2021 21:44:04 -0500 Received: from oasis.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D922F61601; Tue, 2 Mar 2021 02:43:21 +0000 (UTC) Date: Mon, 1 Mar 2021 21:43:19 -0500 From: Steven Rostedt To: 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 Subject: Re: [PATCH 5/7] printk: Make %pS and friends print module build ID Message-ID: <20210301214319.7e54c66f@oasis.local.home> In-Reply-To: <20210301174749.1269154-6-swboyd@chromium.org> References: <20210301174749.1269154-1-swboyd@chromium.org> <20210301174749.1269154-6-swboyd@chromium.org> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 1 Mar 2021 09:47:47 -0800 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. Please no! This kills the output of tracing with offset, and can possibly break scripts. I don't want to look at traces like this! -0 [004] ..s1 353.842577: ipv4_conntrack_in+0x0/0x10 [nf_conntrack] (3b39eb771b2566331887f671c741f90bfba0b051) <-nf_hook_slow+0x40/0xb0 -0 [004] ..s1 353.842577: nf_conntrack_in+0x0/0x5c0 [nf_conntrack] (3b39eb771b2566331887f671c741f90bfba0b051) <-nf_hook_slow+0x40/0xb0 -0 [004] ..s1 353.842577: get_l4proto+0x0/0x190 [nf_conntrack] (3b39eb771b2566331887f671c741f90bfba0b051) <-nf_conntrack_in+0x92/0x5c0 [nf_conntrack] (3b39eb771b2566331887f671c741f90bfba0b051) -0 [004] ..s1 353.842577: nf_ct_get_tuple+0x0/0x240 [nf_conntrack] (3b39eb771b2566331887f671c741f90bfba0b051) <-nf_conntrack_in+0xec/0x5c0 [nf_conntrack] (3b39eb771b2566331887f671c741f90bfba0b051) -0 [004] ..s1 353.842577: hash_conntrack_raw+0x0/0x170 [nf_conntrack] (3b39eb771b2566331887f671c741f90bfba0b051) <-nf_conntrack_in+0x28c/0x5c0 [nf_conntrack] (3b39eb771b2566331887f671c741f90bfba0b051) -0 [004] ..s1 353.842578: __nf_conntrack_find_get.isra.0+0x0/0x2f0 [nf_conntrack] (3b39eb771b2566331887f671c741f90bfba0b051) <-nf_conntrack_in+0x29d/0x5c0 [nf_conntrack] (3b39eb771b2566331887f671c741f90bfba0b051) -0 [004] ..s1 353.842578: nf_conntrack_tcp_packet+0x0/0x1760 [nf_conntrack] (3b39eb771b2566331887f671c741f90bfba0b051) <-nf_conntrack_in+0x3c8/0x5c0 [nf_conntrack] (3b39eb771b2566331887f671c741f90bfba0b051) -0 [004] ..s2 353.842578: nf_ct_seq_offset+0x0/0x40 [nf_conntrack] (3b39eb771b2566331887f671c741f90bfba0b051) <-nf_conntrack_tcp_packet+0x26d/0x1760 [nf_conntrack] (3b39eb771b2566331887f671c741f90bfba0b051) -0 [004] ..s1 353.842578: __nf_ct_refresh_acct+0x0/0x50 [nf_conntrack] (3b39eb771b2566331887f671c741f90bfba0b051) <-nf_conntrack_tcp_packet+0x558/0x1760 [nf_conntrack] (3b39eb771b2566331887f671c741f90bfba0b051) NACK! -- Steve