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.

C API for EP_Trace?

Hi All,

   I have a question on the EP_Trace facility. Is there a way to control tracing (on and off) from the C code? In other words is there a C api that I can use within my C code to dynamically turn this facility on and off. I'm seeing many GBs of trace file which ends up being mostly stdio which I don't care about. It would be easiest to do this in the C code rather than externally in a simulation control script.

Thanks,

Mark

  • Hi Mark,

    I think you are looking for something like this?

    http://processors.wiki.ti.com/index.php/CToolsLib

    Thanks

    ki

  • Hi Mark,

    I may have responded too quickly. The link I sent may not apply to EP Trace. Once I confirm this I will let you know. Sorry

    ki

  • Mark,

    There is no way to control EPTRACE with C_API. You might be already aware of script based controlling.  I am just describing the current mechanism to handle this.

    Usecase : to trace a certain C function only or to trace b/w start PC and end PC

    1.YOu apply break points at function start address and end address or start PC and end PC as the case may be

    2. IN the GEL script, you could automate checking if current PC is start of function, if so enable trace and vice versa for disabling trace.

     

    You could refer to tisim_traces.gel to know the GEL syntax for starting/stopping EP trace.

    Hope you are using a similar approach.

    regards,

    Sheshadri