next up previous contents index
Next: Utility Routines Up: Data-Trace Library Previous: dtLoadXObjRomOpts

Usage Rules

 

A romfile entry can be used to create a trace object for a protocol that supports tracing. The protocol's initialization routine should include a call to dtLoadXObjRomOpts(); when this function is invoked, the romfile is scanned looking for entries that bear the name of that protocol and that have meaning to the datatrace facility.

A romfile entry to create a trace object for the IP protocol would look like:

    ip   trace   name=ip_trace   logsize=10000   filesize=3;

The first argument in the romfile entry must be the protocol name, and the second is `` trace''. The `` name'' argument is optional; if not specified, the trace object is given no name. The above romfile entry would result in a call to

dtCreateTraceObj() with the specified parameters when the

dtLoadXObjRomOpts() function was invoked.



Larry Peterson
Wed Jan 10 10:40:08 MST 1996