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
21a4d646
Commit
21a4d646
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: add tlb enum values"
parents
1f3fa602
f3fb52f4
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/debug_image_v2.py
+16
-3
16 additions, 3 deletions
linux-ramdump-parser-v2/debug_image_v2.py
with
16 additions
and
3 deletions
linux-ramdump-parser-v2/debug_image_v2.py
+
16
−
3
View file @
21a4d646
...
...
@@ -22,9 +22,12 @@ from qdss import QDSSDump
from
watchdog_v2
import
TZRegDump_v2
MEMDUMPV2_MAGIC
=
0x42445953
MAX_NUM_ENTRIES
=
0x130
class
client
(
object
):
MSM_DUMP_DATA_CPU_CTX
=
0x00
MSM_DUMP_DATA_L1_INST_TLB
=
0x20
MSM_DUMP_DATA_L1_DATA_TLB
=
0x40
MSM_DUMP_DATA_L1_INST_CACHE
=
0x60
MSM_DUMP_DATA_L1_DATA_CACHE
=
0x80
MSM_DUMP_DATA_ETM_REG
=
0xA0
...
...
@@ -36,10 +39,13 @@ class client(object):
MSM_DUMP_DATA_TMC_ETF_REG
=
0x101
MSM_DUMP_DATA_LOG_BUF
=
0x110
MSM_DUMP_DATA_LOG_BUF_FIRST_IDX
=
0x111
MSM_DUMP_DATA_MAX
=
0x112
MSM_DUMP_DATA_L2_TLB
=
0x120
MSM_DUMP_DATA_MAX
=
MAX_NUM_ENTRIES
client_table
=
{
'
MSM_DUMP_DATA_CPU_CTX
'
:
'
parse_cpu_ctx
'
,
'
MSM_DUMP_DATA_L1_INST_TLB
'
:
'
parse_l1_inst_tlb
'
,
'
MSM_DUMP_DATA_L1_DATA_TLB
'
:
'
parse_l1_data_tlb
'
,
'
MSM_DUMP_DATA_L1_INST_CACHE
'
:
'
parse_l1_inst_cache
'
,
'
MSM_DUMP_DATA_L1_DATA_CACHE
'
:
'
parse_l1_data_cache
'
,
'
MSM_DUMP_DATA_ETM_REG
'
:
'
parse_qdss_common
'
,
...
...
@@ -48,6 +54,7 @@ client_table = {
'
MSM_DUMP_DATA_OCMEM
'
:
'
parse_ocmem
'
,
'
MSM_DUMP_DATA_TMC_ETF
'
:
'
parse_qdss_common
'
,
'
MSM_DUMP_DATA_TMC_REG
'
:
'
parse_qdss_common
'
,
'
MSM_DUMP_DATA_L2_TLB
'
:
'
parse_l2_tlb
'
,
}
qdss_tag_to_field_name
=
{
...
...
@@ -219,9 +226,9 @@ class DebugImage_v2():
self
.
dump_type_lookup_table
=
ram_dump
.
gdbmi
.
get_enum_lookup_table
(
'
msm_dump_type
'
,
2
)
self
.
dump_table_id_lookup_table
=
ram_dump
.
gdbmi
.
get_enum_lookup_table
(
'
msm_dump_table_ids
'
,
0x110
)
'
msm_dump_table_ids
'
,
MAX_NUM_ENTRIES
)
self
.
dump_data_id_lookup_table
=
ram_dump
.
gdbmi
.
get_enum_lookup_table
(
'
msm_dump_data_ids
'
,
0x112
)
'
msm_dump_data_ids
'
,
MAX_NUM_ENTRIES
)
cpu_present_bits
=
ram_dump
.
read_word
(
'
cpu_present_bits
'
)
cpus
=
bin
(
cpu_present_bits
).
count
(
'
1
'
)
# per cpu entries
...
...
@@ -229,6 +236,10 @@ class DebugImage_v2():
self
.
dump_data_id_lookup_table
[
client
.
MSM_DUMP_DATA_CPU_CTX
+
i
]
=
'
MSM_DUMP_DATA_CPU_CTX
'
self
.
dump_data_id_lookup_table
[
client
.
MSM_DUMP_DATA_L1_INST_TLB
+
i
]
=
'
MSM_DUMP_DATA_L1_INST_TLB
'
self
.
dump_data_id_lookup_table
[
client
.
MSM_DUMP_DATA_L1_DATA_TLB
+
i
]
=
'
MSM_DUMP_DATA_L1_DATA_TLB
'
self
.
dump_data_id_lookup_table
[
client
.
MSM_DUMP_DATA_L1_INST_CACHE
+
i
]
=
'
MSM_DUMP_DATA_L1_INST_CACHE
'
self
.
dump_data_id_lookup_table
[
...
...
@@ -242,6 +253,8 @@ class DebugImage_v2():
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
'
self
.
dump_data_id_lookup_table
[
client
.
MSM_DUMP_DATA_L2_TLB
]
=
'
MSM_DUMP_DATA_L2_TLB
'
dump_table_ptr_offset
=
ram_dump
.
field_offset
(
'
struct msm_memory_dump
'
,
'
table
'
)
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