Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
igt-gpu-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
55
Issues
55
List
Boards
Labels
Service Desk
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
drm
igt-gpu-tools
Commits
177208b0
Commit
177208b0
authored
Aug 27, 2013
by
Chris Wilson
🤔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
overlay: Tidy presentation of ring busy values
Signed-off-by:
Chris Wilson
<
chris@chris-wilson.co.uk
>
parent
b1d2a78a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
overlay/gpu-top.c
overlay/gpu-top.c
+11
-3
No files found.
overlay/gpu-top.c
View file @
177208b0
...
...
@@ -292,11 +292,19 @@ int gpu_top_update(struct gpu_top *gt)
d_time
=
s
->
time
-
d
->
time
;
for
(
n
=
0
;
n
<
gt
->
num_rings
;
n
++
)
{
gt
->
ring
[
n
].
u
.
u
.
busy
=
100
*
(
s
->
busy
[
n
]
-
d
->
busy
[
n
]
)
/
d_time
;
gt
->
ring
[
n
].
u
.
u
.
busy
=
(
100
*
(
s
->
busy
[
n
]
-
d
->
busy
[
n
])
+
d_time
/
2
)
/
d_time
;
if
(
gt
->
have_wait
)
gt
->
ring
[
n
].
u
.
u
.
wait
=
100
*
(
s
->
wait
[
n
]
-
d
->
wait
[
n
]
)
/
d_time
;
gt
->
ring
[
n
].
u
.
u
.
wait
=
(
100
*
(
s
->
wait
[
n
]
-
d
->
wait
[
n
])
+
d_time
/
2
)
/
d_time
;
if
(
gt
->
have_sema
)
gt
->
ring
[
n
].
u
.
u
.
sema
=
100
*
(
s
->
sema
[
n
]
-
d
->
sema
[
n
])
/
d_time
;
gt
->
ring
[
n
].
u
.
u
.
sema
=
(
100
*
(
s
->
sema
[
n
]
-
d
->
sema
[
n
])
+
d_time
/
2
)
/
d_time
;
/* in case of rounding + sampling errors, fudge */
if
(
gt
->
ring
[
n
].
u
.
u
.
busy
>
100
)
gt
->
ring
[
n
].
u
.
u
.
busy
=
100
;
if
(
gt
->
ring
[
n
].
u
.
u
.
wait
>
100
)
gt
->
ring
[
n
].
u
.
u
.
wait
=
100
;
if
(
gt
->
ring
[
n
].
u
.
u
.
sema
>
100
)
gt
->
ring
[
n
].
u
.
u
.
sema
=
100
;
}
update
=
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment