Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
a7ff247b
Commit
a7ff247b
authored
Jul 17, 2009
by
Robert Ricci
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a new compile-time option, -DNODE_DUMP_DEBUG, to print out lots
of info on virtual and physical nodes after parsing.
parent
a6893620
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
assign/assign.cc
assign/assign.cc
+22
-0
No files found.
assign/assign.cc
View file @
a7ff247b
...
...
@@ -1080,6 +1080,28 @@ int main(int argc,char **argv) {
pclass_debug
();
#endif
#ifdef NODE_DUMP_DEBUG
cerr
<<
"========== Physical nodes"
<<
endl
;
pvertex_iterator
vit
,
vendit
;
tie
(
vit
,
vendit
)
=
vertices
(
PG
);
for
(;
vit
!=
vendit
;
++
vit
)
{
pvertex
cur
=
*
vit
;
tb_pnode
*
curP
=
get
(
pvertex_pmap
,
cur
);
cerr
<<
*
curP
;
}
cerr
<<
"========== End physical nodes"
<<
endl
;
cerr
<<
"========== Virtual nodes"
<<
endl
;
vvertex_iterator
vvit
,
vvendit
;
tie
(
vvit
,
vvendit
)
=
vertices
(
VG
);
for
(;
vvit
!=
vvendit
;
++
vvit
)
{
vvertex
cur
=
*
vvit
;
tb_vnode
*
curV
=
get
(
vvertex_pmap
,
cur
);
cerr
<<
*
curV
;
}
cerr
<<
"========== End virtual nodes"
<<
endl
;
#endif
/*
* There is a reason for the ordering of the prechecks. The mapping precheck
* basically assumes that the type precheck has already run, so it doesn't
...
...
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