Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3515296pxb; Fri, 11 Feb 2022 01:20:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJxLmFn6s/jS7REGzs7LjJwyi9+Fdl2n6ptMV/f4XPblsum+3jTHVGCAnS11diom/TPuKNzK X-Received: by 2002:a17:906:b848:: with SMTP id ga8mr604334ejb.268.1644571248559; Fri, 11 Feb 2022 01:20:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644571248; cv=none; d=google.com; s=arc-20160816; b=fZP50oy6ymAwXoeG+J6yHkxn1dozdK0F/yOnSGaU5yloi3T+JaJbQix/sAh1gxJKT0 hFFkfel44o93vh3ifvHogCP8F1mkP3OhkhywShacUt4JH3lewvYIWdzw5rJl4SywZUcY mEPQpOQub7ES/03MtbxgsPlyZEZHkTBHtD67X04xatfLJTJz1RzdC6XivLmkIm5uHCxx vQykkOp9yEfBzXfpzmbpKr8nUYlTDKPhHHAcUkOayjitONA5n2anysCFgAu6iw72f8LX s38pb95keYeUYiCwFfKonDnrOq+UvJjxBaP9KHZ+M60uBUhlrvQD85QDG7JGlBAWtinO icaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=BkYzQovnG+JzphAeX+hFVWJIG/IX9DACKj6/sgTk7o0=; b=hJCW7XymN3n0/gSLeRnEjNZlRjOBlKnmy+8ws4pJG4eWDDUHAFw7h74kg/ze+Gukx2 DMwoKBltxd8m3sk2AGcctowHd48Z+oJdrLOJa8hx7mD9S17/tgQm9RkcsFRRFCuQ1M0e jNL0jdEGdVG9003STY45OWFbU9s/yH2GSacYpy7M2Qnq5B3DtXJWpRDbFDAud/6rSmRp cCV8xfmqvXcLYsXLJXrKGL5wBnU9CUQvHtKWeFkXOkgZoi82BBcOjEd55gRKfcFxQ1rw JgwyJatkqKeruExsqIgzYdbDM9jxHEsPLyNZ0dQOhMmTiASKqMK+058hDAweK5KGRm5K As4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UzbSBoVT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id js20si16399668ejc.37.2022.02.11.01.20.23; Fri, 11 Feb 2022 01:20:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UzbSBoVT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234619AbiBKDb6 (ORCPT + 99 others); Thu, 10 Feb 2022 22:31:58 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:48794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbiBKDb4 (ORCPT ); Thu, 10 Feb 2022 22:31:56 -0500 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE2CC2710 for ; Thu, 10 Feb 2022 19:31:55 -0800 (PST) Received: by mail-ej1-x635.google.com with SMTP id fj5so17047980ejc.4 for ; Thu, 10 Feb 2022 19:31:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BkYzQovnG+JzphAeX+hFVWJIG/IX9DACKj6/sgTk7o0=; b=UzbSBoVTO1UhTNtbIB9ffqqKPbxthw1paA3sOvjM4IHI+jwp/Z68ta50UwDawkXGCO ptdkbIDpmnXS1LZrTmW6tPZsPtuMrRHiXw7Eu6DMl5+4LWbjn+UObXaGINSfD5VhOG3x QLwoz1tLndJpq2njEhH2i5khZrbZrEIxmToQz0DF8chUtnmi7zE8L3axpEOp+doclGEZ gFjsgLs7H8Yr4o7XAUC/6OYOJxRbSqcAtmdY7tWzoliNNui01jEXw/RqiY1kmMB700U5 AvbTFx0PAh5NjKlWA55EF2X9lp6L76klEla/NbWNe8D5ZIrG1BZI+7GssyUfeuPHZ20D INtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BkYzQovnG+JzphAeX+hFVWJIG/IX9DACKj6/sgTk7o0=; b=EwXJ+FAi+3wRnMoXX9TYRB+XdWKszuauyT6lBL9S/asq6//ombMYzk/ChJDySBLciV AXnCW7tJL3fTbGm7loqeCAMMNhrRVY8uKAP9JdMfyo69K8vCe+n3rU6C5JvVxDW44+PM ggvLocdg3wP9KeTuUFrJVJiHckkBEiISHUjyHJdTpjtNKCYIKkYlhybqfZnUhHC9YrkO Ch2t8J17K3HOeV4dCkKiU/0URiGR9d5CQSAxf71nPVJaFBMTodNkEtOzwj3wJujyA8W3 X20pE1422WT4rqtkY3f61x7vDvii2Y2ANpbVO3S3voXqx0Mvap3uKb7hrsk36dWWLRJH S60Q== X-Gm-Message-State: AOAM533f/XwISg+SppmVTG77tY8Gcwv96YMFVnai2ntsqx77SVWJi9UD HcLobWulHjb0U94QQ3fu3y7Qk78fA5OFMcSQ6B3MZReIsNkM0A== X-Received: by 2002:a17:907:2d0e:: with SMTP id gs14mr8575241ejc.225.1644550314463; Thu, 10 Feb 2022 19:31:54 -0800 (PST) MIME-Version: 1.0 References: <20220117194836.vj2rxr3wocrtdx7k@treble> <20220117202751.bmwvfsnqxokob6d2@treble> <20220118175239.lqxi2ycgeusk5pxl@treble> <20220119212126.aydgx62abbngumwy@treble> <20220119234303.tmebbcrg2vpnri4s@treble> <20220120171751.gibauc4zovoskjns@treble> <20220206202859.butmvavyw3tce4hs@treble> In-Reply-To: From: Kaiwan N Billimoria Date: Fri, 11 Feb 2022 09:01:38 +0530 Message-ID: Subject: Re: Issue using faddr2line on kernel modules To: Josh Poimboeuf Cc: Linux Kernel Mailing List , Chi-Thanh Hoang Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It works ! $ .../linux-5.10.60/scripts/faddr2line ./oops_tryv2.ko do_the_work+0x124 do_the_work+0x124/0x15e: do_the_work at .../oops_tryv2.c:62 $ Will you now upstream this patch? Thanks! On Mon, Feb 7, 2022 at 7:53 AM Kaiwan N Billimoria wrote: > > On Mon, Feb 7, 2022 at 1:59 AM Josh Poimboeuf wrote: > > > > On Fri, Jan 21, 2022 at 01:35:13AM +0530, Kaiwan N Billimoria wrote: > > > > Try this one? > > > > > > Definitely better ! > > > This is the o/p i now get: > > > > > > $ <...>linux-5.10.60/scripts/faddr2line ./oops_tryv2.ko > > > do_the_work.cold+0x68/0x126 > > > do_the_work.cold+0x68/0x126: > > > delay_sec at <...>/oops_tryv2/../../convenient.h:279 > > > $ > > > > > > The source file+line-no doesn't show up here though... (as it's a foo.cold()?). > > > (I'm unsure why the line delay_sec at <...>convenient.h:279 shows up > > > ; i don't call this delay_sec() func directly... anyway, that's my > > > problem.) > > > > Hm... do you get the same result with addr2line? > > addr2line works correctly. > And, so does the patched faddr2line, when i tried it out now on > another VM! Lemme check some more and get back, thanks. > - Kaiwan. > > > > > > -- > > Josh > >