Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2061642rwl; Thu, 13 Apr 2023 00:45:54 -0700 (PDT) X-Google-Smtp-Source: AKy350aQ1arG+CKplPFzViGhW/mF2jS2WiDNesF3KzMvgPoDU/nh2hDuZwzEIM5GG9JO1x7twCnn X-Received: by 2002:a17:906:ae42:b0:94c:8cd8:559d with SMTP id lf2-20020a170906ae4200b0094c8cd8559dmr1903091ejb.70.1681371954503; Thu, 13 Apr 2023 00:45:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681371954; cv=none; d=google.com; s=arc-20160816; b=b3o3ntRYcIvssh3dtI3iWRhVWigCcw4qdHQW0EcB3VY7WkRFYbInPRI5z2DBC/V7xE NF63g8NfiicTHeuEedF+VQ3AMofpZwUxELaoUyW4tPAzeBPAJ+DlcyMtNLdYDikn+SV9 u8gGlfSaWb+kbK87r2sOxpr7lWm9QzGDPpA3Ykn+WhGckyE4mFrsX5yV1bhz2Js1d5WN ANSXNcii6JGhw0crfjboQUH4vsr5UVp2BK3lWyumJOtX6TFam8O5HQ5o+HZcHJEnjJ8h osRtS/uBT5XgULFsPixYW4r92cvje4NIher/w+pnoHFzdGPcLVnb4RhslY8BRcU/ApOv QscQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:content-transfer-encoding :in-reply-to:from:content-language:cc:to:subject:user-agent :mime-version:date:message-id:dkim-signature:dkim-filter; bh=8dEyPEwXKxBUieX+Qihco0jNrXZiJPC2PsDaemkKwmI=; b=EAur4qLi6MtQbmnOmi67J8L/CnTw6xjjQCKd0bpJN5eYOLT5OH9w2Hz8EgXo2rayG3 x1o8J8wzx1rWMXkUkaMXs8nt+rGhdmeEPQXgy04g0BZuAv116kIy4wekgOZa2SHWVvVZ /diP3fGhQHYDZ0ZJrGeR241S1G+g965wDzFtGBoQ5qILVzfVn8CUtk/Yqcrjqw1dE8IK L/EQbAklab/0blAduNjs6BRKlPv7mJfDXazAwfFziz0Hiu1XgMz7iR9r/hvjskhsIWoN ZtiAl33QzBU0o+Q6OinXc8Rv09IqCIK86Tql25+tHGkY44+7XkSByIZ609c4NeLjjtPL jG5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Iu2BHwyU; 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=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l4-20020a170907914400b0094e3dbde3cdsi1154230ejs.178.2023.04.13.00.45.30; Thu, 13 Apr 2023 00:45:54 -0700 (PDT) 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=@samsung.com header.s=mail20170921 header.b=Iu2BHwyU; 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=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229642AbjDMHou (ORCPT + 99 others); Thu, 13 Apr 2023 03:44:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229797AbjDMHoo (ORCPT ); Thu, 13 Apr 2023 03:44:44 -0400 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11F475FC6 for ; Thu, 13 Apr 2023 00:44:43 -0700 (PDT) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20230413074440euoutp024ad45522b1d9b3d51b08bac82936be11~VbtErF4C22907529075euoutp02G for ; Thu, 13 Apr 2023 07:44:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20230413074440euoutp024ad45522b1d9b3d51b08bac82936be11~VbtErF4C22907529075euoutp02G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1681371880; bh=8dEyPEwXKxBUieX+Qihco0jNrXZiJPC2PsDaemkKwmI=; h=Date:Subject:To:CC:From:In-Reply-To:References:From; b=Iu2BHwyU85OQ6xuKXR2/JSFEZUBYA1hB1L0sMfUwmcALzgjgWfQF4YpAmHAO6PfTt cGLASrZ2RE0rG8QApIfDHv0JZVQ3Rs/z2IGwubVWIYl8kmrlUgRUHFMfiIOdlJnJGg XDQgOLph69PTDxx2yfKLJwssM+DO4r6Aig69ACXU= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20230413074440eucas1p180d95f85f5407be3e0243f652227f566~VbtEcTUcg1707617076eucas1p1N; Thu, 13 Apr 2023 07:44:40 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 3C.FE.09503.8E2B7346; Thu, 13 Apr 2023 08:44:40 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20230413074439eucas1p25d23761c3300b53b160cc0120745a06b~VbtECdTUS1804818048eucas1p2U; Thu, 13 Apr 2023 07:44:39 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230413074439eusmtrp2afe266260441473188b84258d13b8ceb~VbtEBsrIZ1217012170eusmtrp2A; Thu, 13 Apr 2023 07:44:39 +0000 (GMT) X-AuditID: cbfec7f2-e8fff7000000251f-12-6437b2e8c5b3 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 5A.6C.34412.7E2B7346; Thu, 13 Apr 2023 08:44:39 +0100 (BST) Received: from CAMSVWEXC02.scsc.local (unknown [106.1.227.72]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20230413074439eusmtip264495d35b3c5abf2b24f9e7e2405ad92~VbtD400K_1422914229eusmtip2p; Thu, 13 Apr 2023 07:44:39 +0000 (GMT) Received: from [192.168.8.209] (106.210.248.243) by CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 13 Apr 2023 08:44:38 +0100 Message-ID: Date: Thu, 13 Apr 2023 09:44:38 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v2] scripts/gdb: use mem instead of core_layout to get the module address To: Luis Chamberlain CC: , , , , , Florian Fainelli Content-Language: en-US From: Pankaj Raghav In-Reply-To: Content-Transfer-Encoding: 7bit X-Originating-IP: [106.210.248.243] X-ClientProxiedBy: CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) To CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnleLIzCtJLcpLzFFi42LZduznOd0Xm8xTDOZt5LX49e4Iu8W9mzeZ LU51b2ayuLxrDpvFjQlPGS2OL//L5sDmsXPWXXaPTas62Ty2n5zE5PF5k1wASxSXTUpqTmZZ apG+XQJXxuWZ25gKtvJUHPr7gb2BcTlXFyMnh4SAicT1m1sZuxi5OIQEVjBK3Hj5lwnC+cIo sXD9N1YI5zOjxOyN15m7GNnBWpY6QISXM0r8bHnECjIJrKZrZxxEYjejxLxrDWAJXgE7iSPH WhhBbBYBVYlTMzcyQsQFJU7OfMICYos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YuQECstIbPxylRXCFpb4c62LDaLoI6PE z+OrmSGc3YwSF19MYgOp4hWwkzhyrAWsm0VAVeLUzI2MEHFBiZMzn7CA2KICURKfD7Swg9jC AvESO+5PAdsgIqAhsW9CLxPIUGaB1YwSfzrWs8Jt+NjVwwRSxSwgLnHryXwgm4ODTUBLorET bBCngJnEveufoUo0JVq3/2aHsOUltr+dwwxSLiGgLNF+QAHim1qJz3+fMU5gFJ2F5LxZSBbM QjJpFpJJCxhZVjGKpJYW56bnFhvpFSfmFpfmpesl5+duYgTG6bZjP7fsYFz56qPeIUYmDsZD jBIczEoivD9cTFOEeFMSK6tSi/Lji0pzUosPMZoCw2gis5Rocj4wUeSVxBuaGZgamphZGpha mhkrifN6FnQkCgmkJ5akZqemFqQWwfQxcXBKNTD1NJ7hZ29f/UXaMTWP81hvTqvu1XlPz8+T 85X8Ghv5VW9G/MZwpmwucdVDzfp9/Rbujkeif+0zZnT4U/Lszc6oOdeEpxS5tv/dqfvY/5x6 dshpVsNFDy3CepVqbJ8f4lGqEJE+et9twVKr03IMDwzCMrUXVm96/XqV7ry8dUf6vkptmXJg Z+592UcR0yvmlN95qHwsy+azSetTXfVH5ktO7NTYqGSuMyF6jsH9xm+rFbVKGdatY+5Z7p5+ eo1SxokQ5fjJf9h/Zszz543qvKAa4Fs/c94f46VzP86O3bPr1519+48/u1YozZ36dlGR+IWS N9mmUzdOvNAtln3L/1aGessGT8tvvX8uxOmtUz6kxFKckWioxVxUnAgAkan+KFwDAAA= X-CMS-MailID: 20230413074439eucas1p25d23761c3300b53b160cc0120745a06b X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20230412203420eucas1p2efd38df12efde2ca05c6b3a26f5a753b X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20230412203420eucas1p2efd38df12efde2ca05c6b3a26f5a753b References: <20230412202516.1027149-1-p.raghav@samsung.com> X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS,URIBL_BLOCKED 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 On 2023-04-13 02:53, Luis Chamberlain wrote: > On Wed, Apr 12, 2023 at 10:25:18PM +0200, Pankaj Raghav wrote: >> commit ac3b43283923 ("module: replace module_layout with module_memory") >> changed the struct module data structure from module_layout to >> module_memory. The core_layout member which is used while loading >> modules are not available anymore leading to the following error while >> running gdb: >> >> (gdb) lx-symbols >> loading vmlinux >> Python Exception : There is no member named core_layout. >> Error occurred in Python: There is no member named core_layout. >> >> Replace core_layout with its new counterpart mem[MOD_TEXT]. >> >> Fixes: ac3b43283923 ("module: replace module_layout with module_memory") >> Signed-off-by: Pankaj Raghav >> --- >> scripts/gdb/linux/constants.py.in | 3 +++ >> scripts/gdb/linux/modules.py | 4 ++-- >> scripts/gdb/linux/symbols.py | 4 ++-- >> 3 files changed, 7 insertions(+), 4 deletions(-) >> >> diff --git a/scripts/gdb/linux/constants.py.in b/scripts/gdb/linux/constants.py.in >> index 36fd2b145853..471300ba176c 100644 >> --- a/scripts/gdb/linux/constants.py.in >> +++ b/scripts/gdb/linux/constants.py.in >> @@ -62,6 +62,9 @@ LX_GDBPARSED(hrtimer_resolution) >> LX_GDBPARSED(IRQD_LEVEL) >> LX_GDBPARSED(IRQ_HIDDEN) >> >> +/* linux/module.h */ >> +LX_GDBPARSED(MOD_TEXT) > > Should we just fill in the rest of the other sections too while at it? > I don't see them used in the scripts. Maybe we can add them when needed? > Luis