Skip to content
Snippets Groups Projects
Commit 967d8f04 authored by Shashank Mittal's avatar Shashank Mittal
Browse files

linux-ramdump-parser-v2: Pass debug data version to client functions.

Pass debug data version to client functions while parsing debug
image.

Change-Id: Iab3d83182afbfdee8af0f90f5a7df91c0a8fc770
parent 3f3816d8
No related branches found
No related tags found
No related merge requests found
...@@ -69,7 +69,7 @@ class DebugImage_v2(): ...@@ -69,7 +69,7 @@ class DebugImage_v2():
self.dump_table_id_lookup_table = [] self.dump_table_id_lookup_table = []
self.dump_data_id_lookup_table = [] self.dump_data_id_lookup_table = []
def parse_cpu_ctx(self, start, end, client_id, ram_dump): def parse_cpu_ctx(self, version, start, end, client_id, ram_dump):
core = client_id - client.MSM_DUMP_DATA_CPU_CTX core = client_id - client.MSM_DUMP_DATA_CPU_CTX
print_out_str( print_out_str(
...@@ -82,7 +82,7 @@ class DebugImage_v2(): ...@@ -82,7 +82,7 @@ class DebugImage_v2():
regs.dump_core_pc(ram_dump) regs.dump_core_pc(ram_dump)
regs.dump_all_regs(ram_dump) regs.dump_all_regs(ram_dump)
def parse_qdss_common(self, start, end, client_id, ram_dump): def parse_qdss_common(self, version, start, end, client_id, ram_dump):
client_name = self.dump_data_id_lookup_table[client_id] client_name = self.dump_data_id_lookup_table[client_id]
print_out_str( print_out_str(
...@@ -375,7 +375,7 @@ class DebugImage_v2(): ...@@ -375,7 +375,7 @@ class DebugImage_v2():
continue continue
func = client_table[client_name] func = client_table[client_name]
getattr(DebugImage_v2, func)(self, dump_data_addr, dump_data_addr + dump_data_len, getattr(DebugImage_v2, func)(self, dump_data_version, dump_data_addr, dump_data_addr + dump_data_len,
client_id, ram_dump) client_id, ram_dump)
self.qdss.dump_all(ram_dump) self.qdss.dump_all(ram_dump)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment