Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp78586pxb; Fri, 9 Apr 2021 18:54:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSZvheXigv6pnkBbA/VCrZdmdKtJ03W9HRGNrqJ/benv0SV3bxiutzTmmPMuSNa7WLaFZO X-Received: by 2002:a17:906:c9d8:: with SMTP id hk24mr18622942ejb.480.1618019680211; Fri, 09 Apr 2021 18:54:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618019680; cv=none; d=google.com; s=arc-20160816; b=WDux+F6v3QiHVyVm4iS3ELwZSErLYmGmMehNEl9Zx5NXBtGJ/DawiI90X+CR08DEKE uTEs4B+4zMm7uQfi///fPGchyK48QKj975we61171IwDTO+GB4GR+DuemojZrHanYGes ny2sFKU0jSl3FyV2zeejuQHwdyJ9lx6IOAIR+qRrXplkQa6qC2GdnrRFf8BSewKGqizR MoefONX/IFNiYLVP32UwwRzxBy1Eti4m4ARgFF7mxF3lKe4M+++P0F9lHd0ylC1OSihm Rp857V0UmU593plCbQ2pmEr/evVtws+eAdu4XDjTUn4a9zoVwqaKk8rjn/LSIqrRLmWG y6UA== 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=E20RIhCTjgP1ZLMLQv4p4r/+3SxEKu7hBuTb/fkDiOOGvAT1zwIZ6xn9DsEplG74lH hfB6Etl6mWhGFlGO8xKYRrRsb39mDf13yqzVGPCbJe7/s7nVgoqMbz7yV12B2zZ1nOhf 4asM2SqSEtHxZeaHeRlq1jjaQ01jnIon/xZDMTSqGeoPHqgk1R67XqIWt0arpVCaM0Ra FYkDlc1VK4T4BBna4Ix1rT4kcecIxowblkTUW/PoooyEyXzLqAtR8pfIAXwAZv3wjNxM ThSIhSVXzLetbBrkYm+HD+i/7ZyGAZqWprTYH7JLAMi7Gxt03wBCi9w6LTEXbEjvSE6G srJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="TP/ej0A5"; 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 d7si3019274ejy.164.2021.04.09.18.54.17; Fri, 09 Apr 2021 18:54:40 -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="TP/ej0A5"; 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 S234219AbhDJBx3 (ORCPT + 99 others); Fri, 9 Apr 2021 21:53:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234085AbhDJBxW (ORCPT ); Fri, 9 Apr 2021 21:53:22 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 786B9C0613D8 for ; Fri, 9 Apr 2021 18:53:07 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id d124so5353177pfa.13 for ; Fri, 09 Apr 2021 18:53:07 -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=TP/ej0A5oIbB+SZtsRxku6ynn0XFhltYZbU946pbzvENIPryBryzlCL8OsXZPO5/39 5wp3q/GEB1X8Vec131bV1WM0mwViEIKK3qoyRIirnHyTnuEvIpGVUefSgMxW8FVaiD9H IDhSM2hT9uM40D9RHJWn5U6LOvPEUXG0EI1M4= 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=GFje5/g1vjTe6Md6HJfWxdvQXH8FzHgcmlP9eij+C8RW+SVPfnCAQW5y8EE+BnGigH 7OYwrLkrKYeW2ti/8Wa09towtxsQ6u/Ngmdkb/OpoFvHugKpuu5GWPEgrMmnAuug+Z4o PJJOR/oKwq27atVkFxd8psl9t1nWtGT+yYs7e2yU/AqbKH0rnWXwlLSlPEKnMT2D+vz9 7dhAilI1x70GEreSF3GlJvxDp5FaABSfUryvZVMxZ8V/ywN2AnC0AoETskZmjLg7nk4s sUPT621pPhUT7G05QAiTfwMWHNVOQ4g4U9tPDASaNoElgq322WXWGhDiDx6nSOSBB3HK 1rXw== X-Gm-Message-State: AOAM530luXpyDJf9A2M1kS3+7lA6BJRTL2p84kUD8Jo6ayEClBzg5zzI Kf09vLFFRaIDIccMp2vRlTXznA== X-Received: by 2002:a63:1820:: with SMTP id y32mr15990639pgl.157.1618019587023; Fri, 09 Apr 2021 18:53:07 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:201:5141:7881:7013:743b]) by smtp.gmail.com with ESMTPSA id n23sm3837962pgl.49.2021.04.09.18.53.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Apr 2021 18:53:06 -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 v4 06/13] arm64: stacktrace: Use %pSb for backtrace printing Date: Fri, 9 Apr 2021 18:52:53 -0700 Message-Id: <20210410015300.3764485-7-swboyd@chromium.org> X-Mailer: git-send-email 2.31.1.295.g9ea45b61b8-goog In-Reply-To: <20210410015300.3764485-1-swboyd@chromium.org> References: <20210410015300.3764485-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