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
6449a50a
Commit
6449a50a
authored
Aug 26, 2021
by
Antoine Kaufmann
Browse files
experiment: parameter for start timestamp for NIC simulators
parent
d6852e79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
experiments/simbricks/simulators.py
experiments/simbricks/simulators.py
+4
-3
No files found.
experiments/simbricks/simulators.py
View file @
6449a50a
...
@@ -98,6 +98,7 @@ class NICSim(Simulator):
...
@@ -98,6 +98,7 @@ class NICSim(Simulator):
name
=
''
name
=
''
sync_mode
=
0
sync_mode
=
0
start_tick
=
0
sync_period
=
500
sync_period
=
500
pci_latency
=
500
pci_latency
=
500
eth_latency
=
500
eth_latency
=
500
...
@@ -110,10 +111,10 @@ class NICSim(Simulator):
...
@@ -110,10 +111,10 @@ class NICSim(Simulator):
net
.
nics
.
append
(
self
)
net
.
nics
.
append
(
self
)
def
basic_run_cmd
(
self
,
env
,
name
,
extra
=
None
):
def
basic_run_cmd
(
self
,
env
,
name
,
extra
=
None
):
cmd
=
'%s/%s %s %s %s %d
0
%d %d %d'
%
\
cmd
=
'%s/%s %s %s %s %d
%d
%d %d %d'
%
\
(
env
.
repodir
+
'/sims/nic'
,
name
,
env
.
nic_pci_path
(
self
),
env
.
nic_eth_path
(
self
),
(
env
.
repodir
+
'/sims/nic'
,
name
,
env
.
nic_pci_path
(
self
),
env
.
nic_eth_path
(
self
),
env
.
nic_shm_path
(
self
),
self
.
sync_mode
,
self
.
s
ync_period
,
env
.
nic_shm_path
(
self
),
self
.
sync_mode
,
self
.
s
tart_tick
,
self
.
pci_latency
,
self
.
eth_latency
)
self
.
sync_period
,
self
.
pci_latency
,
self
.
eth_latency
)
if
extra
is
not
None
:
if
extra
is
not
None
:
cmd
+=
' '
+
extra
cmd
+=
' '
+
extra
...
...
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