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
b1e1faf6
Commit
b1e1faf6
authored
10 years ago
by
Linux Build Service Account
Committed by
Gerrit - the friendly Code Review server
10 years ago
Browse files
Options
Downloads
Plain Diff
Merge "linux-ramdump-parser-v2: update client dump data id table"
parents
7efeb39d
fd9a5f00
No related branches found
Branches containing commit
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/debug_image_v2.py
+8
-2
8 additions, 2 deletions
linux-ramdump-parser-v2/debug_image_v2.py
with
8 additions
and
2 deletions
linux-ramdump-parser-v2/debug_image_v2.py
+
8
−
2
View file @
b1e1faf6
...
@@ -28,7 +28,9 @@ class client(object):
...
@@ -28,7 +28,9 @@ class client(object):
MSM_DUMP_DATA_TMC_ETF
=
0xF0
MSM_DUMP_DATA_TMC_ETF
=
0xF0
MSM_DUMP_DATA_TMC_REG
=
0x100
MSM_DUMP_DATA_TMC_REG
=
0x100
MSM_DUMP_DATA_TMC_ETF_REG
=
0x101
MSM_DUMP_DATA_TMC_ETF_REG
=
0x101
MSM_DUMP_DATA_MAX
=
0x110
MSM_DUMP_DATA_LOG_BUF
=
0x110
MSM_DUMP_DATA_LOG_BUF_FIRST_IDX
=
0x111
MSM_DUMP_DATA_MAX
=
0x112
client_table
=
{
client_table
=
{
'
MSM_DUMP_DATA_CPU_CTX
'
:
'
parse_cpu_ctx
'
,
'
MSM_DUMP_DATA_CPU_CTX
'
:
'
parse_cpu_ctx
'
,
...
@@ -89,7 +91,7 @@ class DebugImage_v2():
...
@@ -89,7 +91,7 @@ class DebugImage_v2():
self
.
dump_table_id_lookup_table
=
ram_dump
.
gdbmi
.
get_enum_lookup_table
(
self
.
dump_table_id_lookup_table
=
ram_dump
.
gdbmi
.
get_enum_lookup_table
(
'
msm_dump_table_ids
'
,
0x110
)
'
msm_dump_table_ids
'
,
0x110
)
self
.
dump_data_id_lookup_table
=
ram_dump
.
gdbmi
.
get_enum_lookup_table
(
self
.
dump_data_id_lookup_table
=
ram_dump
.
gdbmi
.
get_enum_lookup_table
(
'
msm_dump_data_ids
'
,
0x11
0
)
'
msm_dump_data_ids
'
,
0x11
2
)
cpu_present_bits
=
ram_dump
.
read_word
(
'
cpu_present_bits
'
)
cpu_present_bits
=
ram_dump
.
read_word
(
'
cpu_present_bits
'
)
cpus
=
bin
(
cpu_present_bits
).
count
(
'
1
'
)
cpus
=
bin
(
cpu_present_bits
).
count
(
'
1
'
)
# per cpu entries
# per cpu entries
...
@@ -106,6 +108,10 @@ class DebugImage_v2():
...
@@ -106,6 +108,10 @@ class DebugImage_v2():
# 0x100 - tmc-etr registers and 0x101 - for tmc-etf registers
# 0x100 - tmc-etr registers and 0x101 - for tmc-etf registers
self
.
dump_data_id_lookup_table
[
self
.
dump_data_id_lookup_table
[
client
.
MSM_DUMP_DATA_TMC_REG
+
1
]
=
'
MSM_DUMP_DATA_TMC_REG
'
client
.
MSM_DUMP_DATA_TMC_REG
+
1
]
=
'
MSM_DUMP_DATA_TMC_REG
'
self
.
dump_data_id_lookup_table
[
client
.
MSM_DUMP_DATA_LOG_BUF
]
=
'
MSM_DUMP_DATA_LOG_BUF
'
self
.
dump_data_id_lookup_table
[
client
.
MSM_DUMP_DATA_LOG_BUF_FIRST_IDX
]
=
'
MSM_DUMP_DATA_LOG_BUF_FIRST_IDX
'
dump_table_ptr_offset
=
ram_dump
.
field_offset
(
dump_table_ptr_offset
=
ram_dump
.
field_offset
(
'
struct msm_memory_dump
'
,
'
table
'
)
'
struct msm_memory_dump
'
,
'
table
'
)
dump_table_version_offset
=
ram_dump
.
field_offset
(
dump_table_version_offset
=
ram_dump
.
field_offset
(
...
...
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