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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 043A4C433EF for ; Sat, 11 Jun 2022 09:40:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qGQA9vEhbvFHpjgVUPz87ile3CUz89xZypOo5sZ5+94=; b=IEOnuzVBxWWw1g sW1GF0L3stID5e6Sycq371DyxOAKAV0BADg/5bJC8lxaOUhM97NaWCxgZ6pfQ9qJ2L5lJAM85q1My pK0+08lT1eMV/XO+PCU1FO3mKSHeVQ++nZa8hCy8+9is78zBm53QqaKMklK1XuDa4EzHD+tyaPSOa dUh0lCHfA4hiqUK1skUq5H3ybgL7YTJtfpo8F1iO4FN/A1q5uKnIPysCszKAR97O5iri8vdH8OT7C rFQsTFCU7Cc53M1R0kkNumug7UyBfsz76HJ6ppNHygIP63qed8rCitvfSRToSYnM1suKbk6jvgFAP lABySWVm/xsmgbJuMoIQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzxZp-00CIP1-PQ; Sat, 11 Jun 2022 09:38:41 +0000 Received: from conssluserg-04.nifty.com ([210.131.2.83]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzxZm-00CIMk-3a; Sat, 11 Jun 2022 09:38:40 +0000 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (authenticated) by conssluserg-04.nifty.com with ESMTP id 25B9cJBC004953; Sat, 11 Jun 2022 18:38:20 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com 25B9cJBC004953 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1654940300; bh=dvQLqE9CD0Sc31TfKaAdiORJwqPYnVIClrdVtOr8MuU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=VQRRIgL3RaBwbAb8zlsjU/+y8z7S4bPBtkzV2F3eoVaSN2nqeiiouM3JjXiSZwPif QrU11WA67/+x5QVZKqO8abfFxTxi9/K0zSLaujSd+f0t9XdHrKR/d7soaLwqc9mtUl zNc9BaGaqIYr6DKiwp2p/YpKKy0QHEPfqfnbod0wI16QgGPIr6geIpNmJFNSoFKuZM DjMhbcVfKcy+XPHyM64ao1YZQDhOzSRP+h36+NzP1yHrB8i30j94oXxeWyIeWGCkDK hsQrBwU71+Mpny5s4+LmQyQCQ9CwvHcxbq557kQmVmb1FWMcQJuNpv5LAdwyOPmXqu a9b28AwXa41qA== X-Nifty-SrcIP: [209.85.128.50] Received: by mail-wm1-f50.google.com with SMTP id l2-20020a05600c4f0200b0039c55c50482so2219814wmq.0; Sat, 11 Jun 2022 02:38:19 -0700 (PDT) X-Gm-Message-State: AOAM5316sSd7Mi1Qr3SZ5k67/uM7eDaK7o5HmnDpcu5C/9tigDLwHxSh zT4n/MKZh/Rmi3ZCAdaOZhYnWYy5FnTYlZj8y94= X-Google-Smtp-Source: ABdhPJzZVNw7ql3vh1nekhMh6vBUEJO0ZE52meBw8QyxqYw1a6qL2nlFf1hcJ8FXJAo3pYzjIBY6d+gFSFhDl6mYWUo= X-Received: by 2002:a05:600c:35c2:b0:39b:fa1f:4f38 with SMTP id r2-20020a05600c35c200b0039bfa1f4f38mr4083537wmq.22.1654940298310; Sat, 11 Jun 2022 02:38:18 -0700 (PDT) MIME-Version: 1.0 References: <20220610071500.9656-1-Kuan-Ying.Lee@mediatek.com> In-Reply-To: <20220610071500.9656-1-Kuan-Ying.Lee@mediatek.com> From: Masahiro Yamada Date: Sat, 11 Jun 2022 18:37:41 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] scripts/gdb: change kernel config dumping method To: Kuan-Ying Lee Cc: Jan Kiszka , Kieran Bingham , Matthias Brugger , Andrew Morton , chinwen.chang@mediatek.com, nicholas.tang@mediatek.com, casper.li@mediatek.com, andrew.yang@mediatek.com, Linux Kernel Mailing List , linux-arm-kernel , "moderated list:ARM/Mediatek SoC support" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220611_023838_400487_995B148C X-CRM114-Status: GOOD ( 16.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Jun 10, 2022 at 4:15 PM Kuan-Ying Lee wrote: > > MAGIC_START("IKCFG_ST") and MAGIC_END("IKCFG_ED") are moved out > from the kernel_config_data variable [1]. > > Thus, we parse kernel_config_data directly instead of considering > offset of MAGIC_START and MAGIC_END. > > [1] https://lore.kernel.org/lkml/1550108893-21226-1-git-send-email-yamada.masahiro@socionext.com/ > > Fixes: 13610aa908dc ("kernel/configs: use .incbin directive to embed config_data.gz") > Signed-off-by: Kuan-Ying Lee Thanks for the fix. Applied to linux-kbuild/fixes. > --- > scripts/gdb/linux/config.py | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/scripts/gdb/linux/config.py b/scripts/gdb/linux/config.py > index 90e1565b1967..8843ab3cbadd 100644 > --- a/scripts/gdb/linux/config.py > +++ b/scripts/gdb/linux/config.py > @@ -24,9 +24,9 @@ class LxConfigDump(gdb.Command): > filename = arg > > try: > - py_config_ptr = gdb.parse_and_eval("kernel_config_data + 8") > - py_config_size = gdb.parse_and_eval( > - "sizeof(kernel_config_data) - 1 - 8 * 2") > + py_config_ptr = gdb.parse_and_eval("&kernel_config_data") > + py_config_ptr_end = gdb.parse_and_eval("&kernel_config_data_end") > + py_config_size = py_config_ptr_end - py_config_ptr > except gdb.error as e: > raise gdb.GdbError("Can't find config, enable CONFIG_IKCONFIG?") > > -- > 2.18.0 > -- Best Regards Masahiro Yamada _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel