Debug statements in at2sim
The amount of debuging information printed by at2sim may be controlled
for all stars that inherit from DEApplication using debugLevel state.
The default value of 0 disables all debuging printouts for a star.
Other values will be treated as a "bitmask" that allows to select appropriate
type of information:
- 1 - various...
- 2,4,8 - Dispatcher debug info
- 16 - Processor's debug info
- 128 - NIC-level information (receiving and sending packets, including FlowControl
- 1024 - information about JobList execution for Tasks
Any non-zero value will cause printing of "header" and "footer" line showing
current modeling time and the name of the star, so it is possible to
identify the beginning and the end of a single execution block in a star.
For switch stars - the ones that inherit from DEEthSwitch_param, there exist control
parameter OutputControl, which controls the amount of information printed.
The values (bitmask) have the following meaning:
- 1 (default) - information about packets being lost
- 4 - information about Ethernet Flow Control frames
- 32 - full debug information
Additionally, the amount of information printed by switches at wrapup may be controlled
using wrapupVerbose state - the meaning of values are the following:
- 0 - none
- 1 - FC stats, Max and Typical Qlen for ports
- 2 - Ports queue lengths - percentage of time
- 4 - Ports queue lengths - number of occurences
- 8 - Wait pool statistics
- 16 - Backplane statistics
- 32 - Header with switch name, wrapup time and number of modules
- 64 - Headers for modules, with number of ports in a module
- 128 - Headers for port queue length statistics showing queue length values
Las modified by Piotr Golonka, 06 April 2004