Skip to content
Snippets Groups Projects
Commit 8117a292 authored by Avinash Jain's avatar Avinash Jain Committed by Patrick Daly
Browse files

lrdp_v2: Bug fix in slabsummary

Bug fix for in free objects calculation for objects in slab.

Change-Id: I96a54d2bf01921f31ae91c24bc96956dd98b1bfc
parent 2a932cfb
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