Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp2193023ybm; Thu, 23 May 2019 12:54:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqydS6ZOY9sNl7aVcu3C9LEStM4QfpWqwmSnFIeDPkhGqTIJwFBWlpFeuUEG7jscjzqqpzCH X-Received: by 2002:aa7:8219:: with SMTP id k25mr14154305pfi.38.1558641286882; Thu, 23 May 2019 12:54:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558641286; cv=none; d=google.com; s=arc-20160816; b=ut6MMYV+GvgAVu5qlxouqS3HJ7J8gtJ+TjXobcTbjW94nNSiR18pO2dtIV0iZ/nL1G ngjI6mXclK1pE/n9+Pd2slcvc/BRo4E3VWl/x9lydg1hLZWKMZVXWiBJ+QNWJQct96DM fKr6ys6PDfa195oscDizH+1GyeIiCyjKuzqEF1BNOjkZFRdR45kcdFrYJbDPuBl8bD4b t1yHHw5Sw8KRXkVuvMqQdhMjdxhjukz2MIbAHFMhK2/F4qR/U4tHX+n+RqiMbounFNKs xgvwb+D8DP4BVgG8l7yvc0CKg5rL5p++r6PsIsMmQjEsmxpGqkKqZ1OaiI2y0ya2yyX/ t8rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:date:subject:cc:to:from; bh=DlVlqDWqzfi3k8Z+mROsT5ahuykRkZpsbwSyPtZlxtY=; b=Ivmsm0HKWLJ2qXKgRGVIhd2rJ1Uf3sIrpSqUVnxztLEFj2JBI3oVNoxP+e1X7hxK0Q NvqLTgVKqCCvvrEgovRuo3jdpspvOM8jF9gxlxXLIbYs/eiVvrs1/Y0C/QzKJk0ZW2fw GlB2ywYaI7GJ3IasD3iMhTJcSWBAoCJ0VJBrFYAXIwkfL3AnutdRjE6G7bt8WGM+R1i0 gwr9KC2GaOeHvRCtamxgOEhQVQrSRdIHbvJNqIQEwrLEAssdZXGorRVWHknq7oc/f0Xg VKa0unnw+GAsCr9QwWuMcSpFUMXkP6Gax2PxjjA2+8vnyyg81zvVL98+TJ8hhCSrCyDN qnAQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i1si479544pgs.324.2019.05.23.12.54.31; Thu, 23 May 2019 12:54:46 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387681AbfEWTxZ (ORCPT + 99 others); Thu, 23 May 2019 15:53:25 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:54076 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387433AbfEWTxY (ORCPT ); Thu, 23 May 2019 15:53:24 -0400 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x4NJlR6F187003 for ; Thu, 23 May 2019 15:53:23 -0400 Received: from e16.ny.us.ibm.com (e16.ny.us.ibm.com [129.33.205.206]) by mx0b-001b2d01.pphosted.com with ESMTP id 2sp1yqg6du-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 23 May 2019 15:53:23 -0400 Received: from localhost by e16.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 23 May 2019 20:53:22 +0100 Received: from b01cxnp22036.gho.pok.ibm.com (9.57.198.26) by e16.ny.us.ibm.com (146.89.104.203) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 23 May 2019 20:53:18 +0100 Received: from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com [9.57.199.109]) by b01cxnp22036.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x4NJrHRk31982062 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 23 May 2019 19:53:17 GMT Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6D59B112065; Thu, 23 May 2019 19:53:17 +0000 (GMT) Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4E10E112062; Thu, 23 May 2019 19:53:16 +0000 (GMT) Received: from farosas.linux.ibm.com.br.ibm.com (unknown [9.86.26.96]) by b01ledav004.gho.pok.ibm.com (Postfix) with ESMTP; Thu, 23 May 2019 19:53:16 +0000 (GMT) From: Fabiano Rosas To: linux-kernel@vger.kernel.org Cc: Jan Kiszka , Kieran Bingham , Andrew Morton , Leonard Crestez , Stephen Boyd , Jackie Liu Subject: [PATCH] scripts/gdb: Fix invocation when CONFIG_COMMON_CLK is not set Date: Thu, 23 May 2019 16:53:11 -0300 X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 19052319-0072-0000-0000-000004326D81 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00011150; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000286; SDB=6.01207584; UDB=6.00634204; IPR=6.00988564; MB=3.00027022; MTD=3.00000008; XFM=3.00000015; UTC=2019-05-23 19:53:20 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19052319-0073-0000-0000-00004C562D62 Message-Id: <20190523195313.24701-1-farosas@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-05-23_16:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=15 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=828 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905230128 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CLK_GET_RATE_NOCACHE depends on CONFIG_COMMON_CLK. Importing constants.py when CONFIG_COMMON_CLK is not defined causes: (gdb) lx-symbols (...) File "scripts/gdb/linux/proc.py", line 15, in from linux import constants File "scripts/gdb/linux/constants.py", line 2, in LX_CLK_GET_RATE_NOCACHE = gdb.parse_and_eval("CLK_GET_RATE_NOCACHE") gdb.error: No symbol "CLK_GET_RATE_NOCACHE" in current context. Fixes: e7e6f462c1be ("scripts/gdb: print cached rate in lx-clk-summary") Signed-off-by: Fabiano Rosas --- scripts/gdb/linux/constants.py.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/gdb/linux/constants.py.in b/scripts/gdb/linux/constants.py.in index 1d73083da6cb..2efbec6b6b8d 100644 --- a/scripts/gdb/linux/constants.py.in +++ b/scripts/gdb/linux/constants.py.in @@ -40,7 +40,8 @@ import gdb /* linux/clk-provider.h */ -LX_GDBPARSED(CLK_GET_RATE_NOCACHE) +if IS_BUILTIN(CONFIG_COMMON_CLK): + LX_GDBPARSED(CLK_GET_RATE_NOCACHE) /* linux/fs.h */ LX_VALUE(SB_RDONLY) -- 2.20.1