mttrace
Abstract
Sets the trace printout mode for the parallel kernel.
Syntax
mttrace <reassembly_mode>
| Argument | Type | Description |
|---|---|---|
<reassembly_mode> |
string | specifies how tracing information is grouped when running a parallel simulation. (See Details section for possible option values.) |
Details
This command is available only when a parallel kernel is being used.
There are three options when specifying the mttrace command:
- immediate – no buffering occurs. Traces are printed out as they occur during simulation.
- function – function buffering occurs. All traces belonging to a particular function are buffered and printed out upon return from that function.
- event – event buffering occurs. All traces belonging to a particular event (or a specific pipeline stage invocation in radio transmission events) are buffered and then printed out when a new event occurs.
These options are shown in the Example section.
Example
ODB> mttrace immediate
* Thread 5: op_pk_nfd_get (pkptr, fd_name, value_ptr)
* Thread 4: Kernel Action: copying packet
Thread 1: field value (11)
Thread 4: original packet (0)
Thread 5: packet ID (5)
Thread 4: copy packet (4)
Thread 1: field size (32)
Thread 5: field name (index)
Thread 5: value (0)
* Thread 1: op_pk_destroy (pkptr)
* Thread 5: op_pk_nfd_get (pkptr, fd_name, value_ptr)
Thread 1: packet ID (3)
Thread 5: packet ID (5)
* Thread 1: Kernel Action: Destroying Packet
Thread 1: packet ID (3)
Thread 5: field name (src_time)
ODB> mttrace function
* Thread 4: Kernel Action: copying packet
Thread 4: original packet (0)
Thread 4: copy packet (2)
* Thread 1: op_pk_nfd_get (pkptr, fd_name, value_ptr)
Thread 1: packet ID (3)
Thread 1: field name (src_id)
Thread 1: value (7)
* Thread 4: Kernel Action: Radio pipeline
Thread 4: Calling (closure) pipeline stage
Thread 4: packet ID (2)
* Thread 1: op_pk_nfd_get (pkptr, fd_name, value_ptr)
Thread 1: packet ID (3)
Thread 1: field name (index)
Thread 1: value (0)
* Thread 4: op_pk_copy (pkptr)
* Thread 4: Kernel Action: copying packet
Thread 4: original packet (2)
Thread 4: copy packet (5)
ODB> mttrace event
* Thread 1: Kernel Action: Radio Transmitter object
Thread 1: Beginning transmission of packet(s)
Thread 1: channel (0)
Thread 1: packet ID (0)
* Thread 1: Kernel Action: Radio pipeline
Thread 1: Calling (txdel) pipeline stage
Thread 1: packet ID (0)
* Thread 1: op_td_get_dbl (pkptr, tda_index)
Thread 1: TDA attribute (OPC_TDA_RA_TX_DRATE)
Thread 1: TDA value (1,024 bps)
* Thread 1: op_pk_total_size_get (pkptr)
Thread 1: packet ID (0)
Thread 1: total size (96)
* Thread 1: op_td_set_dbl (pkptr, tda_index, value)
Thread 1: packet ID (0)
Thread 1: TDA attribute (OPC_TDA_RA_TX_DELAY)
Thread 1: TDA value (0.09375 sec.)