This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to print GT_Trace in codec

How to print info from codec using GT_Trace?

I add include trace/gt file in codec file.And in function alloc adds GT_create() and GT_set, GT_*trace in every key point .

But it doesn't print info about these, when CE_DEBUG=2.

I use changing iuniversal_example to fit my codec.It prints IUNIVERSAL info.

The following is my error. How to debug codec ?

<3>CMEMK Error: get_phys: Unable to find phys addr for 0x00009141
CMEMK Error: get_phys: Unable to find phys addr for 0x00009141

<3>CMEMK Error: get_phys: get_user_pages() failed: -14
CMEMK Error: get_phys: get_user_pages() failed: -14
<3>CMEMK Error: GETPHYS: Failed to convert virtual 0x9141 to physical.
CMEMK Error: GETPHYS: Failed to convert virtual 0x9141 to physical.
CMEM Error: getPhys: Failed to g<3>CMEMK Error: get_phys: Unable to find phys addr for 0x00009141
CMEMK Error: get_phys: Unable to find phys addr for 0x00009141
et physical address of 0x9141
<3>CMEMK Error: get_phys: get_user_pages() failed: -14
CMEMK Error: get_phys: get_user_pages() failed: -14
<3>CMEMK Error: GETPHYS: Failed to convert virtual 0x9141 to physical.
CMEMK Error: GETPHYS: Failed to convert virtual 0x9141 to physical.
CMEM Error: getPhys: Failed to get physical address of 0x9141

thanks 

Liangzhu

  • How are you building the codec ?! If you are including gt.h in your codec, and building this codec with the defines:-

    GT_ASSERT=1

    GT_TRACE=1

    Then you should see trace from your codec, if you in your "main" function you have GT_set("*" "=01234567");