Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp139668pxy; Tue, 20 Apr 2021 14:51:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwa8jgmwalmO76Qia/vBeTsRu2cIOKlGeV/bH912EtzDh5dioACQwhXkK7wLtqkQJ/HilCJ X-Received: by 2002:a05:6402:212:: with SMTP id t18mr34927734edv.165.1618955511251; Tue, 20 Apr 2021 14:51:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618955511; cv=none; d=google.com; s=arc-20160816; b=UkSacIE3/4NHZp2RW+ebZQfgsP5OYWoz5fmsqbEkfjPdErMest7VIE39grT+0AWqOQ dV7DSiOo76f/sOE9HOApnDdFKTTQv9kX9Ybis+3cvTyN1GxnT/5K44gPEN3OkuTiRkkL TFsbFuGmDXldbtlqcJba256Kdb8YkvAhfnkQVjXAaVHvoSB03VnjbKGPAqGcK8+iRZsW ju4Ip3Ia5KtdarlEinQRw3nMeHgm2FD1RfcxXES//VwxV4mW7EZibkwLbRi98MNuPPBc DxfschCKd6KiQrWIX+gTAkgdr0ZvkiUoaXa274kljXZvtQ/HdCzqH78nckWJUX6+fnlw w8kQ== 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=AivgNmToWrIJ8rijnRLNqyfGQa0qcMogh2h7vOQHfPTSNUiZ/la/V7K9iVqKdRrIe+ a7Q/iXBuPTpoUegLSk6jR3IYRYnnTPr4XzSDYfZmPE/qJd6I5BDn/AdHC/0WZjBYXXcQ 2gulpA+GRMqlM7JNBG7//jBPBO+mYftGz2xa/tDYMRonmD319XBXBcr2Gxpf4v1iHllj 4VT2KnenSbUv1XQ0Pe5uFFyAsKcDeBCyXWTQ9kaOCAlsykXRcCK0FVU+SZ8OR2gnED9G +/R7gr+opSOBGMWq2tmS2b5+OxRDSXmadugjAizsHfEh/8TQVyzdkaMhXw9SDiayic6K K8Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Ec+7pf8Q; 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 q14si38812eju.317.2021.04.20.14.51.26; Tue, 20 Apr 2021 14:51:51 -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=Ec+7pf8Q; 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 S234199AbhDTVuw (ORCPT + 99 others); Tue, 20 Apr 2021 17:50:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234203AbhDTVun (ORCPT ); Tue, 20 Apr 2021 17:50:43 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C468C06138E for ; Tue, 20 Apr 2021 14:50:10 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id e9so3453604plj.2 for ; Tue, 20 Apr 2021 14:50:10 -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=Ec+7pf8QFOQGETswMvOwtCRnFSRRBh6lgonx4jun1dk6+8y4PtaKE2ursXiRrg09fb oaXLDuTuNy5OI63T9ZRfLkbe6d9Jiccq/+/AViB8L7ikRzkcy2FO2GXqXL9w7nesdi/K tvVxkFehtsUBOhsmh2vqumM4MHbE1anmyBtjU= 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=RDpza5kdMTgr5gpgVnLLP+QRx6ZPemOAej2UsRI+D/PV9TNL5sfUZHIARbnNrJkYd1 pTALumiaNqFRkLnxBYVUNGM2HyxuF0GeiU3WcT6n86L72e+pIlK9oIUmNEBqfO0TuSQT tQ/EZ4HZ/OE59VXHAPzWS4DXHUw6s2yiBJJzkS037lg0qw9l+V47M6jJP1R9JlZub7cy QsNCo7LnhcNSPuONNdjIPavzBgP1ypvLsYohtE+OydhdQi6waLhB4rQzS8aXrSb16hFh lz4izzKzMimilHSHIZR6G4qkb9Lv9rMbSDH/Nar+zdmzMnFAc4mY8eYa63gD4XLC115X urBQ== X-Gm-Message-State: AOAM532sGVBH3MA6Y13JTrPWZRRNmOJP7cFix0D1QDuv7LQKkgXFvBRB 5LXZqbLIF5xDc/fVzKPxeSVaBw== X-Received: by 2002:a17:902:70c5:b029:ec:9a57:9cc8 with SMTP id l5-20020a17090270c5b02900ec9a579cc8mr13011264plt.73.1618955409659; Tue, 20 Apr 2021 14:50:09 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:201:bf8b:4b8b:2315:3719]) by smtp.gmail.com with ESMTPSA id c21sm31481pfo.91.2021.04.20.14.50.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Apr 2021 14:50:09 -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 v5 06/13] arm64: stacktrace: Use %pSb for backtrace printing Date: Tue, 20 Apr 2021 14:49:56 -0700 Message-Id: <20210420215003.3510247-7-swboyd@chromium.org> X-Mailer: git-send-email 2.31.1.368.gbe11c130af-goog In-Reply-To: <20210420215003.3510247-1-swboyd@chromium.org> References: <20210420215003.3510247-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