Skip to content
Snippets Groups Projects
Commit c4771750 authored by lnx build's avatar lnx build Committed by Gerrit - the friendly Code Review server
Browse files

Merge "lrdp_v2: Bug fix in slabsummary" into opensource-tools.lnx.1.0-dev.1.0

parents b4697278 8117a292
No related branches found
No related tags found
No related merge requests found
......@@ -27,20 +27,20 @@ class Slabinfo_summary(RamParser):
start, slab_lru_offset,
max_page):
page = self.ramdump.read_word(start)
totalfree = 0
if page == 0:
return
return totalfree
seen = []
totalfree = 0
mapcount = 0
total_objects = 0
inuse = 0
while page != start:
if page is None:
return
return totalfree
if page in seen:
return
return totalfree
if page > max_page:
return
return totalfree
seen.append(page)
page = page - slab_lru_offset
mapcount = self.ramdump.read_structure_field(
......
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