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.

Display user flags to System Analyzer execution graph

Hello everyone,

Target is C6678, CCS v6...040 and UIA is 2_00_02_39

What I want to do is display on the Execution graph of System Analyzer user flags.

I explain :

right now I do

Log_write1(UIABenchmark_start, (IArg) "myTrace");

// user code

Log_write1(UIABenchmark_stop, (IArg) "myTrace");

and it shows up on the Execution graph as a line

Now I'd like to do

Log_write1(XYZ,"myflag");

with "myflag" showing up as discrete "event" on the Execution graph.

Just like when you do a Semaphore_post you see a little red flag on the Execution graph.

Is there any Log_event that allows me to do that ?

Regards,
Clement

  • Clement,

    I checked with the CCS team that develops System Analyzer. There is no support for this feature currently. While there is an entry in our bug tracking system to add this feature, there is not a committed schedule to add it.

    Mark

  • OK for the non support.

    Semaphore_post, Swi_post and the like are shown as "flags" in the execution graph.

    Is there a hack to use them for my purpose ?

    What if I call "Log_write2(Semaphore_LM_post, (UArg) 0, (UArg) 0);" in my code ?

    Clement
  • Clement,

    Maybe you can use the Benchmark Start Event for this. See System Analyzer->Duration Analysis in CCS Help for info on how to log this.

    Benchmark events shows up in the Execution graph as "running state", e.g. "Math Oprns" in the screenshot below.

    You can use the Execution Graph Property View (available from button on graph toolbar) to to show the Benchmark Start event as an ICON or Shape.

    Use the State/Event tab in the Property View to change ICON/Shape/Color to use. This screen shot is showing it as blue squares.

    Regards,

    Imtaz.

  • Hello Imtaz,

    Thanks for your answer.


    We already use benchmark start/stop events. And we're happy with it represented as a line.

    I was looking for another kind of event which is displayed naturally as a flag (without customizing the look).

    I'm not the sole end user, there will be dozens of in-house developpers that would like to see directly 'flags'.

    Clement

  • Clement,

    Unfortunately I don't think it's safe to use the SEM event. We use SEM events in our TIRTOS event decoder to determine tasks states for the execution graph.

    If the Benchmark event is still an option then maybe you can log a START immediately followed by a STOP to get a very short line (no need to customize view) ... the start of the line will represent where the event occurred.

    Regards,

    Imtaz.

  • Imtaz,

    OK about the SEM event.

    The start/stop close is what we do at the moment. In this thread I wanted to know if there was a better way which is not the case.

    Regards,
    Clement

  • Clement,

    OK I thought you were using the start/stop for benchmarking ... but you're already using it for user events. This is the best option I can think off currently available.

    As Mark mentioned there is a bug entry tracking this enhancement request.

    Regards,
    Imtaz.