From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9B85C433E3 for ; Wed, 24 Mar 2021 11:28:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8F5E161984 for ; Wed, 24 Mar 2021 11:28:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232336AbhCXL20 (ORCPT ); Wed, 24 Mar 2021 07:28:26 -0400 Received: from mga17.intel.com ([192.55.52.151]:20901 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234830AbhCXL17 (ORCPT ); Wed, 24 Mar 2021 07:27:59 -0400 IronPort-SDR: ou0Cy9TVOfMO1f50r1mWKPg55IRgXUx1JIBD2XXzupGx9Kn9aShKqBPOSluVJezG/X38ghLa54 O2Sg/rzyHPEg== X-IronPort-AV: E=McAfee;i="6000,8403,9932"; a="170658488" X-IronPort-AV: E=Sophos;i="5.81,274,1610438400"; d="scan'208";a="170658488" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2021 04:27:59 -0700 IronPort-SDR: fLMOpPONO57CyouVGPnnVww2LfR3v3EznRnbU862tcto+BJRX/StsbcqvicnRBXdwRlcAhGWJc H9H32qRUt2UQ== X-IronPort-AV: E=Sophos;i="5.81,274,1610438400"; d="scan'208";a="374610721" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2021 04:27:56 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lP1g1-00Fec4-2i; Wed, 24 Mar 2021 13:27:53 +0200 Date: Wed, 24 Mar 2021 13:27:53 +0200 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 , Konstantin Khlebnikov , Sasha Levin , Petr Mladek , Steven Rostedt , Matthew Wilcox Subject: Re: [PATCH v2 07/12] scripts/decode_stacktrace.sh: Support debuginfod Message-ID: References: <20210324020443.1815557-1-swboyd@chromium.org> <20210324020443.1815557-8-swboyd@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210324020443.1815557-8-swboyd@chromium.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 23, 2021 at 07:04:38PM -0700, Stephen Boyd wrote: > Now that stacktraces contain the build ID information we can update this > script to use debuginfod-find to locate the debuginfo for the vmlinux > and modules automatically. This can replace the existing code that > requires specifying a path to vmlinux or tries to find the vmlinux and > modules automatically by using the release number. Work it into the > script as a fallback option if the vmlinux isn't specified on the > commandline. One wish for the shell scripts: try to avoid bashisms as much as possible, please. -- With Best Regards, Andy Shevchenko