Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Emper Sleep Latency Eval
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lehrstuhl für Informatik 4 (Systemsoftware)
manycore
Emper Sleep Latency Eval
Commits
1e5bd357
Commit
1e5bd357
authored
3 years ago
by
Florian Fischer
Browse files
Options
Downloads
Patches
Plain Diff
user patched perf to measure stats
parent
06dbd419
No related branches found
No related tags found
No related merge requests found
Pipeline
#82694
failed
3 years ago
Stage: check
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
eval.py
+8
-3
8 additions, 3 deletions
eval.py
muhq-ma-eval.sh
+1
-1
1 addition, 1 deletion
muhq-ma-eval.sh
with
9 additions
and
4 deletions
eval.py
+
8
−
3
View file @
1e5bd357
...
@@ -38,8 +38,13 @@ def prepare_env(update_env: T.MutableMapping) -> T.Dict:
...
@@ -38,8 +38,13 @@ def prepare_env(update_env: T.MutableMapping) -> T.Dict:
return
current_env
return
current_env
PERF_EXE
=
'
perf
'
PERF_EXE
=
f
'
{
os
.
environ
[
"
HOME
"
]
}
/linux/waitfd/src/tools/perf/perf
'
PERF_EVENT_SELECTION
=
'
-dd
'
PERF_EVENTS
=
(
'
duration_time,user_time,system_time,task-clock,context-switches,cpu-migrations,
'
'
page-faults,cycles,stalled-cycles-frontend,stalled-cycles-backend,
'
'
instructions,branches,branch-misses,L1-dcache-load-misses,
'
'
L1-dcache-loads,L1-dcache-prefetches,L1-icache-load-misses,L1-icache-loads
'
)
def
perf_get_energy_events
()
->
str
:
def
perf_get_energy_events
()
->
str
:
...
@@ -76,7 +81,7 @@ def main(args):
...
@@ -76,7 +81,7 @@ def main(args):
elif
args
.
perf_stats
or
args
.
perf_record
:
elif
args
.
perf_stats
or
args
.
perf_record
:
perf_event_selection
=
'
,
'
.
join
(
perf_event_selection
=
'
,
'
.
join
(
args
.
perf_stats
)
if
args
.
perf_stats
else
PERF_EVENT
_SELECTION
args
.
perf_stats
)
if
args
.
perf_stats
else
f
'
-e
{
PERF_EVENT
S
}
'
if
args
.
perf_record
:
if
args
.
perf_record
:
perf_out
=
RESULT_DIR
/
f
'
{
target
}
.perf.data
'
perf_out
=
RESULT_DIR
/
f
'
{
target
}
.perf.data
'
...
...
This diff is collapsed.
Click to expand it.
muhq-ma-eval.sh
+
1
−
1
View file @
1e5bd357
...
@@ -22,7 +22,7 @@ for mode in $PULSE_MODES; do
...
@@ -22,7 +22,7 @@ for mode in $PULSE_MODES; do
for
u
in
20 80 100 200
;
do
for
u
in
20 80 100 200
;
do
./eval.py
--data-root
"
$OUT
"
--measure-energy
-u
"
$u
"
-p
"
$PULSE
"
\
./eval.py
--data-root
"
$OUT
"
--measure-energy
-u
"
$u
"
-p
"
$PULSE
"
\
-i
"
$ITERATIONS
"
--pulse-mode
"
${
mode
}
"
-i
"
$ITERATIONS
"
--pulse-mode
"
${
mode
}
"
--perf-stats
# create utilization symlink
# create utilization symlink
pushd
"
$OUT
"
>
/dev/null
pushd
"
$OUT
"
>
/dev/null
desc
=
"
$(
grep
-r
"utilization:
${
u
}
"
.
)
"
desc
=
"
$(
grep
-r
"utilization:
${
u
}
"
.
)
"
...
...
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