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
837d31c1
Commit
837d31c1
authored
5 years ago
by
Linux Build Service Account
Committed by
Gerrit - the friendly Code Review server
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge "ldrp_v2: sched-info: Fix finding number of clusters" into opensource-tools.lnx.1.0
parents
bbc7c04d
d87ca0cd
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/sched_info.py
+4
-5
4 additions, 5 deletions
linux-ramdump-parser-v2/sched_info.py
with
4 additions
and
5 deletions
linux-ramdump-parser-v2/sched_info.py
+
4
−
5
View file @
837d31c1
...
@@ -41,19 +41,18 @@ def verify_active_cpus(ramdump):
...
@@ -41,19 +41,18 @@ def verify_active_cpus(ramdump):
if
(
cluster_id_off
is
None
):
if
(
cluster_id_off
is
None
):
print_out_str
(
"
\n
Invalid cluster topology detected
\n
"
)
print_out_str
(
"
\n
Invalid cluster topology detected
\n
"
)
clusters
=
ramdump
.
read_int
(
cpu_topology_addr
+
cluster_id_off
+
((
nr_cpus
-
1
)
*
cpu_topology_size
))
clusters
+=
1
# INFO: from 4.19 onwards, core_sibling mask contains only online cpus,
# INFO: from 4.19 onwards, core_sibling mask contains only online cpus,
# find out cluster cpus dynamically.
# find out cluster cpus dynamically.
cluster_nrcpus
=
[
0
]
*
(
clusters
)
cluster_nrcpus
=
[
0
]
for
j
in
range
(
0
,
nr_cpus
):
for
j
in
range
(
0
,
nr_cpus
):
c_id
=
ramdump
.
read_int
(
cpu_topology_addr
+
(
j
*
cpu_topology_size
)
+
cluster_id_off
)
c_id
=
ramdump
.
read_int
(
cpu_topology_addr
+
(
j
*
cpu_topology_size
)
+
cluster_id_off
)
if
len
(
cluster_nrcpus
)
<=
c_id
:
cluster_nrcpus
.
extend
([
0
])
cluster_nrcpus
[
c_id
]
+=
1
cluster_nrcpus
[
c_id
]
+=
1
next_cluster_cpu
=
0
next_cluster_cpu
=
0
for
i
in
range
(
0
,
cluster
s
):
for
i
in
range
(
0
,
len
(
cluster
_nrcpus
)
):
cluster_cpus
=
ramdump
.
read_word
(
cpu_topology_addr
+
cluster_cpus
=
ramdump
.
read_word
(
cpu_topology_addr
+
(
next_cluster_cpu
*
cpu_topology_size
)
+
core_sib_off
)
(
next_cluster_cpu
*
cpu_topology_size
)
+
core_sib_off
)
cluster_online_cpus
=
cpu_online_bits
&
cluster_cpus
cluster_online_cpus
=
cpu_online_bits
&
cluster_cpus
...
...
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