From c9466e773fa01e9884c2dcaabcf3e94d58215610 Mon Sep 17 00:00:00 2001
From: avijayku <avijayku@codeaurora.org>
Date: Wed, 4 Apr 2018 19:05:43 +0530
Subject: [PATCH] lrdp-v2: Extract chipd from ramdump and pass it to
 scandumpwrapper as argument.

Based on chip id extracted from ramdumps, scandumpwrapper tool will be called.

Change-Id: I311bb12ecb81b91f4c91c01a860c20d940c7c173
Signed-off-by: avijayku <avijayku@codeaurora.org>
---
 linux-ramdump-parser-v2/debug_image_v2.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/linux-ramdump-parser-v2/debug_image_v2.py b/linux-ramdump-parser-v2/debug_image_v2.py
index 96d8fd0..820181e 100644
--- a/linux-ramdump-parser-v2/debug_image_v2.py
+++ b/linux-ramdump-parser-v2/debug_image_v2.py
@@ -131,6 +131,7 @@ class DebugImage_v2():
     def parse_scandump(self, version, start, end, client_id, ram_dump):
         scandump_file_prefix = "scandump_core"
         core_bin_prefix = "core"
+        chipset = ram_dump.hw_id
         try:
             scan_wrapper_path = local_settings.scandump_parser_path
         except AttributeError:
@@ -158,7 +159,7 @@ class DebugImage_v2():
             val = ram_dump.read_byte(i, False)
             header_bin.write(struct.pack("<B", val))
         header_bin.close()
-        subprocess.call('python {0} -d {1} -o {2} -f {3}'.format(scan_wrapper_path, input, output, arch))
+        subprocess.call('python {0} -d {1} -o {2} -f {3} -c {4}'.format(scan_wrapper_path, input, output, arch, chipset))
         sv2 = Scandump_v2(core_num,ram_dump,version)
         reg_info = sv2.prepare_dict()
         if reg_info is not None:
-- 
GitLab