TIOVX User Guide

Detailed Description

APIs for debug operations on the host.

Defines

#define VX_PRINT(zone, message, ...)   do { tivx_print(((vx_enum)zone), "[%s:%u] " message, __FUNCTION__, __LINE__, ## __VA_ARGS__); } while (1 == 0)
 The OpenVX Debugging Facility.
 

Enumerations

enum  tivx_debug_zone_e {
  VX_ZONE_ERROR = 0,
  VX_ZONE_WARNING = 1,
  VX_ZONE_API = 2,
  VX_ZONE_INFO = 3,
  VX_ZONE_PERF = 4,
  VX_ZONE_CONTEXT = 5,
  VX_ZONE_OSAL = 6,
  VX_ZONE_REFERENCE = 7,
  VX_ZONE_ARRAY = 8,
  VX_ZONE_IMAGE = 9,
  VX_ZONE_SCALAR = 10,
  VX_ZONE_KERNEL = 11,
  VX_ZONE_GRAPH = 12,
  VX_ZONE_NODE = 13,
  VX_ZONE_PARAMETER = 14,
  VX_ZONE_DELAY = 15,
  VX_ZONE_TARGET = 16,
  VX_ZONE_LOG = 17,
  VX_ZONE_INIT = 18,
  VX_ZONE_OPTIMIZATION = 19
}
 These are the bit flags for debugging. More...
 

Functions

void tivx_print (vx_enum zone, const char *format,...)
 Internal Printing Function. More...
 
void tivx_set_debug_zone (vx_enum zone)
 Sets a zone bit in the debug mask. More...
 
void tivx_clr_debug_zone (vx_enum zone)
 Clears the zone bit in the mask. More...
 
vx_bool tivx_get_debug_zone (vx_enum zone)
 Returns true or false if the zone bit is set or cleared. More...
 

Enumeration Type Documentation

◆ tivx_debug_zone_e

These are the bit flags for debugging.

Enumerator
VX_ZONE_ERROR 

Used for most errors

VX_ZONE_WARNING 

Used to warning developers of possible issues

VX_ZONE_API 

Used to trace API calls and return values

VX_ZONE_INFO 

Used to show run-time processing debug

VX_ZONE_PERF 

Used to show performance information

VX_ZONE_CONTEXT 

Used to show information related to context objects

VX_ZONE_OSAL 

Used to show information related to the OS abstraction layer

VX_ZONE_REFERENCE 

Used to show information related to reference objects

VX_ZONE_ARRAY 

Used to show information related to array objects

VX_ZONE_IMAGE 

Used to show information related to image objects

VX_ZONE_SCALAR 

Used to show information related to scalar objects

VX_ZONE_KERNEL 

Used to show information related to kernel objects

VX_ZONE_GRAPH 

Used to show information related to graph objects

VX_ZONE_NODE 

Used to show information related to node objects

VX_ZONE_PARAMETER 

Used to show information related to parameter objects

VX_ZONE_DELAY 

Used to show information related to delay objects

VX_ZONE_TARGET 

Used to show information related to OpenVX targets

VX_ZONE_LOG 

Used to show generic logging information

VX_ZONE_INIT 

Used to show initialization logs

VX_ZONE_OPTIMIZATION 

Used to provide optimization tips

Definition at line 85 of file tivx_debug.h.

Function Documentation

◆ tivx_print()

void tivx_print ( vx_enum  zone,
const char *  format,
  ... 
)

Internal Printing Function.

Parameters
[in]zoneThe debug zone from tivx_debug_zone_e.
[in]formatThe format string to print.
[in]...The variable list of arguments.

◆ tivx_set_debug_zone()

void tivx_set_debug_zone ( vx_enum  zone)

Sets a zone bit in the debug mask.

Parameters
[in]zoneThe debug zone from tivx_debug_zone_e.

◆ tivx_clr_debug_zone()

void tivx_clr_debug_zone ( vx_enum  zone)

Clears the zone bit in the mask.

Parameters
[in]zoneThe debug zone from tivx_debug_zone_e.

◆ tivx_get_debug_zone()

vx_bool tivx_get_debug_zone ( vx_enum  zone)

Returns true or false if the zone bit is set or cleared.

Parameters
[in]zoneThe debug zone from tivx_debug_zone_e.