Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1359195pxy; Fri, 23 Apr 2021 06:26:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgZy2HRIs075ol1lewaotDQ0r+zw64v0Co73tXxuS/APSKabVOHS40x0UK7wMYmaP6nizQ X-Received: by 2002:a65:4485:: with SMTP id l5mr3723006pgq.209.1619184371212; Fri, 23 Apr 2021 06:26:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619184371; cv=none; d=google.com; s=arc-20160816; b=veh59VCbANp0qgNQqLjACkk9zxve8QMoK53XMnxbZ6Ry1dJMj+kbUIWUjzJxuOljp2 fwQPjd/0D2otB7Ym8kQLaJbUnLeMBynR4aKq35azBeQWKXyrwvGMeUeOYQ6Pq4oURzr8 Xbc//MvwjFWXLF957ur8vfWXRGnEvbnbUIqVz96RP5jmS//lzeXT3GAo9IpZOQwdDnmw 0bH54I5ZGO+SsAA/6ZM696YNBjvgIkesoPv2ooxY6RQ8J0tUUI6Lhgm6XhAEmBxpraEF W/X5GQZIhWcegUgcPCxZfu0w23iMCbnFG8+K9QBcngNbGWozLStAdOMFfR2i/xjIOwdn qCrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=t2HgYD8HV+17p77KB0cxNHPN/c4tp+ZWR7f1ThwApFo=; b=g7A6DNwDE+Xdc843/E9HM5ZMnndA8kV36IEEQKPPapHi1PLYmdUMHo11z73O1/ZztC kmEfdU4AhvQOrc1CNxor09yFhfMjJH4MrDmbpSB+3QhltRHn4qrdZBrx2jdSRT2Q0iHc nIKZaJClcC0g1a3KhS/jMZrkOtsot+CqhLa5NlZduKl1re9QnaKLZa096uRnJcp/oak8 mxDQBB5/SOREXkgQcOgvm+OCbs3p07K5zj429TjScbPnGzVY2SP63hgeOGbbQOysNSd9 VdQqQX+887KDls9p7BsVS0c5339aLarw7KXk0ma6kRFBpUg3b1x0x06xe52Zuc+HbvKp IF1A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p15si6720213pgk.50.2021.04.23.06.25.58; Fri, 23 Apr 2021 06:26:11 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231142AbhDWNZh (ORCPT + 99 others); Fri, 23 Apr 2021 09:25:37 -0400 Received: from mga12.intel.com ([192.55.52.136]:31798 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbhDWNZg (ORCPT ); Fri, 23 Apr 2021 09:25:36 -0400 IronPort-SDR: kK0FOKpcJsrVU5ds7uOD45vpKD5enBULxfLehoun9FPz+s+dUqUjrCnZxsnhMZKTMcRF8bu0Um 8XKmNBmVRJmw== X-IronPort-AV: E=McAfee;i="6200,9189,9963"; a="175551467" X-IronPort-AV: E=Sophos;i="5.82,245,1613462400"; d="scan'208";a="175551467" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2021 06:24:59 -0700 IronPort-SDR: fU1MwX/zwew2GLGuBMdwnSfJshhZBEqFxXeg9B7pmIkZEYkobjV2mCQOh8Iy5uLxNUnvqaJ/o1 edoxgT6ZBkWQ== X-IronPort-AV: E=Sophos;i="5.82,245,1613462400"; d="scan'208";a="456222695" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2021 06:24:56 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lZvnh-006ZPI-4z; Fri, 23 Apr 2021 16:24:53 +0300 Date: Fri, 23 Apr 2021 16:24:53 +0300 From: Andy Shevchenko To: Stephen Boyd Cc: Andrew Morton , linux-kernel@vger.kernel.org, Jiri Olsa , Alexei Starovoitov , Jessica Yu , Evan Green , Hsin-Yi Wang , Petr Mladek , Steven Rostedt , Sergey Senozhatsky , Rasmus Villemoes , linux-doc@vger.kernel.org, Matthew Wilcox Subject: Re: [PATCH v5 05/13] module: Add printk formats to add module build ID to stacktraces Message-ID: References: <20210420215003.3510247-1-swboyd@chromium.org> <20210420215003.3510247-6-swboyd@chromium.org> <161913520061.46595.8469966711677906076@swboyd.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <161913520061.46595.8469966711677906076@swboyd.mtv.corp.google.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 22, 2021 at 04:46:40PM -0700, Stephen Boyd wrote: > Quoting Andy Shevchenko (2021-04-21 04:49:33) > > On Tue, Apr 20, 2021 at 02:49:55PM -0700, Stephen Boyd wrote: ... > > > Example: > > > > Please, shrink the example to leave only meaningful lines. > > > > Why, e.g., do we need to see register dump, is it somehow different? > > Can you format it how you would like to see it? Should it be a unified > diff? I agree it would help to see "what changed" but also don't know > what you want so opted to provide more information, not less. I was > worried about the questions like "do you change other parts of a splat?" > so I just put the whole thing there. Before: ...line X... ... ...line Y... After: ...line X'... ... ...line Y'... Three lines of example per each paragraph, in each of them the middle one is simply [...]. ... > > > +#ifdef CONFIG_STACKTRACE_BUILD_ID > > > + /* Module build ID */ > > > + unsigned char build_id[BUILD_ID_SIZE_MAX]; > > > > Is it really string of characters? Perhaps u8 will be more explicit. > > I'm just matching the build ID API that uses unsigned char. If you want > u8 then we should update more places. I could do that in a followup > patch, but this one is already sorta big. Unsigned char here is confusing. I would prefer a prerequisite patch to fix other places first. ... > > > +#include > > > > What do you need this header for? > > > > For typeof_member(). Argh... We really need to split this and container_of to something else. Having entire kernel.h for that is an overkill. -- With Best Regards, Andy Shevchenko