Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1222569ybh; Thu, 23 Jul 2020 03:41:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmkLSr/wR+S1Aloy+NThsuBi3A1qK8SbSwObdREia13jV3O47EhLwwRr+AQvb6SPE7yOzR X-Received: by 2002:a17:906:fcba:: with SMTP id qw26mr3670534ejb.112.1595500909394; Thu, 23 Jul 2020 03:41:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595500909; cv=none; d=google.com; s=arc-20160816; b=lf8yy9iPBLXWkkjVRdpYigZ4CaAWgCSvLghwOy/GHZNebZWFbNt6uENnoRdOVNtiyQ BSXWgQ8hv7d6z+DbmhsYqDLtWVwmW1RNbj0aheDQzNaly9qJHO0Uo8vXZcMD5m0i/iSZ wgOqkpMZIDI2s8qw1NxyrIzguEZJZidHqYp/Q+8LXILyXKmkBzH/KbwGj0wsob9E1Dzl Wb8ArwheVpeSYZPo1MHMsxSgLWoJ/ObSPhp7Em2ARHf7WcjqYRasF2tSTbSCnhuqlECN ALi4hW+rnO6psasnp++Z6R9meNhXRoxXDHwJ0+Oyiw21W0bv+GqOtK+BMewl1qiUy0Yw yj2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:to:subject:reply-to :dkim-signature; bh=Vy3XsUwdzygm547k0Wup/nqkjEH88ijB/+IkImR9J0Y=; b=mI0WOlaDIBjcxmC/m876PhzyEoq2Ok+W6r7GAjCLdrf6pXcNA8Q28LQRDrywladIOW Hlr3tqJ4+uESzcmN+XAnWLAW1Xy3mh3Dg+opm2ndh0cxE2ui6a1uo8EcKW2f+slQD63U 9DJZJUqrdYXFZwRWRsHrVWGjpvqmrVjYSjGyhJfv+rqHYyGH80WzVbQfg3m0/6VaBEtP utADzB+zgxvmS9Hv+4TLecHdHZa/Gn2ixjUcGqFQmbDqE0Xn5oixc25XW15J36mGyMDk TdRVKrpcHp6A1/ZrV/GBcA1y9XN24zT/247n2RNVfLCIkkpRmCdamNz7jWO8TuV2H06H ECXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=N0iuaU+l; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h16si1751605ejx.446.2020.07.23.03.41.25; Thu, 23 Jul 2020 03:41:49 -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; dkim=pass header.i=@kernel.org header.s=default header.b=N0iuaU+l; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728254AbgGWKjJ (ORCPT + 99 others); Thu, 23 Jul 2020 06:39:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:37972 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726867AbgGWKjI (ORCPT ); Thu, 23 Jul 2020 06:39:08 -0400 Received: from [192.168.0.20] (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 24F7620737; Thu, 23 Jul 2020 10:39:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595500747; bh=apvuZXcE3NwSq8Rub1Rf3Pf5mgh3zdcbbQk5pgSXCaw=; h=Reply-To:Subject:To:References:From:Date:In-Reply-To:From; b=N0iuaU+lyfIjjT31c9L8+skrMoJzTO/uESoDm2zeYCONnGxJXS7h6ETI5ZlMTtTZC 0PLJ+Na7DWHdRB4OXtLgVWQKMMHVq218SkhHgV5n/giKOXfDb2+m3mZZBKGLxsTHfF LyvF2cxcLBrp1AHR0EukcQS9Z1X1JEGiADe+d1qM= Reply-To: kbingham@kernel.org Subject: Re: [PATCH] scripts/gdb: fix lx-symbols 'gdb.error' while loading modules To: Jan Kiszka , Stefano Garzarella , linux-kernel@vger.kernel.org, Andrew Morton References: <20200722102239.313231-1-sgarzare@redhat.com> <418f0953-1815-1844-e3f5-a11f2a5eaf33@siemens.com> From: Kieran Bingham Autocrypt: addr=kbingham@kernel.org; keydata= mQINBFYE/WYBEACs1PwjMD9rgCu1hlIiUA1AXR4rv2v+BCLUq//vrX5S5bjzxKAryRf0uHat V/zwz6hiDrZuHUACDB7X8OaQcwhLaVlq6byfoBr25+hbZG7G3+5EUl9cQ7dQEdvNj6V6y/SC rRanWfelwQThCHckbobWiQJfK9n7rYNcPMq9B8e9F020LFH7Kj6YmO95ewJGgLm+idg1Kb3C potzWkXc1xmPzcQ1fvQMOfMwdS+4SNw4rY9f07Xb2K99rjMwZVDgESKIzhsDB5GY465sCsiQ cSAZRxqE49RTBq2+EQsbrQpIc8XiffAB8qexh5/QPzCmR4kJgCGeHIXBtgRj+nIkCJPZvZtf Kr2EAbc6tgg6DkAEHJb+1okosV09+0+TXywYvtEop/WUOWQ+zo+Y/OBd+8Ptgt1pDRyOBzL8 RXa8ZqRf0Mwg75D+dKntZeJHzPRJyrlfQokngAAs4PaFt6UfS+ypMAF37T6CeDArQC41V3ko lPn1yMsVD0p+6i3DPvA/GPIksDC4owjnzVX9kM8Zc5Cx+XoAN0w5Eqo4t6qEVbuettxx55gq 8K8FieAjgjMSxngo/HST8TpFeqI5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rMMq9aUAjyiaEZpmP1qF/2sYenDx0Fg2BSlLvLvXM0vU8pQk3kgDu7kb/7PRYrZvB sr21EIQoIjXbZxDz/o7z95frkP71EaICttZ6k9q5oxxA5WC6sTXcMW8zs8avFNuA9VpXt0Yu pJd2ijtZy2mpZNG02fFVXhIn4G807G7+9mhuC4XG5rKlBBUXTvPUAfYnB4JBDLmLzBFavQfv onSfbitgXwCG3vS+9HEwAjU30Bar1PEOmIbiAoMzuKeRm2LVpmq4WZw01QYHU/GUV/zHJSFk Message-ID: Date: Thu, 23 Jul 2020 11:39:03 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <418f0953-1815-1844-e3f5-a11f2a5eaf33@siemens.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi All, On 23/07/2020 11:25, Jan Kiszka wrote: > On 22.07.20 12:22, Stefano Garzarella wrote: >> Commit ed66f991bb19 ("module: Refactor section attr into bin >> attribute") removed the 'name' field from 'struct module_sect_attr' >> triggering the following error when invoking lx-symbols: >> >>    (gdb) lx-symbols >>    loading vmlinux >>    scanning for modules in linux/build >>    loading @0xffffffffc014f000: linux/build/drivers/net/tun.ko >>    Python Exception There is no member named name.: >>    Error occurred in Python: There is no member named name. >> >> This patch fixes the issue taking the module name from the 'struct >> attribute'. >> It might not be needed if this gets in to v5.8 in time, but perhaps: Fixes: ed66f991bb19 ("module: Refactor section attr into bin attribute") >> Signed-off-by: Stefano Garzarella Otherwise, also looks fine to me. Reviewed-by: Kieran Bingham >> --- >>   scripts/gdb/linux/symbols.py | 2 +- >>   1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/scripts/gdb/linux/symbols.py b/scripts/gdb/linux/symbols.py >> index be984aa29b75..1be9763cf8bb 100644 >> --- a/scripts/gdb/linux/symbols.py >> +++ b/scripts/gdb/linux/symbols.py >> @@ -96,7 +96,7 @@ lx-symbols command.""" >>               return "" >>           attrs = sect_attrs['attrs'] >>           section_name_to_address = { >> -            attrs[n]['name'].string(): attrs[n]['address'] >> +            attrs[n]['battr']['attr']['name'].string(): >> attrs[n]['address'] >>               for n in range(int(sect_attrs['nsections']))} >>           args = [] >>           for section_name in [".data", ".data..read_mostly", >> ".rodata", ".bss", >> > > Reviewed-by: Jan Kiszka > > Thanks, > Jan > -- -- Kieran