How to enable time measurements in a Target Deployment Port
What information do you need to implement in theTarget Deployment Port (TDP) of IBM Rational Test RealTime to have time measurements?
In the following cases you need to enable the clock interface in your TDP.
- You want to perform Performance Profiling.
- You want to have time measurements in the runtime tracing report.
Look first in the documentation for your target to discover if a clock is available. If a clock is available, discover how to access it. Then determine the clock's precision. Once you got this information, open your TDP and select the section.
- Click Library Settings > Clock interface. Then change RTRT_CLOCK to RTRT_USR.
- Specify the data type to store the value of the clock in the tab Clock Type.
Some targets just use a long int, others use a structure with fields for seconds and microseconds.
- Write the code in the tab usr_clock.
The code reads the clock on your target and storesthe code in the address. Parameter p points to the address.
- Write code in the tab usr_clock_init to measure the clock resolution.
Write code in that tab, if your clock returns just "ticks". Then you can convert "ticks" into seconds.
- Provide macros in the Unit Type tab to convert the time that usr_clock reads into a value that you can display in the reports.
The TDP documentation explains what to put in each of these fields.
Leave the last two tabs Time Type\ and usr_sleep as they are. Only the SystemTesting component uses them.
Read the documentation for the "Clock Interface", provided in the TDP editor, to fully understand how you need to enter the information about the clock into the TDP.
More support for:
Rational Test RealTime
Target Deployment Port
Software version: 7.5, 220.127.116.11, 18.104.22.168, 22.214.171.124, 126.96.36.199, 188.8.131.52, 184.108.40.206, 8.0, 220.127.116.11, 18.104.22.168
Operating system(s): AIX, HP-UX, Linux, Solaris, Windows
Reference #: 1430750
Modified date: 14 November 2012
Translate this page: