Skip to content
Snippets Groups Projects
Commit bfdd0aed authored by Aparna Das's avatar Aparna Das
Browse files

linux-ramdump-parser-v2: dump only relevant registers for cpu ctxt

Current cpu context dump structure has variable number of reserved
elements for 32 and 64 bit dumps. Modify the parser to not dump the
entire cpu context structure but only relevant registers.

Change-Id: I615d2b7097ba35b1af2431caf70645cd6c4e5daa
parent f95bd687
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@
# GNU General Public License for more details.
import struct
import re
from print_out import print_out_str
# (name from tz dump, corresponding T32 register, whether or not to print_out_str (the function name))
......@@ -149,7 +150,7 @@ sysdbg_cpu32_register_names = [
('cpsr', 'cpsr', False),
('r13_mon', 'r13_mon', False),
('r14_mon', 'r14_mon', True),
('r14_hyp', 'r14_hyp', True),
('r14_hyp', 'elr_hyp', True),
('_reserved', '_reserved', False),
('__reserved1', '__reserved1', False),
('__reserved2', '__reserved2', False),
......@@ -226,6 +227,8 @@ class TZCpuCtx_v2():
else:
register_names = sysdbg_cpu32_register_names
for reg_name, t32_name, print_pc in register_names:
if re.match('(.*)reserved(.*)', reg_name):
continue
if print_pc:
a = ramdump.unwind_lookup(self.regs[reg_name])
if a is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment