Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tools
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
vendor
qcom-opensource
tools
Commits
4a82f68e
Commit
4a82f68e
authored
7 years ago
by
lnx build
Committed by
Gerrit - the friendly Code Review server
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "lrdp-v2: Correct SLUB track address calculation" into opensource-tools.lnx.1.0
parents
3a24ba69
b02616f5
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
linux-ramdump-parser-v2/parsers/slabinfo.py
+7
-2
7 additions, 2 deletions
linux-ramdump-parser-v2/parsers/slabinfo.py
with
7 additions
and
2 deletions
linux-ramdump-parser-v2/parsers/slabinfo.py
+
7
−
2
View file @
4a82f68e
...
...
@@ -76,6 +76,11 @@ class kmem_cache(object):
self
.
inuse
=
ramdump
.
read_int
(
addr
+
offset
)
if
self
.
inuse
is
None
:
return
offset
=
ramdump
.
field_offset
(
'
struct kmem_cache
'
,
'
red_left_pad
'
)
self
.
red_left_pad
=
ramdump
.
read_int
(
addr
+
offset
)
if
self
.
red_left_pad
is
None
:
self
.
red_left_pad
=
0
self
.
addr
=
addr
self
.
valid
=
True
...
...
@@ -147,9 +152,9 @@ class Slabinfo(RamParser):
def
get_track
(
self
,
ramdump
,
slab
,
obj
,
track_type
):
track_size
=
g_offsetof
.
sizeof_struct_track
if
slab
.
offset
!=
0
:
p
=
obj
+
slab
.
offset
+
g_offsetof
.
sizeof_void_pointer
p
=
obj
+
slab
.
red_left_pad
+
slab
.
offset
+
g_offsetof
.
sizeof_void_pointer
else
:
p
=
obj
+
slab
.
inuse
p
=
obj
+
slab
.
red_left_pad
+
slab
.
inuse
return
p
+
track_type
*
track_size
def
extract_callstack
(
self
,
ramdump
,
stack
,
out_file
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment