Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752472AbdFZMxF (ORCPT ); Mon, 26 Jun 2017 08:53:05 -0400 Received: from mail-by2nam01on0044.outbound.protection.outlook.com ([104.47.34.44]:11392 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752651AbdFZMwj (ORCPT ); Mon, 26 Jun 2017 08:52:39 -0400 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=nxp.com; From: Leonard Crestez To: Jan Kiszka , Kieran Bingham CC: Subject: [PATCH v2 1/2] scripts/gdb: lx-dmesg: Cast log_buf to void* for addr fetch Date: Mon, 26 Jun 2017 15:52:21 +0300 Message-ID: X-Mailer: git-send-email 2.7.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131429551529748106;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.158.2;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(336005)(39860400002)(39840400002)(39410400002)(39400400002)(39850400002)(39380400002)(39450400003)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700003)(189998001)(966005)(356003)(6306002)(5003940100001)(118296001)(77096006)(47776003)(81166006)(48376002)(305945005)(105606002)(104016004)(50986999)(498600001)(50226002)(53936002)(8676002)(5660300001)(2906002)(86362001)(8936002)(33646002)(50466002)(4326008)(38730400002)(85426001)(6666003)(36756003)(106466001);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR03MB2576;H:az84smr01.freescale.net;FPR:;SPF:Fail;MLV:ovrnspm;A:1;MX:1;PTR:InfoDomainNonexistent;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN1AFFO11FD038;1:Rc9MySlNzcYv4Xg276MusxOiOaTIyUVNdmuKD8mQe?= =?us-ascii?Q?w+uDesF/fCoet6CEj2xgnrP+snA8YARSH+nfqVBnc+KSFaJ05iOajbFBStlf?= =?us-ascii?Q?ZC+w8/fS8QLs1bm9H5XHM1+Vl9qJUEXixlcesDnHieqTCMmTtmX3cUACQCzJ?= =?us-ascii?Q?gJyYTzBOdYNeXmzGUAd8ldwMspdqC9xu27jV5gdIAKDjfdDVLRJZE9AHPSSN?= =?us-ascii?Q?O3eJDP9styWAxNaHaa/mHe7qf5paM11fP2f0q+jY10UQB0y6426H8Nlcdfrz?= =?us-ascii?Q?I9eQ9ILOieH2gGfaFTclG0aBGsw8r8c6kUbsVjDDKcY96YMoBFG7dvlq7qg5?= =?us-ascii?Q?sFZRpU2DYoS1VrejWnLyWZfYoFYk7La0SyPzmkdDew2Cy0OAYy5qC/sjfoI6?= =?us-ascii?Q?2cpbByE0uu96AH2CODbUPO1XvM4fhDyAIU1TJLemt8m/K5f3EZxfP43YXVEK?= =?us-ascii?Q?h8/3I3msKq/d4qzjZsJLK78OjdFjghu+GgTi17KEcnfpUdix0KxZhSMseTmj?= =?us-ascii?Q?ectD7ekCK9x1c5lIyALZUop4DSafnheeX527eeFame9Ubza4qxNvlpq+VqwZ?= =?us-ascii?Q?2GZJO2pBOyQS9MQ4YCO5eEzrLlBbpF1IE2jqFhzvMUazsynGgGLRnaarDLKA?= =?us-ascii?Q?iBFG0yDB3NUv8gvPECJO7ueBgLJAyHJ2F1D+HYhq4Qu525ncStajzqXz+yfE?= =?us-ascii?Q?wpDSWj5ueLANAjE4NM2Ht25G7/06CidtuANnLxaQDtwAqaGXqRYNWvICmP0h?= =?us-ascii?Q?Dyb5A7a1MEZAwzQgH3UJUAbaShA1qQA1+yszB8MfGdZRjDhe/yn4Eteel99b?= =?us-ascii?Q?enSEOnLNfe7SaCERGckx/0/QjNSUHbL/9nWb51anDQwnoIAbRnPLtU11pTE6?= =?us-ascii?Q?ndi79IbwoBCQHLWx5/TiJ5un1RcaORIt3evGvr6ScAzZrvsE1Qj0kVytg3Jq?= =?us-ascii?Q?zIB9t5k9tK83IxUQRDm6XUo8I3ynDDz4AlrD+eWpw=3D=3D?= MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2aa49a9f-33e5-4074-0529-08d4bc923660 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095);SRVR:MWHPR03MB2576; X-Microsoft-Exchange-Diagnostics: 1;MWHPR03MB2576;3:GwJTjJ2KGT7KKpmmkbg9hiHjRy/rLwChsxTHaHwc5DiOzviFjmNxBYPog+kO+t/+wKe1e6ahRWw6xor1mUejRl4nT/Qf+8LY0TDdOehp0L60BRBDd2xJj57ng/y+oCkkY3vZNn2sjzan8G9vT3v4xGj4qdbDhbjGE7J7oEDdhmhVFYnIH7ytc9wsgt29ippCMWdpOllYx30tWl3t0/QN12DEqe1CpxK4vOe0wjVxjlNj1064t3D52FUGUwf/7TN+96U8BHo6orhvEB5p7xhKyhSXleFy4B6RIiRdGPBnRhXeYF6/2cyuTiPdRyAu3PuGUxpSZU8E4eQMKnjI+BCfQ6uTqKW8x6lzOIHGwmirHQ25sJFfyYLnJbsOnS3nIMlEI8KQLaitr1KNVLvtc7vZv1mW1Kpw3uVVvkkn+p0xaa75bhytqkuynWwC9ayIpQB3XPOBzyd/S1uhjrBTU14TnecQ81cP7+stkHxXRmJy/jMWgQctkyci5hSNv9x4ewQUyOZVD3o6Q2YoUDSTXXfJyPFnC9os36dwaxdN/Id1CDVGPs40uDXyG0hgWmeSWqp89KNTOrSXmX3daEYQp8+YbWpfj1m+MxCOmzv7B9R3q9S9UqG596wdV4zdU8GiIAixr2NH5zXNL9r6EO5/tPqyrBam+f9CaDg7evp5SmksZ7JLqf2XdiuoHfQ6eOaIE0rm1zeY6nxE28mq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-Microsoft-Exchange-Diagnostics: 1;MWHPR03MB2576;31:2IZtOudTHjectadF/inBIuy9PF8k7neUTuaKgVysAHgb3ARAr474ctCxZgHN0JaBaEZkz0nXzN+E0uri01k4zNuWmY5cKjCItWQOvPwQeiv7/o6uk162FjanFv23qMLKHEXIDxB52H/h6HxFYtPLrEbqCffKH8GKvh789RVMitn1sUw0a5NK56J83b3YPUdR5aFG1ExQu0RwDwVEPiFDCiiSN0hytgg6DNHUqIyHRE7KLOTBw97JubgRYVRh/egdEFOJDV/xAMPjhc1+HZLFxBqrnYNzAgSvJPp3rgUTwKehFiFiB0cyvxaDsA5f5IcBWOwg6SXGCI3Ch7bebCIs4Zvj+O9cOxMic6geSwy+bEZYIbossXYEM6etmaVkd8YzpV5ifnFSSKO/9ZpfAnm+g2LyCvy0kGoyZxxiK2SIKQm806Na0KUz8ilCnUUbKVOUeQ/vWo+ZEwSwRUSod7nq1b0GdmoiujPoLjcHGiCbO/JIt7RJnKnY8Qq3RfQkU0KxyvKcixtQTd0rnS18ijHrblr3lBLj0FTOS3yOdZfvsBixbTSp0DM7lleAUG8GQDA5/283hm+OZta4KnCO5dNfXe8sQmz3QJKkwE+U89/Wby0PXIx34ohfUcMWDSp9elwFTeNbZP8KLt/6ZlcMwvHQRHjeVy7a6zGzkYldSvGwYaVT79tk6/fa94f9iRgt84A8uELYy53C4OXEKYW4IAzSXA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(185117386973197)(126837547833334)(17755550239193); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13018025)(8121501046)(5005006)(13016025)(93006095)(93001095)(10201501046)(3002001)(100000703101)(100105400095)(6055026)(6096035)(20161123565025)(20161123561025)(20161123556025)(20161123559100)(20161123563025)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:MWHPR03MB2576;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:MWHPR03MB2576; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;MWHPR03MB2576;4:5Z/HX7bFUGZiX35HqaZXHkv+CkuWkVhvXQI15Bs+L0?= =?us-ascii?Q?DxLwtnpKWs5zb8rjJbf++fm8Mv/DJCRWnbZJ+swMjNdHxscUIix+LV52cCY4?= =?us-ascii?Q?qjw2K6Xy8z2N8sjrTLrAjoGrWzsYF4tUzE69v0//IBlUhMwpMZN4z+p5fTUo?= =?us-ascii?Q?rbzt/IarcAm++bgZ6mqXgXYJUGObrzI8nsUmTAqb9e4A61vhLyXQLyUM/sXV?= =?us-ascii?Q?89M+KZi8zErvmtU1u50ZSu//3YwyBvCrRGdztcagkYtyPNAx2IBQp3NL9wfT?= =?us-ascii?Q?jP8zeyfCOevZLiz5s/HuCDWTPi8w+GLe/bmSl9NrsWNqCrc8beV4SDbEwpRU?= =?us-ascii?Q?wnnn6+c5KUsrA4VlRBIvgsNI9wwvvaMhqHMPaMH/7gCrqgjskgY7BweTvTWw?= =?us-ascii?Q?rFW+sBCgUPkSL1gVZuO8mqMZMy2wjWBkGUdUVvvqGLxnwM65bz5UvIeriwXG?= =?us-ascii?Q?ZAccg2h3EM6NayVYQ3O9AqY9C0fYpjKwImEUjTIwl6EnH2NWof40mVuyTjMI?= =?us-ascii?Q?9jl1uWkW97PBPPOMugZaKc+ATwpe/WYdiE65nIi8bBDeZxuiSHxVZ4xoyqw/?= =?us-ascii?Q?33481STC8CQU1h+854J7ECnn30/qUISdvnuR2NXK13/X9Xu5+PT/F15RJ9lf?= =?us-ascii?Q?xPoKSQ8oRkKCZbN1wt9bjHkKmi/ggoZKjVtFLrREzT+g4tZKiJJvQSuzE3+3?= =?us-ascii?Q?WQezprpr94plL5MEXBlANdEEri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etadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;MWHPR03MB2576;7:m4BfSKyyQC91wL7KTPk82CI0/tNh9O59KX718APfFubWEwMnhDhA4VJmfXR6EtGmDvSHQYYe8PwlJU/v9OGghSZEn0KRCf0YW2ZxaeL2t5jh8HMzs6EECOmrU9vaMkdZGxi5lZ4b8udBI3MoUX112BxmOuM92GpYmB28SAjG9DQYEeCq10DMzuTWYYXxZF5kVgAWWeyC70atwSeCrvC+NtglwwfA1Qia0vRhRFjYKz+vL379KJNwUdQpO/0KLPtkR572spd2NgiyKUqJgE3svb4zEkXygzf5TTch39f9FkzPVYpmHm0E0VbQY/63LvHQx6q1IEnG47AExaoU4BOrn6FwiEeT9v6yfXv6lrbx3ViEb7WH/YjqXtHg9z47VZsKywcroKyJY3Yt/HCZJIO4FE/L/MHMZehJaeJO85pp3TEycszzs56wDtmhi0tFLYuSb6SFS7/Eo8weBYNl/tJDp72AfK2HekLeiAPKr/gy8rU9tv0wVoymd50Jp2vHs/WcTiT9C6yqmtnXQh/YuhzBEtGlZ1MvAx1bXLomfBQyo44l43UlNXreAHX/xgXhp+MYPX28IXEPbFmNJh61MQnkCCc9RpO9iPXK2uN5VHmRd1Vn8FRO4VbyVbUxGg7lMXcZrp2gT8dicuG39d5TeBfj/Z9mx00m8u19xtDqXV3C/4+FLqexn9pn/G3/yJ37ruC2GvxI9F5PXOTS+wy16cTKh8RJhyHlGwvXcitTLKKTB341f841l8ZxPFZZsI59jD02TbiEgAm8UtIiS6v0LA1urs8bcBRSmn9ie6BlVInL+6c= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2017 12:52:32.6784 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.158.2];Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2576 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1529 Lines: 41 In some cases it is possible for the str() conversion here to throw encoding errors because log_buf might not point to valid ascii. For example: (gdb) python print str(gdb.parse_and_eval("log_buf")) Traceback (most recent call last): File "", line 1, in UnicodeEncodeError: 'ascii' codec can't encode character u'\u0303' in position 24: ordinal not in range(128) Avoid this by explicitly casting to (void *) inside the gdb expression. Signed-off-by: Leonard Crestez Reviewed-by: Jan Kiszka --- Changes since v1: * Fix title (use "scripts/gdb" header instead of "gdb/scripts") * Use "void *" instead of "void*" Link: https://lkml.org/lkml/2017/6/23/461 Signed-off-by: Leonard Crestez --- scripts/gdb/linux/dmesg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gdb/linux/dmesg.py b/scripts/gdb/linux/dmesg.py index 5afd109..f5a0303 100644 --- a/scripts/gdb/linux/dmesg.py +++ b/scripts/gdb/linux/dmesg.py @@ -24,7 +24,7 @@ class LxDmesg(gdb.Command): def invoke(self, arg, from_tty): log_buf_addr = int(str(gdb.parse_and_eval( - "'printk.c'::log_buf")).split()[0], 16) + "(void *)'printk.c'::log_buf")).split()[0], 16) log_first_idx = int(gdb.parse_and_eval("'printk.c'::log_first_idx")) log_next_idx = int(gdb.parse_and_eval("'printk.c'::log_next_idx")) log_buf_len = int(gdb.parse_and_eval("'printk.c'::log_buf_len")) -- 2.7.4