Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp804849pxf; Thu, 8 Apr 2021 13:00:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGUDF80vgOLsHTTR28soLxYKtGCf7GV4h+pBVXjAPkhc+YlrT/P+HMWW1R56xxZ2+Zds2Z X-Received: by 2002:a17:906:7d58:: with SMTP id l24mr12620162ejp.261.1617912013413; Thu, 08 Apr 2021 13:00:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617912013; cv=none; d=google.com; s=arc-20160816; b=WGLFta32fmCDuJI+qbL6KTC+rqNI80upT6WIAfbQv5ppPDVISp5G0UkznMR7Lc26W0 Uw3+XAEb4K/p0aNAhvsNrysgS6USG6AM14sGYQrvm/Sf1Wm8Xki0e7wUFewr1szQMgnj ab+jjPjIhlpRNXy3I1S+JAy96vRuQzNNl9IdMIulSEL3PbmFKwlezsGHbtS1C7vSkKqH CwISWxSa3aGxh0Q5GrV/7ljf+vA6WjB9MwDtbM39hXMH5niWw/MCcqLmYjeY+QR1Ljn/ umLcY7UXbiIpcz4Rp69kNA9Q4IaBhQ7KlHLf//wNoJeBMIh5aVuos7qk+XGnxhhjUj54 C0wg== 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=4N1kjjTn55rRbrrq/+KkyyeUWallp6st2fMntbajpqU=; b=qWnvhV4HRZSDxYFT+2uzDrTvpb91UgzXeomg/iS2P6aScwzO/qBJdFNj5e89/xFIF8 Uru440KCFp0sfUvVVNKmoK4gN0T3D22AsZ1si9RCKP8v3GGO0ItkQc7QFmskWkcbAuh1 qv1pLKkVfxg6rGxOb7dLVeBAbqwiVPaIAu9UxhZ374eQ2bmT/QRQSJzyeRAbC1FHmYFO RXm4FxxavTvXpmWZ6d6wKN+hogcytYHBb2BrbX7u+Szn141J2Z1l7Dr6vBZ6Rpc3DGyH AArHKIVwzC9Ix3Jpr6yK/YGylFb+J/oJlBUN/k5CJ3w7gZw4A73rtGKp+jRRQayOneVH bTyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=BCvpnIT9; 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 s22si267614ejo.518.2021.04.08.12.59.50; Thu, 08 Apr 2021 13:00:13 -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=BCvpnIT9; 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 S232401AbhDHT6i (ORCPT + 99 others); Thu, 8 Apr 2021 15:58:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232377AbhDHT6i (ORCPT ); Thu, 8 Apr 2021 15:58:38 -0400 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6984C061760 for ; Thu, 8 Apr 2021 12:58:26 -0700 (PDT) Received: by mail-pg1-x529.google.com with SMTP id g35so2150217pgg.9 for ; Thu, 08 Apr 2021 12:58:26 -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=4N1kjjTn55rRbrrq/+KkyyeUWallp6st2fMntbajpqU=; b=BCvpnIT9aDF246OVUAgc5nq8a6442rj3yQakx88oV2SsypMLWEG7w9vVgsHnCDFkJR 9cmz2xx8A9nSY/b4gwVsKPc+ZUFVKj8Y/KDwkwlec/2WMpwDX/rpqdPzjxpYAkjY5K3l rZ3Tj9oMJft8ZtX+7QYPTcu6Hgt6sZKodgflw= 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=4N1kjjTn55rRbrrq/+KkyyeUWallp6st2fMntbajpqU=; b=ln0h4xh6xy9Tz3iw8J5MaXoEoYZeh0x3DuyYVPLCb35QKX1lwBlR1YDissI1j8hzx3 IGWXS7OzmFwqApSNDteaOhdfGK8k/mKPWAfdGqxvgO9nZ5zAo6SQgA9oG0u5m6CWIvtM iFiIk/QQAACWMnfEZLwSYwbJ3l3GJ7nlDPis/Ts93lbcWild4mHu8y7A1k/r0tnPKYa3 0n8SUnDXXP31h+ASDoU+13gA29YDMnId/2u3/Sm6ZDfJcDFBwSMqWZWwQivWrx+dkHn3 CeDwLjpFIxEtoMCUzdXvDsmryj/p517VY795FOyaFXJEx7gqke0Q27JtfkKT/80KP2Hu DjCQ== X-Gm-Message-State: AOAM530pU8qv/DkbsUAFMM/iXFsAzt8gn9CJPFNNrEJ5Ol58G0thOrbh i0b3IUhCGns4xqnXC+zEyUz2AA== X-Received: by 2002:a63:78cc:: with SMTP id t195mr9367700pgc.196.1617911906233; Thu, 08 Apr 2021 12:58:26 -0700 (PDT) Received: from chromium.org ([2620:15c:202:201:44c3:3248:e7f5:1bbd]) by smtp.gmail.com with ESMTPSA id f187sm252780pfa.104.2021.04.08.12.58.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Apr 2021 12:58:25 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20210408101743.GB22237@MiWiFi-R3L-srv> References: <20210331030520.3816265-1-swboyd@chromium.org> <20210331030520.3816265-13-swboyd@chromium.org> <20210407170328.x7hgch37o7ezttb6@pathway.suse.cz> <20210408101743.GB22237@MiWiFi-R3L-srv> Subject: Re: [PATCH v3 12/12] kdump: Use vmlinux_build_id to simplify From: Stephen Boyd Cc: Andrew Morton , linux-kernel@vger.kernel.org, Jiri Olsa , Alexei Starovoitov , Jessica Yu , Evan Green , Hsin-Yi Wang , Dave Young , Vivek Goyal , kexec@lists.infradead.org To: Baoquan He , Petr Mladek Date: Thu, 08 Apr 2021 12:58:24 -0700 Message-ID: <161791190437.3790633.11239676305383366588@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Baoquan He (2021-04-08 03:17:43) > On 04/07/21 at 07:03pm, Petr Mladek wrote: > > On Tue 2021-03-30 20:05:20, Stephen Boyd wrote: > > > We can use the vmlinux_build_id array here now instead of open coding > > > it. This mostly consolidates code. > > >=20 > > > Cc: Jiri Olsa > > > Cc: Alexei Starovoitov > > > Cc: Jessica Yu > > > Cc: Evan Green > > > Cc: Hsin-Yi Wang > > > Cc: Dave Young > > > Cc: Baoquan He > > > Cc: Vivek Goyal > > > Cc: > > > Signed-off-by: Stephen Boyd > > > --- > > > include/linux/crash_core.h | 6 +----- > > > kernel/crash_core.c | 41 ++----------------------------------= -- > > > 2 files changed, 3 insertions(+), 44 deletions(-) > > >=20 > > > diff --git a/include/linux/crash_core.h b/include/linux/crash_core.h > > > index 206bde8308b2..fb8ab99bb2ee 100644 > > > --- a/include/linux/crash_core.h > > > +++ b/include/linux/crash_core.h > > > @@ -39,7 +39,7 @@ phys_addr_t paddr_vmcoreinfo_note(void); > > > #define VMCOREINFO_OSRELEASE(value) \ > > > vmcoreinfo_append_str("OSRELEASE=3D%s\n", value) > > > #define VMCOREINFO_BUILD_ID(value) \ > > > - vmcoreinfo_append_str("BUILD-ID=3D%s\n", value) > > > + vmcoreinfo_append_str("BUILD-ID=3D%20phN\n", value) >=20 > I may miss something, wondering why we need add '20' here. The build ID is an array of 20 bytes and this format is to print 20 bytes in hex.