Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp2377666ybm; Thu, 23 May 2019 16:13:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEArtBzqLLyZU/A/ErkGg+igEwlGTg3xw7p80JN5kOeEFqe1ZrDUqzDENKw3EOYcGN4XZ9 X-Received: by 2002:a62:3145:: with SMTP id x66mr82542444pfx.223.1558653205617; Thu, 23 May 2019 16:13:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558653205; cv=none; d=google.com; s=arc-20160816; b=GOtI3WTQxC1GyuGimn4z25q6Q1g8u2otZSGGS9ypAR9mM2oe18+/ZF6RoA+KRPrX06 s0OyvSHpya+qDsZrq7cm4fZiQOJZmko3WVcnqSi0+sGb8+RB/PNabbcSn1P830BIAtjj XRwREg8DXmksQLEpwAa5Z5yFF6XDDPiEdMqWU2SDpoIlleYjnzybZIqb8vUyIo31LuFy af2PXxsh1f/koNZC1WOIOGBPNQt+CEnAa/7q452FQeNeMKWVattxSRTDBgBjIshEimxL p2CNgQjnlzE8ZOJZeEJjIEkgPftPaJcSGUxrRubxZunaPP3OmRHy3ivL+76v/5Z7g++b DlfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:references:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=SSpLH9TddFeBxsJrHSjBfJSeah4jTYTNmw3N/iOI7p0=; b=araJ63w9F/wZnt6a0Nnq26atvqFhVw8r8mP6a35+TwJEk+r/B5ZCSg57zJBPN72xoU /NALKFZFzX54ZEtfBwnONVLNN9gGJbG0runDPhW0aXYMJFziBN0kD+kqIriPGw/0FN2i EUDxr4VM+8vjGMn/ANx/6enXUsKEJpiVAfSO+F+gUWnbLs/2WK/nETQ5cJbKGwMbnGBy xkHwBD2MLByvq7Oxl0PZxOkd5rpiMsfrvPFNk/KICQKWgiGlwyxeMHARPwx4lxdja/mf rEkFfpPbTOhgvcNF2chinXaYzOzAuwAY18XBI4ZhG0YUnSbnZjhwp/JQ9+NM43gdvpel 1OYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=HuJo8Da3; 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2si1661316pld.90.2019.05.23.16.13.06; Thu, 23 May 2019 16:13:25 -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=@nxp.com header.s=selector2 header.b=HuJo8Da3; 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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388521AbfEWXJY (ORCPT + 99 others); Thu, 23 May 2019 19:09:24 -0400 Received: from mail-eopbgr10059.outbound.protection.outlook.com ([40.107.1.59]:34438 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387705AbfEWXJX (ORCPT ); Thu, 23 May 2019 19:09:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SSpLH9TddFeBxsJrHSjBfJSeah4jTYTNmw3N/iOI7p0=; b=HuJo8Da3LuyU0t7/A0tU1AIYqvxfEJKtIvh5BgJWGBzXTXV707evy/JVTbADT7d6A8tq+2a5m6cJOAH24iztVC6Q/TNTeFaD/3kvgLebI2vLzPHgl/hnF2qGu2tiwouK1+N1/2pEgFw6AcIcFuRvCoI5jac3ZABm0mTJuiRpJuY= Received: from AM0PR04MB6434.eurprd04.prod.outlook.com (20.179.252.215) by AM0PR04MB6689.eurprd04.prod.outlook.com (20.179.255.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1900.18; Thu, 23 May 2019 23:09:19 +0000 Received: from AM0PR04MB6434.eurprd04.prod.outlook.com ([fe80::19be:75a:9fe:7cec]) by AM0PR04MB6434.eurprd04.prod.outlook.com ([fe80::19be:75a:9fe:7cec%7]) with mapi id 15.20.1922.016; Thu, 23 May 2019 23:09:18 +0000 From: Leonard Crestez To: Stephen Boyd , Fabiano Rosas CC: "linux-kernel@vger.kernel.org" , Jan Kiszka , Kieran Bingham , Andrew Morton , Jackie Liu Subject: Re: [PATCH] scripts/gdb: Fix invocation when CONFIG_COMMON_CLK is not set Thread-Topic: [PATCH] scripts/gdb: Fix invocation when CONFIG_COMMON_CLK is not set Thread-Index: AQHVEaEw3la++p0LyEyZRXi/xw4poQ== Date: Thu, 23 May 2019 23:09:18 +0000 Message-ID: References: <20190523195313.24701-1-farosas@linux.ibm.com> <5ce722ac.1c69fb81.b62d2.16d0@mx.google.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=leonard.crestez@nxp.com; x-originating-ip: [192.88.166.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: bf21954e-eeb7-42b1-acff-08d6dfd3af30 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:AM0PR04MB6689; x-ms-traffictypediagnostic: AM0PR04MB6689: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 00462943DE x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(39860400002)(346002)(366004)(136003)(396003)(199004)(189003)(25786009)(66556008)(66446008)(966005)(64756008)(110136005)(76176011)(446003)(4326008)(73956011)(71200400001)(71190400001)(91956017)(76116006)(6116002)(66946007)(33656002)(66476007)(478600001)(305945005)(3846002)(9686003)(53546011)(6306002)(7696005)(6436002)(55016002)(229853002)(14454004)(476003)(99286004)(53936002)(7736002)(68736007)(66066001)(486006)(186003)(6246003)(26005)(2906002)(256004)(81166006)(316002)(54906003)(44832011)(86362001)(8936002)(81156014)(52536014)(8676002)(5660300002)(6506007)(102836004)(74316002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB6689;H:AM0PR04MB6434.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: dpt3Kg89G0PTVJb8yjw/11r3N0JKhr9/mFW0NRp8UfmIlY+A/dVYHv5uwOauPrwPIwea1rM43YvO3Vg0lt/hzy5hvJl82BH94TBWjePfjoJQNEkD2McB/EEUws16i/ItBeVLOPFnh33N7ZRWYbnhtE2v4p4aVoEe0zIifaqFscplyrS/rwogGXaatobL/4d3NtLezzCLMRuLzUzTZiWj7z3ea1RB4mIl6nsRvxhfWHAYaSl2v5+j33LW2HkN5Bn21bP7t3juFb0xli8Hyti9n/lNbA68UBIvLvKgD6RmTNjMAUby7eBMxoiS80Vbe8n/Z2ktPUjSSt7lU+SbBbG+y+SelYsBNXd1PG16wlBWaU3AEj4cw2thSpjP/ZjDNotGd/VSiAjmHeksCPD9goCiHDxm9H822wKlz3r2hlq7yb8= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: bf21954e-eeb7-42b1-acff-08d6dfd3af30 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 May 2019 23:09:18.8221 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6689 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/24/2019 1:46 AM, Stephen Boyd wrote:=0A= > Quoting Fabiano Rosas (2019-05-23 12:53:11)=0A= >> diff --git a/scripts/gdb/linux/constants.py.in b/scripts/gdb/linux/const= ants.py.in=0A= >> index 1d73083da6cb..2efbec6b6b8d 100644=0A= >> --- a/scripts/gdb/linux/constants.py.in=0A= >> +++ b/scripts/gdb/linux/constants.py.in=0A= >> @@ -40,7 +40,8 @@=0A= >> import gdb=0A= >> =0A= >> /* linux/clk-provider.h */=0A= >> -LX_GDBPARSED(CLK_GET_RATE_NOCACHE)=0A= >> +if IS_BUILTIN(CONFIG_COMMON_CLK):=0A= >> + LX_GDBPARSED(CLK_GET_RATE_NOCACHE)=0A= >> =0A= > =0A= > Why is this LX_GDBPARSED() instead of LX_VALUE()? From what I can tell=0A= > it doesn't need to be runtime evaluated, just assigned to something that= =0A= > is macro expanded by CPP.=0A= =0A= Because CLK_GET_RATE_NOCACHE expands to BIT() which expands to a =0A= constant with an UL suffix which python doesn't understand.=0A= =0A= Alternatively we could redefine the BIT macros inside constants.py.in =0A= but using gdb features seemed better. We could even try to strip integer = =0A= literal suffixes with sed.=0A= =0A= Mentioned before: https://lkml.org/lkml/2019/5/3/341=0A= =0A= --=0A= Regards,=0A= Leonard=0A=