Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp81192pxf; Tue, 30 Mar 2021 20:12:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAIUo5mrPhJLKPRrTakBV74hOWfuMm0JW2dHOZo9igFteYwfqeSDyRwG+LDb+WaiFH2wbJ X-Received: by 2002:a05:6402:35c9:: with SMTP id z9mr1096932edc.94.1617160366178; Tue, 30 Mar 2021 20:12:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617160366; cv=none; d=google.com; s=arc-20160816; b=mZ1AWUfFFtoshY6Wdk9f6pQ9JVoYotiCsGCG4sH1d5HXcNhq/81VyElPlOvpii56nI dKCWkQA8eWVpJxS2dCXCcP/v/V4aUwl9FmeUKqUGlkn0XMdKmWLgwqwrf/ynLAuz0QKs pS8mwBBgoyVMw8q75w9CzJveE2ryVcp2o7SrL/1TG/SI/2o+iL8ReVPVfiyTCGr+SQUT PT7CQvVfG3jlFoLPDupDfgAdRsT9s1opZ8As23llxdgWXr9RJjbGlTAN+k6SqMTsJh62 pwFxQ0/IJpRHmKhzZLdPYMjLKqVHGAzooMMqB5g9TEvIgpg8IAX/DK5w9rT+YJBo/QxZ MoTg== 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=br6Q9nB7EzUYGhvzSIch8sIAGewUeFhxJoVc038K6FM=; b=znbWyratloPLrOTM3uxKWgASZIoRb5h/7vZdwW2flTyceTrfj300IKHMt/Uw4+xsBp RnVMP6Xq/ER0CYpWtHDkukAUXjLKQ5Yp30apnw+xgDy+YnXJnbwPyrlAqhRE5efUvpny GSx8yxhVTWLm475H6nnlKZmrJT2ME9TME0i9tSrU3kQdzOki+QewTUSKKMnsMMq9IBLw 4/fqenjax8OJddzt+tSoyPOnhi+I61s3szb50DUCCztpNkFYd1788tuwYcjT6IIOfbTq 16pEi5h6e6syYkimQVUXgYt3+Rw9Jv1eCiJ5knRBpVemFum3gTijKIp2J8wSaOltN3IO CxWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PeADhDJN; 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 b1si611770ejb.714.2021.03.30.20.12.23; Tue, 30 Mar 2021 20:12:46 -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=PeADhDJN; 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 S233551AbhCaDFp (ORCPT + 99 others); Tue, 30 Mar 2021 23:05:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233461AbhCaDFa (ORCPT ); Tue, 30 Mar 2021 23:05:30 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C682C061574 for ; Tue, 30 Mar 2021 20:05:30 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id g15so13548628pfq.3 for ; Tue, 30 Mar 2021 20:05:30 -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=br6Q9nB7EzUYGhvzSIch8sIAGewUeFhxJoVc038K6FM=; b=PeADhDJNiRgIOEcF+wkSPzMcbbUX6gZBKwZAQSjLdgUMl5KM6cQaPet90MQdmPSCyn iGsR23rROUHXJpqZs624kHtm7qVmf506UE+nRNBUhWSDl0c623M4yn2B8R/SJUkvsBpp iMbF2LCL6lbsP8ROhLrMBJmB3Xv2yYGcBXdLo= 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=br6Q9nB7EzUYGhvzSIch8sIAGewUeFhxJoVc038K6FM=; b=nhJDlhnzYSzA6QFStFyhmT/8E2vjErTlUgrCMfdNDWSEZMl/EdmCzRCF1DM9hlLVwv HB1JMM4waALBU8ADGbO+HXPjrADwTdBpEmkP2Kjj4XCgMCLY5sjMe2wJiOGd8KzoOdqh c2CmGtYRjJqjk25YK3ytmpGJXgSkz1aVmtEn2THNTRqp7qoPhQ5+b/H4oSMh4Q7PvkO3 RvxYQdCdUjeMerqCv3Vedalp0TjaXqsgc1deihlSrpyfMq7IHkga5Fmw9h0qcOCxAlzq AXeZOvWczJt+evtoaW4Eb40Y7uL00JXC/6tNtaM0p9Q38nYB8/toB2XZ86u2bkKx17hC oy/Q== X-Gm-Message-State: AOAM531I3IPgXNmlsbRySPjbcBZ46b9Q4HZe8t40DSvNHPjh1yBryTi4 EDgQAOYk8mXlIBEDMVgifLo5EQ== X-Received: by 2002:a63:3744:: with SMTP id g4mr1089520pgn.387.1617159929699; Tue, 30 Mar 2021 20:05:29 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Mar 2021 20:05:29 -0700 (PDT) From: Stephen Boyd To: Andrew Morton Cc: linux-kernel@vger.kernel.org, Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, Jiri Olsa , Alexei Starovoitov , Jessica Yu , Evan Green , Hsin-Yi Wang , Petr Mladek , Steven Rostedt , Andy Shevchenko , Matthew Wilcox Subject: [PATCH v3 05/12] arm64: stacktrace: Use %pSb for backtrace printing Date: Tue, 30 Mar 2021 20:05:13 -0700 Message-Id: <20210331030520.3816265-6-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: Catalin Marinas Cc: Will Deacon 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/arm64/kernel/stacktrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/stacktrace.c b/arch/arm64/kernel/stacktrace.c index ad20981dfda4..9d38da01ff98 100644 --- a/arch/arm64/kernel/stacktrace.c +++ b/arch/arm64/kernel/stacktrace.c @@ -129,7 +129,7 @@ NOKPROBE_SYMBOL(walk_stackframe); static void dump_backtrace_entry(unsigned long where, const char *loglvl) { - printk("%s %pS\n", loglvl, (void *)where); + printk("%s %pSb\n", loglvl, (void *)where); } void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk, -- https://chromeos.dev