| |||
| Home > Tracing Tutorial > Tracing data with auto trace > Examining the captured trace | |||
Examine the captured trace in the Trace tab:
All the data access are included in the captured trace.
Search for the first instance of SendData:
Click the Trace tab to display the captured trace.
Select Find Symbol Name... from the Find menu to display the Enter Value dialog box.
Enter SendData.
Click Find. The dialog box
closes, and the first instance of SendData in
the captured trace is selected. Figure 10.46 shows an example. RealView Debugger generates
a TRACEBUFFER CLI command, which is also displayed in
the Cmd tab of the Output view, for example:
tracebuffer,gui,find_addr=0x000080A8..0x00008107
Scroll through the captured trace to view the next
two data trace samples. Figure 10.47 shows an example. In this example, the
read accesses from elements 1085 and 1086 are used to compute num_xmit (line
212 in trace.c).
Click the trace.c tab in the Code window to see the corresponding line of source. Figure 10.48 shows an example.
Scroll down the trace until elements 10346 to 10373 are visible:
Elements 1089 to 1092
(W Data) show how the header value (0xAAAAAAAA)
is written to *output_fifo (0x20000).
Elements 1093 (Exec) to 1097
(W Data) show how the value of average (0xFFFFF9B5)
is written to *output_fifo (0x20000).
The variable average is stored
at 0xA1D4, shown in the sample at element 1095.
Figure 10.49 shows an example.
Search for elements of interest:
Make a note of the address of average,
given by &average in the Watch view.
Select Find Address Expression... from the Find menu in the Analysis window to display the Enter Value dialog box.
Enter the address of average, 0xA1D8 in
this examlple.
Click Find. The dialog box
closes, and the first element with the address 0xA1D8 is
selected.
Scroll up through the trace until you see the start
of the GetAverage() function.
The traced data accesses for GetAverage() show
all the reads from the input[] array, ending
in a write to average.
the following in the RealView Debugger Command Line Reference Guide:
Chapter 2 RealView Debugger Commands for details of the ANALYZER, ETM_CONFIG, and TRACEBUFFER commands.