From 878cd1bed7a25d3ee64ccb7a5c23ea4e1e072386 Mon Sep 17 00:00:00 2001 From: Gopi Krishna Nedanuri <gnedanur@codeaurora.org> Date: Mon, 7 May 2018 16:46:16 +0530 Subject: [PATCH] lrdp_v2: Fix broken qdss.py Use correct length for reading physical memory in continous memory type of etr. Change-Id: Ia4545b22a553b5e787ebfaf01888c85b35d192dc --- linux-ramdump-parser-v2/qdss.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linux-ramdump-parser-v2/qdss.py b/linux-ramdump-parser-v2/qdss.py index 81a9d22..a4c1e64 100644 --- a/linux-ramdump-parser-v2/qdss.py +++ b/linux-ramdump-parser-v2/qdss.py @@ -1,4 +1,4 @@ -# Copyright (c) 2012, 2014-2015 The Linux Foundation. All rights reserved. +# Copyright (c) 2012, 2014-2018 The Linux Foundation. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 and @@ -412,8 +412,8 @@ class QDSSDump(): if (sts & 0x1) == 1: it1 = range(rwpval, dbaddr+rsz) it2 = range(dbaddr, rwpval) - tmc_etr.write(ram_dump.read_physical(it1[0], len(it))) - tmc_etr.write(ram_dump.read_physical(it2[0], len(it))) + tmc_etr.write(ram_dump.read_physical(it1[0], len(it1))) + tmc_etr.write(ram_dump.read_physical(it2[0], len(it2))) else: it = range(dbaddr, dbaddr+rsz) tmc_etr.write(ram_dump.read_physical(it[0], len(it))) -- GitLab