Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp81248pxf; Tue, 30 Mar 2021 20:12:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvDZnXbu6PTRC3n+uSzNWoGC2u5QRvay8OcPZyMSffUvhD/UdaEgXTa5cfiXjKjoOj6IVq X-Received: by 2002:a05:6402:1d39:: with SMTP id dh25mr1112680edb.282.1617160376706; Tue, 30 Mar 2021 20:12:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617160376; cv=none; d=google.com; s=arc-20160816; b=kyuKtXIbK++MF2Mw38UvbAWT6fkxPBIW6hbTeZGH+XG7JIpagx1aA1hjm3wrKVRpIW I1toMd65S9FHwkkTP0H5Xugp5VSax/76qYEy/IPAq4QIePfE7soW3qk1SYIg9Ch9cgte 3QJzTMJ/v+KohjXOfJFG12HG3jQtGdhfSonUUGgD7stONoBO1rs7Dv2hD0k2Pbu6qRm1 zXrLPQoDevVnwbzA1w0Cxe/23aLcCVaNITBJr2FUOtQs82bOKvbeI/TPa0oEBzw8LSr3 bkl6uVa04p3kQJq6v17HVvXZb6Re6UgPpVPy1jovdPbGA1wCxRZGUZTAOzU+5at0NUUg nJNw== 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:date:subject:cc:to:from :dkim-signature; bh=mpMmDhY+dCpZ19xacYYKQOde4316qnbnc7ljrLohPKE=; b=yfcDG/dhKE+ygmjfjGissKsJ71LKkH+7j+OZMDLmOXBMXhMd7RC1ekpfHNlIltDxJN MUEEgf4L05pNJEG1aLrso27qWO8EJKlEPgIvuZp/vtoozTlRmvSZwixYxxsBpwmlN3Dr z34xf73+FLyg6IVKde4+ISp3777j4ohp6QXwK5hU2lycBIXyWphjiHNddf2pkGdQD/nn 1N1P/3JFM5xno2meVNW7MNlngfq+idFBB/gmi8weORlnY+nAo/3GXtoBs/uAwnRMaeFH nyIqG5UuX1SFn17MtertFlGHZJYTu3hb2J7WjCKCY/JuysTErEgWHsgPauPtRsMrSywV o0qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Ver8reiP; 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 t15si615442ejx.751.2021.03.30.20.12.34; Tue, 30 Mar 2021 20:12:56 -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; dkim=pass header.i=@chromium.org header.s=google header.b=Ver8reiP; 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 S233559AbhCaDFq (ORCPT + 99 others); Tue, 30 Mar 2021 23:05:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233392AbhCaDFb (ORCPT ); Tue, 30 Mar 2021 23:05:31 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E7BBC061574 for ; Tue, 30 Mar 2021 20:05:31 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id l123so13513977pfl.8 for ; Tue, 30 Mar 2021 20:05:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mpMmDhY+dCpZ19xacYYKQOde4316qnbnc7ljrLohPKE=; b=Ver8reiPZMpiyLCuRsv1l+OLOUVQQz+1AVoVQx07SbSwxc0DEbf00Z5jlSHnLSkTnY rtI7YRvtpWE09kxM7dHdCjVyAqeMp50PBIXSjcZKfNDh8PCfUXbnyLpB4qL3RLlJByVn MHmHACZL1kuKSyRQ/chtMzmzEhD2oHHB6rRsw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mpMmDhY+dCpZ19xacYYKQOde4316qnbnc7ljrLohPKE=; b=bW0ffmUZwh++olKG+I8HK9Ht2SazMUpFm9ig46PFiH7qE1QWnqjX9Ripg5LBhXTlqb 7secwJaax7Lq0uwNPgIrKMCjUIsdli/pUgeAT5kBWw5Ukx+8RsDJlkmVObnvlrFSz7ti 2qXpZqIh8ogP7rU3zg7eKQNanj5SYJH7cfh6x6xvgI+SrI4BPZs08ON8Xpz8obnzsNZC b7sh9oUlvfqGOzxC8JLChmmtlZTF7ykJH+kgp5jybL594IXQFVifOpIqjj452gvHgMbR yWn46Vy0JteKeNKRcoovAJmi7rgXpBaf0PSvxNaz9KS4xK3PthP0+B2NOqU9UvxIsYe3 sNCw== X-Gm-Message-State: AOAM530XznUql5OAY60F/URUN4U36nGqQ/mBORaXqzKz24StCNn1LAhv /PEccfbGYrMgoj+4CGGmwBN+JQ== X-Received: by 2002:a63:ed12:: with SMTP id d18mr1177504pgi.20.1617159931148; Tue, 30 Mar 2021 20:05:31 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:201:c8c2:b814:df0f:253f]) by smtp.gmail.com with ESMTPSA id c6sm389024pfj.99.2021.03.30.20.05.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Mar 2021 20:05:30 -0700 (PDT) From: Stephen Boyd To: Andrew Morton Cc: linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, Jiri Olsa , Alexei Starovoitov , Jessica Yu , Evan Green , Hsin-Yi Wang , Petr Mladek , Steven Rostedt , Andy Shevchenko , Matthew Wilcox Subject: [PATCH v3 06/12] x86/dumpstack: Use %pSb for backtrace printing Date: Tue, 30 Mar 2021 20:05:14 -0700 Message-Id: <20210331030520.3816265-7-swboyd@chromium.org> X-Mailer: git-send-email 2.31.0.291.g576ba9dcdaf-goog In-Reply-To: <20210331030520.3816265-1-swboyd@chromium.org> References: <20210331030520.3816265-1-swboyd@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Let's use the new printk format to print the stacktrace entry when printing a backtrace to the kernel logs. This will include any module's build ID[1] in it so that offline/crash debugging can easily locate the debuginfo for a module via something like debuginfod[2]. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Cc: Jiri Olsa Cc: Alexei Starovoitov Cc: Jessica Yu Cc: Evan Green Cc: Hsin-Yi Wang Cc: Petr Mladek Cc: Steven Rostedt Cc: Andy Shevchenko Cc: Matthew Wilcox Link: https://fedoraproject.org/wiki/Releases/FeatureBuildId [1] Link: https://sourceware.org/elfutils/Debuginfod.html [2] Signed-off-by: Stephen Boyd --- arch/x86/kernel/dumpstack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/dumpstack.c b/arch/x86/kernel/dumpstack.c index 299c20f0a38b..7ad5eea99b2b 100644 --- a/arch/x86/kernel/dumpstack.c +++ b/arch/x86/kernel/dumpstack.c @@ -143,9 +143,9 @@ void show_opcodes(struct pt_regs *regs, const char *loglvl) void show_ip(struct pt_regs *regs, const char *loglvl) { #ifdef CONFIG_X86_32 - printk("%sEIP: %pS\n", loglvl, (void *)regs->ip); + printk("%sEIP: %pSb\n", loglvl, (void *)regs->ip); #else - printk("%sRIP: %04x:%pS\n", loglvl, (int)regs->cs, (void *)regs->ip); + printk("%sRIP: %04x:%pSb\n", loglvl, (int)regs->cs, (void *)regs->ip); #endif show_opcodes(regs, loglvl); } -- https://chromeos.dev