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

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com