op_trace_suspend()
Abstract
Suspends all trace output.
Syntax
op_trace_suspend ()
| Argument | Type | Description |
|---|---|---|
| no arguments |
Return Type
void
No return value.
Example
/* allocate a list */
list_ptr = (List *) op_prg_mem_alloc (sizeof (List));
/* initialize a list */
op_prg_list_init (list_ptr);
/** move the contents of subqueue #0 into the list **/
/* determine the number of packets in the subqueue */
subq_size = op_subq_stat (0, OPC_QSTAT_PKSIZE);
/* don't bother tracing the inserts */
op_trace_suspend();
for (i = 0; i < subq_size; i++)
{
/* take a single packet from the subqueue head */
pkptr = op_subq_pk_remove (0, OPC_QPOS_HEAD);
/* insert the packet onto the list tail */
op_prg_list_insert (list_ptr, pkptr, OPC_LISTPOS_TAIL);
}
/* reactivate tracing */
op_trace_resume();
Details
This KP has no effect when ODB is not enabled.
Purpose
Provides a way to temporarily suspend all tracing in ODB. This can help you focus on the issues of interest by skipping long sequences of similar calls, such as when iterating through a Prg list.
Errors
- None.
Reference
- Use op_trace_resume() to reactivate tracing.