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.

SYS/BIOS, UIA and CPU Load

Other Parts Discussed in Thread: SYSBIOS

Good morning,

i'm try to know the CPU Load of my application.

I'm using C6457 CCS V5.3 and SYS/BIOS 6.34.2.218 and System Analyzer 1.1.1.14.

I'have instrumented my application with LiggingSetup and enable Load Logging and swi, hwi and task logging.

During the analisys in the CPU Graph i obtain this warning: CPU load may be not accurate as HWI and SWI loads not enabled.

1) Question: How is possible to enable SWI and HWI loads?. I'have yet checks the Enable Swi/Hwi Logging in the LoggingSetup configuration of my .CFG.

2) Question: CPU graph reports the loads of IDLE loop or Anything other than IDLE loop as derscribed in SPRUh43d para. 4.10 CPU Load view?

3) QUESTION: is ncessary use the module in .CFG "ti.sysbios.utils.load" and how to set it , or is not possible use it with LoggingSetup?

Thanks in advance

 

Fabio

  • Hi Fabio,

    If you look in the Available Products view that opens up when you open your .cfg file, you should find the Load module under SYS/BIOS > Realtime Analysis > Load. From there you'll be able to add the module to your configuration and enable Hwi and Swi load monitoring.

    You may want to read the SYS/BIOS API Reference guide section on the Load module if you have not done so already. You can either find it through the CCS help window or in the docs directory of your SYS/BIOS installation.

    Whitney

  • Hi Whitney,

    I could add the Load module to my configuration, but I' m not sure how I can enable Hwi and Swi load monitoring.
    So, could you please let me know more specifically?

    Thanks in advance for your cooperation.

    Regards,
    j-breeze

  • Hi j-breeze,

    What version of UIA are you using?  If you are using UIA 1.x, you can add this code to your configuration file:

    var Load = xdc.useModule('ti.sysbios.utils.Load');
    Load.swiEnabled = true;
    Load.hwiEnabled = true;

    If you are using UIA 2.x, you just need this code (no need to bring in the Load module anymore since this will be done automatically):

    var LoggingSetup = xdc.useModule('ti.uia.sysbios.LoggingSetup');

    /* Enable CPU Load logging */
    LoggingSetup.loadLogging = true;

    /*
     *  Enable Task, Swi, and Hwi Load logging. This allows the Idle Task
     *  usage to make more sense. Otherwise Hwi and Swi load is factored into
     *  each task's usage.
     */
    LoggingSetup.loadTaskLogging = true;
    LoggingSetup.loadSwiLogging = true;
    LoggingSetup.loadHwiLogging = true;

    Best regards,

        Janet

  • Hi Janet,

    Thank you for your prompt reply.

    Regards,
    j-breeze