APIs for debug operations on the host.
|
#define | VX_PRINT(zone, message, ...) do { tivx_print_global(((vx_enum)zone), "[%s:%u] " message, __FUNCTION__, __LINE__, ## __VA_ARGS__); } while (1 == 0) |
| Utility macro to print debug information if specified zone is globally set.
|
|
#define | VX_PRINT_GRAPH(zone, graph, message, ...) do { tivx_print_object(((vx_enum)zone), tivxGetGraphDebugZonemask(graph), "[ %s ] " message, tivxGetGraphName(graph), ## __VA_ARGS__); } while (1 == 0) |
| Utility macro to print debug information if specified zone is set on a given graph object.
|
|
#define | VX_PRINT_NODE(zone, node, message, ...) do { tivx_print_object(((vx_enum)zone), tivxGetNodeDebugZonemask(node), "[ %s ] " message, tivxGetNodeName(node), ## __VA_ARGS__); } while (1 == 0) |
| Utility macro to print debug information if specified zone is set on a given node object.
|
|
#define | VX_PRINT_KERNEL(zone, kernel, message, ...) do { tivx_print_object(((vx_enum)zone), tivxGetTargetKernelInstanceDebugZonemask(kernel), "[%s:%u] " message, __FUNCTION__, __LINE__, ## __VA_ARGS__); } while (1 == 0) |
| Utility macro to print debug information if specified zone is set on a given target kernel instance.
|
|
◆ tivx_debug_zone_e
These are the bit flags for debugging.
Enumerator |
---|
VX_ZONE_ERROR | Used for error prints
|
VX_ZONE_WARNING | Used for prints that report possible issues
|
VX_ZONE_INFO | Used for debug processing/tracking prints
|
VX_ZONE_MAX | Used to indicate the upper bound of zone enumerations
|
Definition at line 87 of file include/TI/tivx_debug.h.
◆ tivx_find_zone_name()
Returns the name of an enumerated debug zone.
- Parameters
-
◆ tivx_print_global()
void tivx_print_global |
( |
vx_enum |
zone, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
Internal printing function for the global debug zone bitmask.
- Parameters
-
[in] | zone | The debug zone from tivx_debug_zone_e required to print the given message. |
[in] | format | The format string to print. |
[in] | ... | The variable list of arguments. |
◆ tivx_print_object()
void tivx_print_object |
( |
vx_enum |
zone, |
|
|
vx_uint32 |
debug_zonemask, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
Internal printing function for a framework object with a set debug zone bitmask.
- Parameters
-
[in] | zone | The debug zone from tivx_debug_zone_e required to print the given message. |
[in] | debug_zonemask | The debug zone bitmask of a framework object |
[in] | format | The 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
-
◆ tivx_clr_debug_zone()
void tivx_clr_debug_zone |
( |
vx_enum |
zone | ) |
|
Clears the zone bit in the mask.
- Parameters
-
◆ tivx_is_zone_enabled()
Returns true or false if the zone bit is set or cleared.
- Parameters
-
◆ tivxGetNodeDebugZonemask()
Returns the debug zonemask value of a node.
- Parameters
-
[in] | node | A given vx_node object. |
◆ tivxGetGraphDebugZonemask()
Returns the debug zonemask value of a graph.
- Parameters
-
[in] | graph | A given vx_graph object. |
◆ tivxSetGraphDebugZone()
Sets or clears a given debug zone for a graph.
- Parameters
-
[in] | graph | Graph reference |
[in] | debug_zone | Given debug zone enumeration |
[in] | enable | Flag to indicate if zone should be enabled or disabled |
◆ tivxSetNodeDebugZone()
Sets or clears a given debug zone for a node.
- Parameters
-
[in] | node | Node reference |
[in] | debug_zone | Given debug zone enumeration |
[in] | enable | Flag to indicate if zone should be enabled or disabled |
◆ tivxGetNodeName()
const char* tivxGetNodeName |
( |
vx_node |
node | ) |
|
Returns the name of a node object.
- Parameters
-
[in] | node | A given vx_node object. |
◆ tivxGetGraphName()
const char* tivxGetGraphName |
( |
vx_graph |
graph | ) |
|
Returns the name of a graph object.
- Parameters
-
[in] | graph | A given vx_graph object. |