Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
a9459e43
Commit
a9459e43
authored
Dec 03, 2020
by
Hejing Li
Browse files
netperf.py: add qemu timing
parent
5f2549b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
experiments/pyexps/netperf.py
experiments/pyexps/netperf.py
+8
-1
No files found.
experiments/pyexps/netperf.py
View file @
a9459e43
...
...
@@ -2,7 +2,7 @@ import modes.experiments as exp
import
modes.simulators
as
sim
import
modes.nodeconfig
as
node
host_types
=
[
'qemu'
,
'gem5'
]
host_types
=
[
'qemu'
,
'gem5'
,
'qt'
]
nic_types
=
[
'i40e'
,
'cd_bm'
,
'cd_verilator'
]
net_types
=
[
'switch'
,
'ns3'
]
experiments
=
[]
...
...
@@ -24,8 +24,15 @@ for host_type in host_types:
# host
if
host_type
==
'qemu'
:
host_class
=
sim
.
QemuHost
elif
host_type
==
'qt'
:
def
qemu_timing
():
h
=
sim
.
QemuHost
()
h
.
sync
=
True
return
h
host_class
=
qemu_timing
elif
host_type
==
'gem5'
:
host_class
=
sim
.
Gem5Host
e
.
checkpoint
=
True
else
:
raise
NameError
(
host_type
)
...
...
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