Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91752

Forum Post: xdc.runtime.LoggerBuf replacement

$
0
0

I have this huge shared code base which spans bios 4.9 up to bios 6.34.4.22. I cannot upgrade the current stuff to 6.35 due to the final killing off of xdc.runtime.LoggerBuf.

This stuff goes back years and I am not too sure how to rearrange things and not kill off stuff from long ago, so in the code base it still needs to call "LOG_printf(&ces_log,...", but only need to know what to use instead for the current project to achieve something similar with UIA.

The cfg file has this:

if (useDebugBIOS)
{
    var Agent = xdc.useModule('ti.sysbios.rta.Agent');

    xdc.print("Building with DEBUG bios.\n");
}
else
{
    xdc.print("Building with RELEASE bios.\n");
    
    /* .. and an old-style LOG_Printf() is at level INFO */
    Main.common$.diags_INFO = Diags.ALWAYS_ON;    
}

...

    var log_params = new LoggerBuf.Params();
    log_params.bufSection = "SDRAM";
    log_params.numEntries = 256;

    var ces_log = LoggerBuf.create(log_params);

    if (!useDebugBIOS)
    {
        Main.common$.logger = ces_log;
    }
    
    /* An old-style LOG is secretly a LoggerBuf */
    Program.symbol["ces_log"]=ces_log;
...

if (useDebugBIOS)
{
    BIOS.logsEnabled = true;

    Agent.sysbiosSwiLogging = true;
    Agent.sysbiosHwiLogging = true;
    Agent.sysbiosTaskLogging = true;
    Agent.sysbiosLoggerBufferSection = "offchip_text";
    Agent.sysbiosLoggerSize = 65536;

    Agent.loadLogging = true;
    Agent.loadLoggerBufferSection = "offchip_text";
    Agent.loadLoggerSize = 8192;

    Agent.mainLoggerBufferSection = "offchip_text";
    Agent.mainLoggerSize = 32768;
    Agent.mainLogging = true;
}

Logging ends up at "Void LOG_printf4(LOG_Handle handle, String format, ...)", where should I arrange for it to end up at now?

Chris



Viewing all articles
Browse latest Browse all 91752

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>