xSCOPE Library API
Functions
- 
void xscope_bytes(unsigned char id, unsigned int size, const unsigned char data[])Send a trace event for the specified XSCOPE probe with a byte array. Parameters- id- XSCOPE probe id. 
- size- User data size. 
- data- User data bytes (char[]). 
 
- 
void xscope_char(unsigned char id, unsigned char data)Send a trace event for the specified XSCOPE probe of type char. Parameters- id- XSCOPE probe id. 
- data- User data value (char). 
 
- 
void xscope_config_io(xscope_IORedirectionMode mode)Configures XScope I/O redirection. Parameters- mode- I/O redirection mode. 
 
- 
void xscope_core_bytes(unsigned char id, unsigned int size, const unsigned char data[])Send a trace event for the specified XSCOPE probe with a byte array with logical core info. Parameters- id- XSCOPE probe id. 
- size- User data size. 
- data- User data bytes (char[]). 
 
- 
void xscope_core_char(unsigned char id, unsigned char data)Send a trace event for the specified XSCOPE probe of type char with logical core info. Parameters- id- XSCOPE probe id. 
- data- User data value (char). 
 
- 
void xscope_core_double(unsigned char id, double data)Send a trace event for the specified XSCOPE probe of type double with logical core info. Parameters- id- XSCOPE probe id. 
- data- User data value (double). 
 
- 
void xscope_core_float(unsigned char id, float data)Send a trace event for the specified XSCOPE probe of type float with logical core info. Parameters- id- XSCOPE probe id. 
- data- User data value (float). 
 
- 
void xscope_core_int(unsigned char id, unsigned int data)Send a trace event for the specified XSCOPE probe of type int with logical core info. Parameters- id- XSCOPE probe id. 
- data- User data value (int). 
 
- 
void xscope_core_longlong(unsigned char id, unsigned long long data)Send a trace event for the specified XSCOPE probe of type long long with logical core info. Parameters- id- XSCOPE probe id. 
- data- User data value (long long). 
 
- 
void xscope_core_short(unsigned char id, unsigned short data)Send a trace event for the specified XSCOPE probe of type short with logical core info. Parameters- id- XSCOPE probe id. 
- data- User data value (short). 
 
- 
void xscope_core_start(unsigned char id)Start a trace block for the specified XSCOPE probe with logical core info. Parameters- id- XSCOPE probe id. 
 
- 
void xscope_core_start_int(unsigned char id, unsigned int data)Start a trace block for the specified XSCOPE probe with logical core info and capture a value of type int. Parameters- id- XSCOPE probe id. 
- data- User data value (int). 
 
- 
void xscope_core_stop(unsigned char id)Stop a trace block for the specified XSCOPE probe with logical core info. Parameters- id- XSCOPE probe id. 
 
- 
void xscope_core_stop_int(unsigned char id, unsigned int data)Stop a trace block for the specified XSCOPE probe with logical core info and capture a value of type int. Parameters- id- XSCOPE probe id. 
- data- User data value (int). 
 
- 
void xscope_disable()Disable the XSCOPE event capture on the local xCORE tile. 
- 
void xscope_double(unsigned char id, double data)Send a trace event for the specified XSCOPE probe of type double. Parameters- id- XSCOPE probe id. 
- data- User data value (double). 
 
- 
void xscope_enable()Enable the XSCOPE event capture on the local xCORE tile. 
- 
void xscope_float(unsigned char id, float data)Send a trace event for the specified XSCOPE probe of type float. Parameters- id- XSCOPE probe id. 
- data- User data value (float). 
 
- 
void xscope_int(unsigned char id, unsigned int data)Send a trace event for the specified XSCOPE probe of type int. Parameters- id- XSCOPE probe id. 
- data- User data value (int). 
 
- 
void xscope_longlong(unsigned char id, unsigned long long data)Send a trace event for the specified XSCOPE probe of type long long. Parameters- id- XSCOPE probe id. 
- data- User data value (long long). 
 
- 
void xscope_ping()Generate an XSCOPE ping system timestamp event. 
- 
void xscope_register(int num_probes, ...)Registers the trace probes with the host system. First parameter is the number of probes that will be registered. Further parameters are in groups of four. - Examples:
- xscope_register(1, XSCOPE_DISCRETE, "A probe", XSCOPE_UINT, "value"); `` xscope_register(2, XSCOPE_CONTINUOUS, "Probe", XSCOPE_FLOAT, "Level", XSCOPE_STATEMACHINE, "State machine", XSCOPE_NONE, "no name");
 Parameters- num_probes- Number of probes that will be specified. 
 
- 
void xscope_short(unsigned char id, unsigned short data)Send a trace event for the specified XSCOPE probe of type short. Parameters- id- XSCOPE probe id. 
- data- User data value (short). 
 
- 
void xscope_start(unsigned char id)Start a trace block for the specified XSCOPE probe. Parameters- id- XSCOPE probe id. 
 
- 
void xscope_start_int(unsigned char id, unsigned int data)Start a trace block for the specified XSCOPE probe and capture a value of type int. Parameters- id- XSCOPE probe id. 
- data- User data value (int). 
 
- 
void xscope_stop(unsigned char id)Stop a trace block for the specified XSCOPE probe. Parameters- id- XSCOPE probe id. 
 
- 
void xscope_stop_int(unsigned char id, unsigned int data)Stop a trace block for the specified XSCOPE probe and capture a value of type int. Parameters- id- XSCOPE probe id. 
- data- User data value (int). 
 
Enumerations
- 
xscope_IORedirectionModeEnum of all I/O redirection modes. Enum Values: - 
XSCOPE_IO_NONEI/O is not redirected. 
- 
XSCOPE_IO_BASICBasic I/O redirection. 
- 
XSCOPE_IO_TIMEDTimed I/O redirection. 
- 
XSCOPE_IO_NONEI/O is not redirected. 
- 
XSCOPE_IO_BASICBasic I/O redirection. 
- 
XSCOPE_IO_TIMEDTimed I/O redirection. 
- 
XSCOPE_IO_NONEI/O is not redirected. 
- 
XSCOPE_IO_BASICBasic I/O redirection. 
- 
XSCOPE_IO_TIMEDTimed I/O redirection. 
 
- 
- 
xscope_UserDataTypeEnum for all user data types. Enum Values: - 
XSCOPE_NONENo user data. 
- 
XSCOPE_UINTUnsigned int user data. 
- 
XSCOPE_INTSigned int user data. 
- 
XSCOPE_FLOATFloating point user data. 
- 
XSCOPE_NONENo user data. 
- 
XSCOPE_UINTUnsigned int user data. 
- 
XSCOPE_INTSigned int user data. 
- 
XSCOPE_FLOATFloating point user data. 
- 
XSCOPE_NONENo user data. 
- 
XSCOPE_UINTUnsigned int user data. 
- 
XSCOPE_INTSigned int user data. 
- 
XSCOPE_FLOATFloating point user data. 
 
- 
- 
xscope_EventTypeEnum for all types of xscope events. Enum Values: - 
XSCOPE_STARTSTOPStart/Stop - Event gets a start and stop value representing a block of execution. 
- 
XSCOPE_CONTINUOUSContinuous - Only gets an event start, single timestamped “ping”. 
- 
XSCOPE_DISCRETEDiscrete - Event generates a discrete block following on from the previous event. 
- 
XSCOPE_STATEMACHINEState Machine - Create a new event state for every new data value. 
- 
XSCOPE_STARTSTOPStart/Stop - Event gets a start and stop value representing a block of execution. 
- 
XSCOPE_CONTINUOUSContinuous - Only gets an event start, single timestamped “ping”. 
- 
XSCOPE_DISCRETEDiscrete - Event generates a discrete block following on from the previous event. 
- 
XSCOPE_STATEMACHINEState Machine - Create a new event state for every new data value. 
- 
XSCOPE_HISTOGRAM
- 
XSCOPE_STARTSTOPStart/Stop - Event gets a start and stop value representing a block of execution. 
- 
XSCOPE_CONTINUOUSContinuous - Only gets an event start, single timestamped “ping”. 
- 
XSCOPE_DISCRETEDiscrete - Event generates a discrete block following on from the previous event. 
- 
XSCOPE_STATEMACHINEState Machine - Create a new event state for every new data value. 
- 
XSCOPE_HISTOGRAM
 
-