Retrieving Data from the Target Host

Target Deployment Technology

All test and runtime analysis tools of the product must be able to retrieve the value of a global (char *) variable from an application running on the target machine and then write that value to a text file on the host machine. (The variable will contain only ASCII values).

This retrieval may be the result of a specific program running on the target, of an adapted execution procedure on the host, or both.

To perform data retrieval, the program generated or instrumented by the product is linked with the Target Deployment Port data retrieval functions and type definition.

For example, in the C language, the type definition and data retrieval functions are:

#define RTRT_FILE <Type>

RTRT_FILE priv_init(char *fName); /* fName: file name to be written on the host */

RTRT_FILE priv_open(char *fName); /* fName: file name to be written on the host */

void priv_writeln(RTRT_FILE f,char *data); /* data is the data that should be printed in the file */

void priv_close(RTRT_FILE f); /* Close the host file */

These data retrieval functions are called by the Target Deployment Port library. Depending on the nature of the target platform, some or all of these routines may be empty.

Related Topics

Determining Target Requirements | Target System Categories | Data Retrieval Examples