Skip to content
Snippets Groups Projects
Commit 0ffa7b09 authored by Jaydeep Sen's avatar Jaydeep Sen
Browse files

linux-ramdump-parser-v2: Add Func. to get debug_flags value

-page structures have a field for debug flags
-These flags are useful to determine if a page is poisoned
-get debug_flags value from page structure
-page is poisoned if value is 1

Change-Id: Ieeec9ca437b3ea5e20dc0c93150a60cd99e47535
parent c57e7aec
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,11 @@ def page_buddy(ramdump, page):
return val == 0xffffff80
def get_debug_flags(ramdump, page):
debug_flag_offset = ramdump.field_offset('struct page', 'debug_flags')
flagval = ramdump.read_word(page + debug_flag_offset)
return flagval
def page_zonenum(page_flags):
# save this in a variable somewhere...
return (page_flags >> 26) & 3
......
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