Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp141407pxf; Wed, 7 Apr 2021 22:47:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznl6QtIf4D55tQe+Mgi0dxJHH84XoEHRqZ77tt8jQ0Nhv7UQFC99g/7ZrnKiGJq4iAQBf1 X-Received: by 2002:a05:6402:518d:: with SMTP id q13mr9027486edd.313.1617860864325; Wed, 07 Apr 2021 22:47:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617860864; cv=none; d=google.com; s=arc-20160816; b=IE6FA/nCX24UQ5N2tIQQpDECdVZ03C4IrBrkydxjzqHxxPCtP+r2JBPAI5BaxMuiTP 8sBeGYw0jcNoZi0Dfd1p/qMheN2gFPcEkJF/dUFrmTCckHeS/VhtqaE+E+zzNtXx1cmy xUwgR6VpePKJK8DGIVL9ZKMDYwY6kvxqoQenmAdPTwaW5pZT+DGwukiMtvuOUtNH6YM5 UjsZ6y8cOMltUSoIuXrbxp0zjwUz8zLOPRNYzp5WxGaAQ9vxWP7GWVmb28irAWxVdbww 8whbi9LcVvlpg+ktbU1msRTnduH1U9UhqtNUrax+nLrNmtmd0ISmtcqn94epPXAX1QGK srPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=EkHfFpR6mRQDl4oJirm0PloxNhQZM6zzTuwn8wuG5RI=; b=rIrNK6qcW0m9ceVv4SSJvOLFqMnnRpjME9+dvy5CbPmzQ4Px4zLDvOKCuZXoZPCRN6 BTfM1i6SwyeRyXR6sEQUU8RDRcqn0o4V0UXbDAcm+oQAW4i90j2500oN8ejn7dqm5gMG mzZgDtUKHktTywQOS3MgY+qAn6W/V9Jp1qaXZEd44R+wulKrwjov5E9g5QGDxJ8NnOqU gpy97UkRtGw9inUIi6E/Si1brRVXarlNtsWZ2T4mE2CW5ked7BnMDJkWJDYJwI/qfE6K JQsjvxhoOMebF7Vup5cozZc/BTsDqC6hG5jEps5BYFvyjkoJzAj/yTCjB570YT1yGmUR pAXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=DmcgUUF5; 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 n2si6417846edi.195.2021.04.07.22.47.21; Wed, 07 Apr 2021 22:47:44 -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=DmcgUUF5; 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 S229687AbhDHFoQ (ORCPT + 99 others); Thu, 8 Apr 2021 01:44:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbhDHFoP (ORCPT ); Thu, 8 Apr 2021 01:44:15 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B086FC061760 for ; Wed, 7 Apr 2021 22:44:03 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id y2so443184plg.5 for ; Wed, 07 Apr 2021 22:44:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:in-reply-to:references :subject:from:cc:to:date:message-id:user-agent; bh=EkHfFpR6mRQDl4oJirm0PloxNhQZM6zzTuwn8wuG5RI=; b=DmcgUUF53Mo/CbIv2slW80r0AyvtxHvESwkRQ0QMYy6OfKSdNVCL44gVHeYTqxDQka /9Ji1qVyonRP1tqUnl4rIje/mA0m5g6AB+4iD5jksRUZMezKWFh/m7lIreI8+aXlnFNi wZXjp5VtKmqvMyZTtWPbvmtykyCJEV4i4KOIU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :in-reply-to:references:subject:from:cc:to:date:message-id :user-agent; bh=EkHfFpR6mRQDl4oJirm0PloxNhQZM6zzTuwn8wuG5RI=; b=f2UwWJF9ptH+IPJSCxivp/VMr/Et/3FuvL+Dt2kTTDWJF7mplxGC2VBJQdM9mdzzH4 Vplq9dPP7/LGC+pgfM6U+xGC7a3415gnxFX2J6NTw/2K9QnjRNu254GJhlbD55d8G+d5 VrND78cFLEQN+AAcF0eVAT/5agWcGnL27BryodSXTLAs2Lgbq1Ece+VvwC9JxFivoSrM 0wcmYqPuN6p+pMacxvLfwtL7A1GJPuWQ/nAVTHvNZRlui/9hYTUiEx8EOJXEveUDmW8p 0v8kskDvKzsBR4MrTqwD11vYLjeapgAnFW6qRR19WtcXaHsVwQUidfhDsvmbdLIts5CH RtEg== X-Gm-Message-State: AOAM533+A/n8S7URgilkxZIAxExiFaH3a/6i/LgyKd+5b/zPcybF4IUr 5eD/KBsCFgduUvKGEZMnsfD/eQ== X-Received: by 2002:a17:90a:e50d:: with SMTP id t13mr5111783pjy.160.1617860643252; Wed, 07 Apr 2021 22:44:03 -0700 (PDT) Received: from chromium.org ([2620:15c:202:201:e193:83c5:6e95:43de]) by smtp.gmail.com with ESMTPSA id n21sm813679pjo.25.2021.04.07.22.44.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Apr 2021 22:44:02 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20210331030520.3816265-1-swboyd@chromium.org> <20210331030520.3816265-4-swboyd@chromium.org> Subject: Re: [PATCH v3 03/12] dump_stack: Add vmlinux build ID to stack traces From: Stephen Boyd Cc: Andrew Morton , linux-kernel@vger.kernel.org, Jiri Olsa , Alexei Starovoitov , Jessica Yu , Evan Green , Hsin-Yi Wang , Steven Rostedt , Andy Shevchenko , Matthew Wilcox To: Petr Mladek Date: Wed, 07 Apr 2021 22:44:01 -0700 Message-ID: <161786064151.3790633.17528429348664284217@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Petr Mladek (2021-04-07 06:42:38) >=20 > I think that you need to use something like: >=20 > #ifdef CONFIG_STACKTRACE_BUILD_ID > #define BUILD_ID_FTM " %20phN" > #define BUILD_ID_VAL vmlinux_build_id > #else > #define BUILD_ID_FTM "%s" > #define BUILD_ID_VAL "" > #endif >=20 > printk("%sCPU: %d PID: %d Comm: %.20s %s%s %s %.*s" BUILD_ID_FTM = "\n", > log_lvl, raw_smp_processor_id(), current->pid, current->co= mm, > kexec_crash_loaded() ? "Kdump: loaded " : "", > print_tainted(), > init_utsname()->release, > (int)strcspn(init_utsname()->version, " "), > init_utsname()->version, > BUILD_ID_VAL); >=20 Thanks. I didn't see this warning but I see it now after compiling again. Not sure how I missed this one. I've rolled in this fix as well.