1.1 about tracing in realview debugger ...................................................................... 1-2
1.2 requirements for tracing ......................................................................................... 1-3
1.3 features for setting up the conditions for trace capture .......................................... 1-5
1.4 tracing with realview debugger commands .......................................................... 1-6
1.5 available resources ................................................................................................. 1-7
1.6 using the examples ................................................................................................. 1-9
chapter 2 getting started with tracing
2.1 preparations for tracing ........................................................................................... 2-2
2.2 about the trace hardware setup ............................................................................... 2-3
2.3 about the analysis window ...................................................................................... 2-8
2.4 basic realview debugger tracing procedure .......................................................... 2-9
2.5 configuring trace from a cortex-r4 processor and a coresight etm .................. 2-13
2.6 configuring trace from a cortex-r4 processor and a coresight etb ................... 2-15
2.7 connecting to an analyzer ..................................................................................... 2-17
2.8 disconnecting from the analyzer ........................................................................... 2-18
2.9 enabling and disabling tracing .............................................................................. 2-19
2.10 setting up new trace conditions on a running processor ....................................... 2-20
2.11 capturing trace output ........................................................................................... 2-21
2.12 profiling trace information ...................................................................................... 2-22
chapter 3 configuring the conditions for trace capture
3.1 setting up the global conditions for trace capture .................................................... 3-2
3.2 setting up the conditions for profiling captured trace ............................................... 3-3
3.3 capturing trace without using tracepoints ................................................................ 3-4
3.4 capturing trace with tracepoints .............................................................................. 3-5
3.5 setting tracepoints ................................................................................................... 3-6
3.6 setting tracepoints on exception vectors ................................................................. 3-7
3.7 configuring common trace options .......................................................................... 3-8
chapter 4 configuring the etm
4.1 about configuring the etm ...................................................................................... 4-2
4.2 opening the configure etm dialog box ................................................................... 4-3
4.3 configuring the etm parameters ............................................................................. 4-5
4.4 equivalent etm_config cli command qualifiers ............................................... 4-13
chapter 5 tracepoints in realview debugger
5.1 about tracepoints ..................................................................................................... 5-2
5.2 tracepoint types ...................................................................................................... 5-3
5.3 setting trace ranges in conjunction with trace start and end points ......................... 5-7
chapter 6 setting unconditional tracepoints
6.1 about setting unconditional tracepoints ................................................................... 6-2
6.2 capturing instructions and data ............................................................................... 6-3
6.3 setting a trigger point ............................................................................................... 6-4
6.4 setting a trace start and end point ........................................................................... 6-5
6.5 setting a trace range ............................................................................................... 6-7
6.6 setting an externalout point ................................................................................. 6-10
6.7 equivalent cli commands used by the new tracepoint dialog box ...................... 6-11
6.8 setting a trace range for selected source lines or disassembly ............................. 6-13
6.9 setting unconditional tracepoints with the create tracepoint dialog box .............. 6-14
6.10 setting tracepoints from your favorites list .......................................................... 6-17
chapter 7 setting conditional tracepoints
7.1 about setting conditional tracepoints ....................................................................... 7-2
7.2 common parameters for setting conditional tracepoints ......................................... 7-3
7.3 setting a tracepoint to trace a specific memory access ......................................... 7-10
7.4 setting a tracepoint to trace a specific data value ................................................. 7-11
7.5 setting tracepoints to test for external conditions .................................................. 7-12
7.6 setting a tracepoint that activates after a number of passes ................................. 7-13
7.7 setting tracepoints to trace accesses of a specific size ......................................... 7-14
7.8 setting tracepoints to trace instruction execution status ........................................ 7-16
7.9 setting tracepoints to trace accesses on a specific security level ......................... 7-18
7.10 setting a trace on x after y [and/or z] tracepoint chain ........................................ 7-20
7.11 setting a trace on x after y executed n times tracepoint chain ........................... 7-22
7.12 setting a trace on x after a==b tracepoint chain ................................................. 7-24
7.13 setting a trace if a==b in x tracepoint chain ........................................................ 7-26
7.14 chaining tracepoints .............................................................................................. 7-28
chapter 9 analyzing trace with the analysis window
9.1 about analyzing trace with the analysis window ..................................................... 9-2
9.2 changing the displayed trace details ....................................................................... 9-4
9.3 viewing the captured trace .................................................................................... 9-11
9.4 finding information in captured trace .................................................................... 9-16
9.5 filtering information in captured trace ................................................................... 9-22
9.6 viewing source for the captured trace ................................................................... 9-29
9.7 viewing captured profiling information ................................................................... 9-30
9.8 copying selected text from the trace output .......................................................... 9-42
9.9 saving and loading trace information .................................................................... 9-43
9.10 changing the current connection ........................................................................... 9-47
9.11 attaching the analysis window to the current connection ...................................... 9-48
9.12 mapping analysis window options to cli commands and qualifiers ..................... 9-49
chapter 10 tracing tutorial
10.1 about the tracing tutorial ........................................................................................ 10-2
10.2 preparing to start the tracing tutorial ...................................................................... 10-5
10.3 running from application reset to a breakpoint ..................................................... 10-7
10.4 running to a second breakpoint .......................................................................... 10-11
10.5 using a trace start point ....................................................................................... 10-15
10.6 using trace start and end points to trace and time a function .............................. 10-18
10.7 comparing trace start and end points with a trace range .................................... 10-24
10.8 excluding a trace range to avoid tracing a function ............................................. 10-34
10.9 tracing data with auto trace ................................................................................ 10-40
10.10 tracing data with trace ranges ............................................................................ 10-48
10.11 tracing data accesses to a specific address ....................................................... 10-53
10.12 tracing data accesses to addresses in an address range .................................. 10-58
10.13 collecting trace on a running target ..................................................................... 10-62
10.14 using triggers to collect trace around a specific instruction ................................. 10-67
10.15 using triggers to collect trace around a specific data access .............................. 10-75
10.16 capturing profiling information ............................................................................. 10-84
10.17 setting up a conditional tracepoint ....................................................................... 10-91
appendix a setting up the trace hardware
a.1 realview trace and realview ice ......................................................................... a-2
a.2 embedded trace buffer and realview ice ............................................................ a-3
a.3 embedded trace buffer and dstream ................................................................. a-4
appendix b setting up the trace software
b.1 configuring trace capture from an etm with realview trace ................................. b-2
b.2 configuring trace capture from an etb with dstream or realview ice .............. b-3
b.3 configuring trace capture from a coresight etm with realview trace .................. b-5
b.4 configuring trace capture from a coresight etb with dstream and realview ice ...b-7