ptm2human icon indicating copy to clipboard operation
ptm2human copied to clipboard

Getting Cannot find any synchronization packet error

Open adhya3 opened this issue 4 years ago • 2 comments

Hi,

I have cloned the ptm2human decoder for decoding etm v4 trace data . I'm using the below command to decode the data .

./ptm2human -e -i log_etm.atb -d --trcidr0 0x28000ea0 --trcidr8 0x0 --trcidr9 0x0 --trcidr12 0x0 --trcidr13 0x0

But after executing the script I'm getting the below mentioned error though I have set TRCSYNCPR value to 0x8 . Can you please let me know what I'm doing wrong here. Also please find the attached trace stream file.

###########################Error Pattern############################# Reading log_etm.atb Decode trace stream of ID 0 etb_format.c:decode_etb_stream:153 - There are 0 bytes in the stream 0 Syncing the trace stream... etmv4.c:etmv4_synchronization:1330 - MAX_SPEC_DEPTH = 0 etmv4.c:etmv4_synchronization:1331 - P0_KEY_MAX = 0 etmv4.c:etmv4_synchronization:1332 - COND_KEY_MAX_INCR = 0 etmv4.c:etmv4_synchronization:1333 - CONDTYPE = 0 ERROR: Cannot find any synchronization packet etb_format.c:decode_etb_stream:153 - There are 0 bytes in the stream 1 Decode trace stream of ID 1 etmv4.c:etmv4_synchronization:1330 - MAX_SPEC_DEPTH = 0 Syncing the trace stream... etmv4.c:etmv4_synchronization:1331 - P0_KEY_MAX = 0 etmv4.c:etmv4_synchronization:1332 - COND_KEY_MAX_INCR = 0 etmv4.c:etmv4_synchronization:1333 - CONDTYPE = 0 ERROR: Cannot find any synchronization packet

#####################Trace Stream for decoding############################# 0x00000000 0x00000000 0x80000000 0x04000101 0x01072d85 0x00008080 0x9df71300 0x8001073e 0x00000080 0xf84195f7 0x000095f7 0x5995f755 0xf76595fc 0xf7889e95 0x95f72195 0x019af72a 0x0784080c 0xf72e95f7 0x00003695 0x5295f7f8 0xf76895da 0x95da6995 0x7795f772 0xxx7995f7 0x9995dad5 0x2495da0d 0x000095f7 0x2c95f728 0xf73a95f7 0x95f73c95 0x5d95da3f 0xf76495f7 0xf70e8c95 0xf70de795 0x00006c95 0x101e82da 0x07118408 0xda2995f7 0x95f74795 0x4e95f738

WIth regards, Suvadeep With regards, Suvadeep

adhya3 avatar May 19 '20 11:05 adhya3

ptm2human reads a special format data packets (from the ETB formatter). Check the Figure 9.13 in the ARM CoreSight Technical Reference Manual. http://infocenter.arm.com/help/topic/com.arm.doc.ddi0314h/DDI0314H_coresight_components_trm.pdf

The format of your data packet is not matched. 0x00000000 0x00000000 0x80000000 0x04000101 ...

So ptm2human could NOT decode these packets. (Maybe I should submit a change to prompt messages for this kind of problems.)

hwangcc23 avatar May 21 '20 13:05 hwangcc23

Seems like your are trying to feed in ETMv4 data directly.

albertschulz avatar Sep 30 '20 08:09 albertschulz