Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4843418ybi; Tue, 28 May 2019 03:29:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqy8V0elDJ0Zxp55Kgo0eYJzEgP6EvxMxenUkWkLIaMDBrPl00D1zelSa1A86kLcar+6wdAc X-Received: by 2002:a63:1b65:: with SMTP id b37mr262624pgm.408.1559039392769; Tue, 28 May 2019 03:29:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559039392; cv=none; d=google.com; s=arc-20160816; b=UDbG9LQIrBY9joghenqCTF0ajvOkF+hUMlsJ4IkIrG7060YL90qDUqsmrxdnI8hTB+ TxmDBFQWGcHUHb8P7X2pOifegiZYCn/g45z7EX3HU/DeokHTgGY2VtXKKPWmzqnBge4Y SWDkbOxtz+xf16g38lGqoZN7j1uyyTlTq1oyKRK0tQyjAc4o/OiBJSWBcXkYvCP9T+lg 4zb5Ff/FsHwB2kSI6ZML87D49zpmPtsNLZ2E0ftPNhrzv7jOXtkgY+DzX6WKB3iX/L7A xUqIhCa++VHHGCb6+lUemncvZAcVv1tp0bff1u5n5oQNy7f9VWzHcRsm54pbzbafFxsr j3bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=xz9jNowfVrFFO0jkhxu7a5SO0l+Nom3Gou3ZN0J7IBc=; b=hZgcX9zblaJeeWdWYjY63qCJVBkYxll5sxEzd+QXapHWeHzDp4CTTrpwUub+4p0Zii nW+24Ujw0JkTuQNRUiBF961I7ow7CG3RFQ0PhUmVRF8zgkNIytxRruxobIQG65yx6L1n zqffPUVC3p5UsY93qdKOJZfTm5ENTAWEivf8XyQHxPq3hEOWUpAcFCSpcnQmGyQLx+F/ 6EEZ4onwQsK0t7u8jSSr0MoXgTJYXs3MBfMjJjbLFxmUlZBXfwh9OCJl3EkDt7m9wsAv 4Qh95FAm0NVkLpRquFz5AQ01d+h/HBYnBb79uV7lhDDVWh6U26yIL1KtOg8DY8FXGGKw ItBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LVkQuv+d; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id a22si24425654pfa.170.2019.05.28.03.29.37; Tue, 28 May 2019 03:29:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LVkQuv+d; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726511AbfE1K2c (ORCPT + 99 others); Tue, 28 May 2019 06:28:32 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:43863 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726203AbfE1K2c (ORCPT ); Tue, 28 May 2019 06:28:32 -0400 Received: by mail-qk1-f193.google.com with SMTP id m14so2680443qka.10 for ; Tue, 28 May 2019 03:28:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xz9jNowfVrFFO0jkhxu7a5SO0l+Nom3Gou3ZN0J7IBc=; b=LVkQuv+d4Z61jVunAcuoZBohB1dIA1Agnfvadw94zwI2iH3GEX56rrnbOXmuC8Cd9R DwFKjSQiWb7xDz/iDu/9PwmwsG4MnzJO9WV2NnpH0Ktg4LBopjzGKClOYbrC+TXMbdr2 YknJlnHh3lIFmTYLr8J6FsfB19zBRr3tLjc5w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xz9jNowfVrFFO0jkhxu7a5SO0l+Nom3Gou3ZN0J7IBc=; b=tv0H9b0rbEBq680qmUla+m0Ymvo2+t211QFiX1+/IZ3jNWhSBdDWLkq01Xkdgt3W43 fwffe+3iVgsx03fAjmXElJPCefAdkE/Zz42DWtFK/qiqTInebZY3XdBGnpd2k4szMUbc SlO0lJ7lhhCR2gaMfu0mUf9Su0lgXS8knDEm6GOOOV98Plaa9viLq+/VfDAr4G5zGSHN zvsnKph55BlQYxHdhlz/v/ESE3HAN1KvbcubBy40JmN4cglOlFbai4wel5S7Dn9jqvuS McJ4L0LKwkL5m8w/ChqOTUb73rSMyIrrVB0EggQa9ZJd6mBFWJdIp7PsY/gKUceLZYBL zj6A== X-Gm-Message-State: APjAAAW9UVC88xAhDvYft/dpoqV0FlaFBY9clmBKEbK0dNtGo6McIYdT obzxQ+SHkmzQrrjWzK/dmWMmSIHzOAvxG+Y8h75mTA== X-Received: by 2002:a0c:e849:: with SMTP id l9mr1816939qvo.3.1559039311418; Tue, 28 May 2019 03:28:31 -0700 (PDT) MIME-Version: 1.0 References: <20190521234148.64060-1-drinkcat@chromium.org> <11be5350-23db-6216-3c2b-1d8b161cac9b@yandex-team.ru> In-Reply-To: <11be5350-23db-6216-3c2b-1d8b161cac9b@yandex-team.ru> From: Nicolas Boichat Date: Tue, 28 May 2019 18:28:20 +0800 Message-ID: Subject: Re: [PATCH] scripts/decode_stacktrace: Look for modules with .ko.debug extension To: Konstantin Khlebnikov Cc: Andrew Morton , Marc Zyngier , lkml Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 28, 2019 at 4:38 PM Konstantin Khlebnikov wrote: > > On 22.05.2019 2:41, Nicolas Boichat wrote: > > In Chromium OS kernel builds, we split the debug information as > > .ko.debug files, and that's what decode_stacktrace.sh needs to use. > > > > Relax objfile matching rule to allow any .ko* file to be matched. > > > > Signed-off-by: Nicolas Boichat > > --- > > scripts/decode_stacktrace.sh | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/scripts/decode_stacktrace.sh b/scripts/decode_stacktrace.sh > > index bcdd45df3f5127a..c851c1eb16f9cf7 100755 > > --- a/scripts/decode_stacktrace.sh > > +++ b/scripts/decode_stacktrace.sh > > @@ -28,7 +28,7 @@ parse_symbol() { > > local objfile=${modcache[$module]} > > else > > [[ $modpath == "" ]] && return > > - local objfile=$(find "$modpath" -name $module.ko -print -quit) > > + local objfile=$(find "$modpath" -name $module.ko* -print -quit) > > Ok but should be quoted "$module.ko*" or escaped $module.ko\* Thanks for noticing, will send a v2 right away. > > [[ $objfile == "" ]] && return > > modcache[$module]=$objfile > > fi > >