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
627fa346
Commit
627fa346
authored
11 years ago
by
Linux Build Service Account
Committed by
Gerrit - the friendly Code Review server
11 years ago
Browse files
Options
Downloads
Plain Diff
Merge "linux-ramdump-parser-v2: Update IRQ parsing"
parents
fe605d44
d36bfa48
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
linux-ramdump-parser-v2/parsers/irqstate.py
+7
-6
7 additions, 6 deletions
linux-ramdump-parser-v2/parsers/irqstate.py
with
7 additions
and
6 deletions
linux-ramdump-parser-v2/parsers/irqstate.py
+
7
−
6
View file @
627fa346
...
...
@@ -77,6 +77,7 @@ class IrqParse(RamParser):
rnode_height_offset
=
ram_dump
.
field_offset
(
'
struct radix_tree_node
'
,
'
height
'
)
slots_offset
=
ram_dump
.
field_offset
(
'
struct radix_tree_node
'
,
'
slots
'
)
pointer_size
=
ram_dump
.
sizeof
(
'
struct radix_tree_node *
'
)
# if CONFIG_BASE_SMALL=0: radix_tree_map_shift = 6
radix_tree_map_shift
=
6
...
...
@@ -87,10 +88,10 @@ class IrqParse(RamParser):
if
ram_dump
.
read_word
(
root_addr
+
rnode_offset
)
&
1
==
0
:
if
index
>
0
:
return
None
return
(
ram_dump
.
read_word
(
root_addr
+
rnode_offset
)
&
0xfffffffe
)
return
(
ram_dump
.
read_word
(
root_addr
+
rnode_offset
)
&
0xfffffff
ffffffff
e
)
node_addr
=
ram_dump
.
read_word
(
root_addr
+
rnode_offset
)
&
0xfffffffe
height
=
ram_dump
.
read_
word
(
node_addr
+
rnode_height_offset
)
node_addr
=
ram_dump
.
read_word
(
root_addr
+
rnode_offset
)
&
0xfffffff
ffffffff
e
height
=
ram_dump
.
read_
int
(
node_addr
+
rnode_height_offset
)
if
height
>
len
(
height_to_maxindex
):
return
None
...
...
@@ -101,11 +102,11 @@ class IrqParse(RamParser):
shift
=
(
height
-
1
)
*
radix_tree_map_shift
for
h
in
range
(
height
,
0
,
-
1
):
node_addr
=
ram_dump
.
read_word
(
node_addr
+
slots_offset
+
((
index
>>
shift
)
&
radix_tree_map_mask
)
*
4
)
node_addr
+
slots_offset
+
((
index
>>
shift
)
&
radix_tree_map_mask
)
*
pointer_size
)
if
node_addr
==
0
:
return
None
shift
-=
radix_tree_map_shift
return
(
node_addr
&
0xfffffffe
)
return
(
node_addr
&
0xfffffff
ffffffff
e
)
def
print_irq_state_sparse_irq
(
self
,
ram_dump
):
h_irq_offset
=
ram_dump
.
field_offset
(
'
struct irq_desc
'
,
'
handle_irq
'
)
...
...
@@ -122,7 +123,7 @@ class IrqParse(RamParser):
cpu_str
=
''
irq_desc_tree
=
ram_dump
.
addr_lookup
(
'
irq_desc_tree
'
)
nr_irqs
=
ram_dump
.
read_
word
(
ram_dump
.
addr_lookup
(
'
nr_irqs
'
))
nr_irqs
=
ram_dump
.
read_
int
(
ram_dump
.
addr_lookup
(
'
nr_irqs
'
))
for
i
in
ram_dump
.
iter_cpus
():
cpu_str
=
cpu_str
+
'
{0:10}
'
.
format
(
'
CPU{0}
'
.
format
(
i
))
...
...
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