From e6eb78f1c33dde0a506c2e037d3c24c0f82272e6 Mon Sep 17 00:00:00 2001 From: Laura Abbott <lauraa@codeaurora.org> Date: Wed, 13 Aug 2014 10:41:18 -0700 Subject: [PATCH] linux-ramdump-parser-v2: Support CONFIG_FAIR_GROUP_SCHED=n Not all targets run with CONFIG_FAIR_GROUP_SCHED. Adjust the runqueue parsing to support this. Change-Id: Ia46826a2d6dd354d1b1f475e6b51c5a9631a39fb --- linux-ramdump-parser-v2/parsers/runqueue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-ramdump-parser-v2/parsers/runqueue.py b/linux-ramdump-parser-v2/parsers/runqueue.py index bbdaaec..523f715 100644 --- a/linux-ramdump-parser-v2/parsers/runqueue.py +++ b/linux-ramdump-parser-v2/parsers/runqueue.py @@ -55,7 +55,7 @@ class RunQueues(RamParser): 'struct cfs_rq', 'nr_running') my_q_offset = self.ramdump.field_offset('struct sched_entity', 'my_q') - if se_addr == 0: + if se_addr == 0 or my_q_offset is None: self.print_task_state(status, se_addr) else: my_q_addr = self.ramdump.read_word(se_addr + my_q_offset) -- GitLab