Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753701AbdFWOUs (ORCPT ); Fri, 23 Jun 2017 10:20:48 -0400 Received: from mail-by2nam03on0040.outbound.protection.outlook.com ([104.47.42.40]:35552 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750932AbdFWOUp (ORCPT ); Fri, 23 Jun 2017 10:20:45 -0400 Authentication-Results: spf=fail (sender IP is 192.88.168.50) 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: Kieran Bingham , Jan Kiszka CC: Subject: [PATCH 1/2] gdb/scripts: lx-dmesg: Cast log_buf to void* for addr fetch Date: Fri, 23 Jun 2017 17:20:34 +0300 Message-ID: <00d6621945ececb6c9fb360aef0efd5747439a38.1498227531.git.leonard.crestez@nxp.com> X-Mailer: git-send-email 2.7.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131427012430520857;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(336005)(39380400002)(39850400002)(39400400002)(39410400002)(39860400002)(39450400003)(39840400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700003)(118296001)(77096006)(6666003)(2906002)(189998001)(498600001)(356003)(8676002)(85426001)(8936002)(5003940100001)(50226002)(105606002)(50986999)(4326008)(53936002)(81166006)(106466001)(38730400002)(36756003)(5660300001)(33646002)(104016004)(305945005)(48376002)(86362001)(50466002)(47776003);DIR:OUT;SFP:1101;SCL:1;SRVR:BY1PR0301MB0901;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;MLV:ovrnspm;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BL2FFO11F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h9aoshyi?= =?us-ascii?Q?Gff9m1kHzVky3TkheeIDoXec+7aapXUvhBkPFZEFaV1SeRNDjCgHYx0yD+fn?= =?us-ascii?Q?zW28S9WYdEEPtUZaw/pMPfM1wCtaMZ1d9uoYlp3g=3D=3D?= MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c7ff5e83-b57f-4177-e219-08d4ba430846 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131430075)(201703131517081);SRVR:BY1PR0301MB0901; X-Microsoft-Exchange-Diagnostics: 1;BY1PR0301MB0901;3:tRD4U/zNfD+DrIDLEtK9yhwngmpJX/TI7mWPVf9WaX01AFM6ZY7R/Oaq+yN8916uw9TtTLa7sdC+Z8FamBFOA9TjcZ2+unPZ9tZ/uy7tDpnftAkqW+UMKkWvGoU7asUwdwB91d+Odq9icwEneDwIl1afcePxss/IuSQQdpctIFQDPfqaKIq4lfDr2JfI0GJge0jLEcbheJk4Eau/LgUmDSbP2dOpg2md7fQrVNe0vqtHYHZz3i24zyVpp/Xa/voABWDV/y5kes71yg7SRUmRLO6C/PijMvag5OjV0SP+uWmh+mVj/mKL+hdL4H/T5Zgq7w9DiTFl0yfBpgcbQIyY3RLddfoD2E6l8JbEnwspHU1LckwzRb91AvrvhWPCYMwSA4LgjX2fyDq2EtoFzoHiu8hf5iwPNItTQLfqIREEUgA/6Gg5lcmGpz46U4aXLU5F X-MS-TrafficTypeDiagnostic: BY1PR0301MB0901: X-Microsoft-Exchange-Diagnostics: 1;BY1PR0301MB0901;25:m9WWI3NWxI4d7PW7RwBvADRsShn4qcUhryzv4PR9NfgtjKD9umFppqsoRU8Gw4838m0pWcSle1I5Q/5+t8d1VF8WDsmpuLKGaPUsvL8gGwyyBqiNPghWc2c3t13joXwaBKqhs0zVzxvNi8vcJKUTjJEbA6YhJAJodpBGUC7DNfCzm+29bUNPfYDK0W3NK9qDLQdHasEkZpUD+KBNUMGa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dyNZD1mS0NfpDMw75WTAI2UqR9PLEkwTVSxpThURMkh5zE2Btms1q5aER90+J4g4bSPnpau1jYPE07Sa/MzRzc5YtaEb/a9sekel01kiDtShZN+UHrWu91pN+SsgldmrMABXA5cwFm7B1zVutfWcLaXMeIk6rjR6h64Hn4lrXN3XqvRfoOU3lejJSnp9GmFeOUCA5/TV8fTsKEhTXRxuo5HOSf5q+SMuMJwHGlB5OKZQlHV8LM5y5nq+C10UAe8YetUlGZHKqXSSnNBIreBvoyrccg/XNgrWUg5iKcOALK/GGrSKXrMc5P0HtXOdVOcNMaSyLlxTeZabtVlt8oeDvQEOLPBoKeM272d5ZA5a2cfcBPG57B2Bw5+uVm3z/Rz/nptrbXjve/UtZYrnw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(17755550239193); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13018025)(8121501046)(13016025)(5005006)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(3002001)(6055026)(6096035)(20161123556025)(20161123559100)(20161123565025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123561025)(20161123563025)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BY1PR0301MB0901;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BY1PR0301MB0901; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY1PR0301MB0901;4:jQyRFrkcISllRNphVJAH6yMgjYdR2lVKoqHcQHC2?= =?us-ascii?Q?hiRPcpj3dGmP74VRPSZoksmcfvz9c/7MmhsNMbW6ATm7SgXTLH6flXG5hExn?= =?us-ascii?Q?shCq2DuulgdgHsDOmEXXCku9ViTedt8y9chL30c/IDR2Z1gxZ/UpGydh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HpCgHvx0naqKntLjP7SOKUiVa1ne?= =?us-ascii?Q?S7KvBcKySe40Ae57Swqrb2FvBuwuwyxhuMkdks2X+bALao8hZwAejrMUQ4Nt?= =?us-ascii?Q?auQ0A6SQlsX+73A6ebwACgtl2bxCh12vRCgXdlzGy4095Xk7spt5QeLEJPJj?= =?us-ascii?Q?EBswTKHAhZFSocj3SVMw9N0xyfxTGSX06BGjLiMTgId8bd0xPvdZsboSMNTP?= =?us-ascii?Q?cL4L4IsQy18wht46N7aDd6+3po1l1HAa2G5TtzK8r6q4Lqk7qwm4iNmWD4vY?= =?us-ascii?Q?FGuqoFZttn5H0oEA6iPH4fXDw/73xT7khHSCePSuYzELn1w8c9VkmiXyQ47F?= =?us-ascii?Q?lrpZQ6mLVE3JOcMginUqU4M4DjotL4A7Rbjqbea76iKUIsFfEl5omEMnNfin?= =?us-ascii?Q?diXu73aBV7fieJE+iPiJ+hWPN5l/76QvlvHEGwmrd8Yg0kG45s7fDDJOgI6n?= =?us-ascii?Q?6Q+C3qGFNYnKjhR2Lsmf+Z+WbmN3xyeslxpzPwAzHqTspCyuHUiyMxDp7p1U?= =?us-ascii?Q?DXyZ1BB+mECTfo9n2+/OI4njaOQ65fiKLE1B1WEC9fzg6Hx9+c98w/Capko8?= =?us-ascii?Q?n+7TIAFiXMGlCQ4SJFm838eG4zHXkHonWsBamK35ho94CQ3X1LEeruFc3XkR?= =?us-ascii?Q?uhJbDIXKEobM1Cr+0w2W3Db2EvRjb2YjTYNwnyW2uvQ6bwrzB6PSD3QoePEb?= =?us-ascii?Q?i2XjLsFdsGW4JMtW9AGL2suUCdjGD2tdORB2RXbhGqlxDilsMTgovXL3NiOP?= =?us-ascii?Q?Gye9nmmjVtjuwin9kJdr/rJWBdPAo8BiAx6fsp0ndA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;BY1PR0301MB0901;5:sEfu5mS4jl/tGrku33Hj9OI0LrhD+oRxuO0y6CbDcuigYfvS0OWZvRp5XEUbxWff7tHs4VgnYATWWrP3eMev5aVHAgWWBhnknKvUJensycizom/PdZgXwNqCG55SzN2KCKdihrb4rH1Bju/i9j6gczI/Icpc09NlugvkPB9eQWa9dHG5CjGDIUdTqyraky5XMTkYRkUj2NarEtIkEvuZk3FXeOf/ddAuAom9UAx4l9KGRFU/I4OLxmdwcqN0z3xbBVQCcELgHrJg2SMhYNwaEXrMngclZr82CvP0TbtWnDnw+suDFXaxhsOEOoV7puXcMS3H37aU0Hp7B3lr11q2rMTLWOjnj8F3Td4ikyNY6maXRakR9jCEX6r4/fcIbtrHDhRz83syTI2Ik6kJipcxOGip6+4IVcQARk9q6cc62G9piQKj+UeaKEQPulh5uG6jYeibfTwjuicDXSkalUiEWulm6O6c3M8fyZF0oZwfQATlMmdGIfSh9RNuQGa7ZOLGr/guemlk87QWwq63abTbhw==;24:DZeciYBuCXTkkLNurx9XuxBv2YRIUgMqit95xDMIzgDjDpoXdP6fe8Q772IY+lMTZVQesZCfEWD8ejqq5pXud4Al36DDoxzx/utYyjx4BFM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BY1PR0301MB0901;7:gM9Fihp4x3HS1hlh9YtnHjkAerfdMfUdgPJ9wid8ULL+n0WLyeUHqx+nZ4WiGybYjKrHsfbaUsLo6zEa6EDltx0nwShBa1vdnAXOEgl1/7jRjE046lXFRH32tFzSbyc4UCkvCA592cr7nyqHWnlmVPTZ2Fztf+7VWeuZIiL46rEv1cKC3isv/jUsM0wAVXDILK6irP8lH0v0eVtlMxFh5sXsUjjPgR890kVOVA0HomnA/7ku5VnVCOBygJD0jPvOu+rgLGm0jgvlt3cPSxhHe8gRPpPhrwv+BndU2AMIlxK8GfvtZAlc2i6hA8epaqaRtuuPV7fFSjFCWL3lfkZRv1RSH0szJ0WusdKkTn3a0tsh+fFA1sG7cz7eN12eLSD21F+w2oSauhcPHtt4RUb0IGnddhb3tYa+TBQTHbY+b3rhzYKQmvZNZbMy37WlDvecDkLdSj/3pGUvZw1NLoLYuOOvSsXALZ7tAMEcxFWn4ZQUBRrOkIvYhpGZVmLhOgMqygETRCGjlTDGRy+P0IAlI2wHBExesanMpaOCwZ+tQ4+ShhuPopsHE5bSN5s6A0aCsyzuB7u0DNVqUGq0qWcqy1lqxVMZLIkDfQcBQQJ17+OLc1IM/KXGc9LFXHEiPcelZGgVPqDW1eK8sd5QAsSNrjKpkjPkLdPoJOvI5z8NFNJopp1UHvHRlujVZxfZ6URGD/Dlf7c32UMh2mmzarQFF7AfyxSvZyYKCoaXWYfDD0I1aLwBxoLXJinUWjwx9NDFRJKcZPHhB4IL4iQZuTI2USv/tiXWM7HCjBteF0j6FfI= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jun 2017 14:20:42.8960 (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.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0301MB0901 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1256 Lines: 32 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 --- 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..6f8d2b2 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