Trace data reporting

Trace data reporting#

ROCTracer: Trace data reporting
Trace data reporting

Operations to output trace data. More...

Functions

ROCTRACER_EXPORT int roctracer_plugin_write_callback_record (const roctracer_record_t *record, const void *callback_data)
 Report a single callback trace data. More...
 
ROCTRACER_EXPORT int roctracer_plugin_write_activity_records (const roctracer_record_t *begin, const roctracer_record_t *end)
 Report a range of activity trace data. More...
 

Detailed Description

Operations to output trace data.

Function Documentation

◆ roctracer_plugin_write_activity_records()

ROCTRACER_EXPORT int roctracer_plugin_write_activity_records ( const roctracer_record_t begin,
const roctracer_record_t end 
)

Report a range of activity trace data.

Reports a range of primarily domain independent trace data. The range is specified by a pointer to the first record and a pointer to one past the last record. roctracer_next_record is used to iterate the range in forward order.

Parameters
[in]beginPointer to the first record.
[in]endPointer to one past the last record.
Returns
Returns 0 on success and -1 on error.

◆ roctracer_plugin_write_callback_record()

ROCTRACER_EXPORT int roctracer_plugin_write_callback_record ( const roctracer_record_t record,
const void *  callback_data 
)

Report a single callback trace data.

Parameters
[in]recordPrimarily domain independent trace data.
[in]callback_dataDomain specific trace data. The type of this argument depends on the values of record.domain.
Returns
Returns 0 on success and -1 on error.