root@linaro-ubuntu-desktop:/home/linaro/CoreSight_access$ ./tracedemo CoreSight demonstrator ** Currently affine CPUs: #0 #1 CSDEMO: Set affinity to CPU #0 ** Currently affine CPUs: #0 CSDEMO: Detected 'ST-Ericsson Snowball platform' board CSDEMO: Registering Snowball CoreSight devices... 801A4000: 1.2 907 00000000 00000000 00000000 00000000 type= 7 SINK BUFFER(8K) 801A5000: 4.1 906 00000000 00000000 00000000 00040800 type=10 CTI 801A6000: 2.1 908 00000000 00000000 00000000 00000028 type= 4 LINK 801A8000: 5.1 C09 00000000 00000000 00000000 00000000 type=11 CPU DEBUG v7 (full CP14) 801A9000: 6.1 9A0 00000000 00000000 00000000 00000000 type=12 CPU PMU (0 counters) 801AA000: 5.1 C09 00000000 00000000 00000000 00000000 type=11 CPU DEBUG v7 (full CP14) 801AB000: 6.1 9A0 00000000 00000000 00000000 00000000 type=12 CPU PMU (0 counters) 801AC000: 4.1 906 00000000 00000000 00000000 00040800 type=10 CTI 801AD000: 4.1 906 00000000 00000000 00000000 00040800 type=10 CTI 801AE000: 3.1 950 00000000 00000000 00000000 00000000 type= 1 CPU SOURCE PTMv1.0 801AF000: 3.1 950 00000000 00000000 00000000 00000000 type= 1 CPU SOURCE PTMv1.0 CSDEMO: Registering CPU affinities... CSDEMO: Registering trace-bus connections... CSDEMO: Registration complete. CSDEMO: Configuring trace... CSDEMO: Configuring trace source id for CPU #0 ETM/PTM... CSDEMO: Initialising ETM/PTM ** 801AE000: write 030 (off) = 0000406F now 00000000 ** 801AE000: write 150 (off) = 00000000 now 00020000 CSDEMO: Configuring trace source id for CPU #1 ETM/PTM... CSDEMO: Initialising ETM/PTM ** 801AF000: write 030 (off) = 0000406F now 00000000 ** 801AF000: write 150 (off) = 00000000 now 00020000 ETM static configuration: ETMCCR = 8D294004 ETMCCER = 000008EA ETMSCR = 00000000 ETMIDR = 411CF301 ETM dynamic configuration: ETMCR = 00000000 Trace enable event: true Trace enable control: CR1=00000001 CR2=00000000 Trace start comparators: 0000 Trace stop comparators: 0000 Counters: 2 #0: value=00001000 enable=single-addr-comp-0 reload_value=00002000 reload_event=counter-zero-0 #1: value=00001000 enable=sequencer-state-2 reload_value=00002000 reload_event=counter-zero-1 Address comparators: 8 #0: address=00009420 type=00000019 (execute) (size=4) (S:all) (NS:all) #1: address=00019420 type=00000019 (execute) (size=4) (S:all) (NS:all) Sequencer present: 1 Sequencer: Current state: 1 1 -> 2: single-addr-comp-0 1 -> 3: false 2 -> 1: false 2 -> 3: single-addr-comp-1 3 -> 1: false 3 -> 2: false ** 801AE000: write 080 (CS_ETMACTR(i)) = 00000019 now 00000001 ** 801AE000: write 084 (CS_ETMACTR(i)) = 00000019 now 00000001 CSDEMO: Reading back configuration after programming... ETM static configuration: ETMCCR = 8D294004 ETMCCER = 000008EA ETMSCR = 00000000 ETMIDR = 411CF301 ETM dynamic configuration: ETMCR = 00000400 Cycle accurate: 0 Branch output: 0 Timestamp enabled: 0 CONTEXTID size: 0 bytes Trace enable event: true Trace enable control: CR1=00000001 CR2=00000000 Trace start comparators: 0000 Trace stop comparators: 0000 Trigger event: false Counters: 2 #0: value=00001000 enable=single-addr-comp-0 reload_value=00002000 reload_event=counter-zero-0 #1: value=00001000 enable=sequencer-state-2 reload_value=00002000 reload_event=counter-zero-1 Address comparators: 8 #0: address=00009420 type=00000001 (execute) (size=1) (S:all) (NS:all) #1: address=00019420 type=00000001 (execute) (size=1) (S:all) (NS:all) #2: address=DD7C9C25 type=00000E01 (execute) (size=1) (S:none) (NS:none) #3: address=59425D98 type=00000C01 (execute) (size=1) (S:none) (NS:none) #4: address=FC1B425D type=00000401 (execute) (size=1) (S:none) (NS:all) #5: address=4085D158 type=00000B01 (execute) (size=1) (S:all) (NS:none) #6: address=EF79EACF type=00000801 (execute) (size=1) (S:all) (NS:none) #7: address=AB4DF605 type=00000B01 (execute) (size=1) (S:all) (NS:none) Data comparators: 0 Sequencer present: 1 Sequencer: Current state: 1 1 -> 2: single-addr-comp-0 1 -> 3: false 2 -> 1: false 2 -> 3: single-addr-comp-1 3 -> 1: false 3 -> 2: false CONTEXTID comparators: 1 Mask: FFFFFFFF #0: contextid: 00000000 External outputs: #0: false #1: false CSDEMO: Enabling trace... CSDEMO: Configured and enabled trace. CSDEMO: Trace configured CSDEMO: Created trace configuration export files CSDEMO: trace buffer contents: 8192 bytes CSDEMO: Disable trace... CSDEMO: trace buffer contents: 8192 bytes ETM static configuration: ETMCCR = 8D294004 ETMCCER = 000008EA ETMSCR = 00000000 ETMIDR = 411CF301 ETM dynamic configuration: ETMCR = 10001400 Cycle accurate: 1 Branch output: 0 Timestamp enabled: 1 CONTEXTID size: 0 bytes Trace enable event: true Trace enable control: CR1=00000001 CR2=00000000 Trace start comparators: 0000 Trace stop comparators: 0000 Trigger event: false Counters: 2 #0: value=00000FFF enable=single-addr-comp-0 reload_value=00002000 reload_event=counter-zero-0 #1: value=000004DD enable=sequencer-state-2 reload_value=00002000 reload_event=counter-zero-1 Address comparators: 8 #0: address=00009420 type=00000001 (execute) (size=1) (S:all) (NS:all) #1: address=00019420 type=00000001 (execute) (size=1) (S:all) (NS:all) #2: address=DD7C9C25 type=00000E01 (execute) (size=1) (S:none) (NS:none) #3: address=59425D98 type=00000C01 (execute) (size=1) (S:none) (NS:none) #4: address=FC1B425D type=00000401 (execute) (size=1) (S:none) (NS:all) #5: address=4085D158 type=00000B01 (execute) (size=1) (S:all) (NS:none) #6: address=EF79EACF type=00000801 (execute) (size=1) (S:all) (NS:none) #7: address=AB4DF605 type=00000B01 (execute) (size=1) (S:all) (NS:none) Data comparators: 0 Sequencer present: 1 Sequencer: Current state: 2 1 -> 2: single-addr-comp-0 1 -> 3: false 2 -> 1: false 2 -> 3: single-addr-comp-1 3 -> 1: false 3 -> 2: false CONTEXTID comparators: 1 Mask: FFFFFFFF #0: contextid: 00000000 External outputs: #0: false #1: false CSDEMO: Fetching trace from ETB: Buffer RAM size: 8192 Bytes to read in buffer: 8192 Buffer has wrapped: 1 ** 8192 bytes of trace The first 256 bytes of trace are: 54 F7 00 00 28 FC B4 0A FC 01 DA 03 64 08 A8 45 D8 88 EE B6 1A 4C 00 08 6C F7 00 00 28 F4 02 DF 86 D7 30 2C C4 02 FA C5 80 80 08 54 00 E9 88 5A F0 B6 1A 30 08 55 F6 00 00 29 E0 F5 08 C8 00 8A 21 DA 02 65 08 A8 D8 88 EE B6 1A 64 00 00 00 7B 00 00 00 80 08 59 C4 DB B6 09 42 8E 9A 91 88 80 E8 8F 00 28 08 6D F6 00 00 29 D4 04 B2 97 30 88 34 FC 00 85 CE 81 80 08 4C 01 E0 8A F0 B6 1A A6 54 02 08 55 F6 00 00 29 EC DA 0A FC 00 DA 02 C4 64 08 A8 D9 88 EF B6 1B 60 02 08 6D F6 00 00 41 28 DC 04 86 C6 31 2C C0 02 FB C4 81 80 08 44 27 00 E9 88 F0 B6 1B 30 08 54 F7 00 00 28 C8 AC 51 08 C8 21 01 DA 03 64 08 A8 D9 88 EF B6 1B 4C 0B 00 08 6C F7 00 00 28 D4 04 B2 E6 31 34 E4 00 AB B8 CA 80 80 08 2C CC 90 F0 B6 1A 48 00 08 54 EB F6 00 00 29 F8 F4 08 FC 00 E2 02 65 08 84 D8 B1 CSDEMO: shutdown...