mtrace
Abstract
Sets a trace for the specified module. Traces consist of statements indicating process invocation, entry and exit of process states, Kernel Procedure invocation, and selected Simulation Kernel internal actions.
Syntax
mtrace <objref>
| Argument | Type | Description |
|---|---|---|
<objref> |
integer or string | numeric object ID or hierarchical name of the module-of-interest An object ID for this argument can be obtained by using the ODB commands objmap or objid. |
Details
An event that is associated with the specified module is indicated by an event banner that precedes the trace messages. Traces can be suspended by the command susptrace, reactivated by acttrace, or deleted by deltrace. An alias for an earlier version of this command is supported (modtrace).
Example
ODB> mtrace top.ethcoax_net.stn_5.bus_tx0
Added trace #0: trace on module (top.pksw1.node_2.rcv)
ODB> cont
____________________________ (ODB 18.6.0: Event) ____________________________
* Time : 10.22 sec, [10s . 220ms]
* Event : execution ID (111), schedule ID (#126), type (remote (start reception))
* Source : execution ID (109), top.pksw1.hub.xmt1 [Objid=37] (pt-pt transmitter)
* Data : code (0)
> Module : top.pksw1.node_2.rcv [Objid=76] (pt-pt receiver)
Kernel Action: Pt-Pt Receiver object
Beginning reception of packet
module (76)
channel (0)
packet ID (4)
____________________________ (ODB 18.6.0: Event) ____________________________
* Time : 10.33 sec, [10s . 330ms]
* Event : execution ID (119), schedule ID (#127), type (remote (end reception))
* Source : execution ID (109), top.pksw1.hub.xmt1 [Objid=37] (pt-pt transmitter)
* Data : code (0)
> Module : top.pksw1.node_2.rcv [Objid=76] (pt-pt receiver)
Kernel Action: Pt-Pt Receiver object
Completing reception of packet
module (76)
channel (0)
packet ID (4)
Kernel Action: Pt-Pt pipeline
Calling (error) pipeline stage
module (76)
packet ID (4)
+- error_zero_err (pkptr)
|
| +- op_td_set_int (pkptr, tda_index, value)
| | packet ID (4)
| | TDA attribute (OPC_TDA_PT_NUM_ERRORS)
| | TDA value (0 bit errs)
| +-------
|
+-------
Kernel Action: Pt-Pt pipeline
Calling (ecc) pipeline stage
module (76)
packet ID (4)
+- ecc_zero_err (pkptr)
|
| +- op_td_is_set (pkptr, tda_index)
| | packet ID (4)
| | TDA attribute (OPC_TDA_PT_ND_FAIL)
| | tda is set (false)
| +-------
|
| +- op_td_set_int (pkptr, tda_index, value)
| | packet ID (4)
| | TDA attribute (OPC_TDA_PT_PK_ACCEPT)
| | TDA value (OPC_TRUE)
| +-------
|
+-------
Kernel Action: Pt-Pt Receiver object
Packet successfully received
module (76)
channel (0)
packet ID (4)
...