Skip to content
Snippets Groups Projects
Commit bf55f569 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "lrdp-v2: rtb: Add parsing support for L2 indirect read/write and IRQ"

parents f440089c 8f46ca61
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,9 @@ print_table = { ...@@ -30,6 +30,9 @@ print_table = {
'LOGK_HOTPLUG': 'print_hotplug', 'LOGK_HOTPLUG': 'print_hotplug',
'LOGK_CTXID': 'print_ctxid', 'LOGK_CTXID': 'print_ctxid',
'LOGK_TIMESTAMP': 'print_timestamp', 'LOGK_TIMESTAMP': 'print_timestamp',
'LOGK_L2CPREAD': 'print_cp_rw',
'LOGK_L2CPWRITE': 'print_cp_rw',
'LOGK_IRQ': 'print_irq',
} }
...@@ -92,6 +95,22 @@ class RTB(RamParser): ...@@ -92,6 +95,22 @@ class RTB(RamParser):
rtbout.write('{0} Timestamp: {1:x}{2:x}\n'.format( rtbout.write('{0} Timestamp: {1:x}{2:x}\n'.format(
logtype, data, caller).encode('ascii', 'ignore')) logtype, data, caller).encode('ascii', 'ignore'))
def print_cp_rw(self, rtbout, rtb_ptr, logtype):
data = self.ramdump.read_structure_field(rtb_ptr, 'struct msm_rtb_layout', 'data')
caller = self.ramdump.read_structure_field(rtb_ptr, 'struct msm_rtb_layout', 'caller')
func = self.get_fun_name(caller)
line = self.get_caller(caller)
rtbout.write('{0} from offset {1:x} called from addr {2:x} {3} {4}\n'.format(
logtype, data, caller, func, line).encode('ascii', 'ignore'))
def print_irq(self, rtbout, rtb_ptr, logtype):
data = self.ramdump.read_structure_field(rtb_ptr, 'struct msm_rtb_layout', 'data')
caller = self.ramdump.read_structure_field(rtb_ptr, 'struct msm_rtb_layout', 'caller')
func = self.get_fun_name(caller)
line = self.get_caller(caller)
rtbout.write('{0} interrupt {1:x} handled from addr {2:x} {3} {4}\n'.format(
logtype, data, caller, func, line).encode('ascii', 'ignore'))
def parse(self): def parse(self):
rtb = self.ramdump.addr_lookup('msm_rtb') rtb = self.ramdump.addr_lookup('msm_rtb')
if rtb is None: if rtb is None:
......
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