| |||
| Home > Tracing Tutorial > Comparing trace start and end points with a trace range > Tracing with trace start and end points | |||
To capture trace using trace start and end points:
Remove the trace start and end points and the breakpoint you set previously:
Right-click on the Load
Image+Symbols entry in the Process Control pane to display
the context menu.
Select Unload from the context menu. The image is unloaded.
Right-click on the Load Image+Symbols entry
in the Process Control pane to display the context menu.
Select Load from the context
menu. The image is reloaded and the PC is reset to the image entry
point (0x8000). The tracepoints are removed.
Disable cycle accurate tracing for the ETM:
Select Configure Analyzer Properties... from the Edit menu of the Analysis window to display the Configure ETM dialog box.
Unselect Cycle accurate tracing.
Click OK to close the Configure ETM dialog box. RealView Debugger generates an ETM_CONFIG CLI command, which is also displayed in the Cmd tab of the Output pane:
etm_config,syncfreq:0,packauto
Set a Trace Start Point at the address 0x8248:
In the Code window, click the Disassembly tab.
Right-click in the Disassembly tab to display the context menu.
Select Locate Address... from the context menu to display the Prompt dialog box.
Enter the address 0x8248.
Click Set. The disassembly
at address 0x8248 is displayed. An example is shown
in Figure 10.20.
RealView Debugger generates a DISASSEMBLE CLI command, which is also displayed in the Cmd tab of the Output pane:
dis 0x8248
Right-click in the margin at address 0x8248 to
display the context menu.
Select Insert Tracepoint... from the context menu to display the New Tracepoint dialog box.
Select Trace Start Point from the list of tracepoint types.
Click OK. The dialog box
closes, and the Trace Start Point is set as indicated by the green
arrow
.
An example is shown in Figure 10.21.
RealView Debugger generates a TRACE CLI command, which is also displayed in the Cmd tab of the Output pane:
trace,prompt 0x00008248
Set a Trace End Point at the address 0x8288:
In the Code window, click the Disassembly tab.
Right-click on the white background in the Disassembly tab to display the context menu.
Select Locate Address... from the context menu to display the Prompt dialog box.
Enter the address 0x8288.
Click Set. The disassembly
at address 0x8288 is displayed. An example is shown
in Figure 10.22.
RealView Debugger generates a DISASSEMBLE CLI command, which is also displayed in the Cmd tab of the Output pane:
dis 0x8288
Right-click in the margin at address 0x8288 to
display the context menu.
Select Insert Tracepoint... from the context menu to display the New Tracepoint dialog box.
Select Trace End Point from the list of tracepoint types.
Click OK. The dialog box
closes, and the Trace End Point is set as indicated by the green
arrow
.
An example is shown in Figure 10.23.
RealView Debugger generates a TRACE CLI command, which is also displayed in the Cmd tab of the Output pane:
trace,prompt 0x00008288
Click Run on
the Debug toolbar to start execution.
After
a short time, click Stop on the Debug toolbar
to stop execution. The captured trace is displayed in the Trace tab
of the Analysis window. An example is shown in Figure 10.24.