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
56
Issues
56
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
19b412b3
Commit
19b412b3
authored
Nov 16, 2010
by
Eric Anholt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
intel_gpu_top: Print stats regs on Ironlake as well.
parent
292ae453
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
tools/intel_gpu_top.c
tools/intel_gpu_top.c
+4
-3
No files found.
tools/intel_gpu_top.c
View file @
19b412b3
...
...
@@ -38,6 +38,8 @@
#define MAX_NUM_TOP_BITS 100
#define HAS_STATS_REGS(devid) IS_965(devid)
struct
top_bit
{
struct
instdone_bit
*
bit
;
int
count
;
...
...
@@ -398,7 +400,7 @@ int main(int argc, char **argv)
usleep
(
1000000
/
SAMPLES_PER_SEC
);
}
if
(
IS_GEN4
(
devid
)
||
IS_GEN6
(
devid
))
{
if
(
HAS_STATS_REGS
(
devid
))
{
for
(
i
=
0
;
i
<
STATS_COUNT
;
i
++
)
{
uint32_t
stats_high
,
stats_low
,
stats_high_2
;
...
...
@@ -446,8 +448,7 @@ int main(int argc, char **argv)
printf
(
"%*s"
,
PERCENTAGE_BAR_END
,
""
);
}
if
(
i
<
STATS_COUNT
&&
(
IS_GEN4
(
devid
)
||
IS_GEN6
(
devid
)))
{
if
(
i
<
STATS_COUNT
&&
HAS_STATS_REGS
(
devid
))
{
printf
(
"%13s: %llu (%lld/sec)"
,
stats_reg_names
[
i
],
stats
[
i
],
...
...
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