Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » DSDP - Real-Time Software Components (RTSC) » Problem with Log_write generation(Problem with Log_write generation)
Problem with Log_write generation [message #543834] Wed, 30 June 2010 17:34 Go to next message
Todd Mullanix is currently offline Todd MullanixFriend
Messages: 8
Registered: July 2009
Junior Member
I'm using xdctools_3_20_00_41. I have an app that includes the following C line:

Log_print4(Diags_USER1, "taskLoad ran %d loops, %d %d %d", loops, count, (Int)flag, 10);

I'm using xdc.runtime.LoggerBuf as my logger and BIOS 6.30

When I step into the Log_print4 call, I go into xdc_runtime_LoggerBuf_write8__E.

Note: This is a debug build.

Here is my cfg (pruned down).
var LoggerBuf = xdc.useModule('xdc.runtime.LoggerBuf');
var loggerBufParams = new LoggerBuf.Params();
loggerBufParams.exitFlush = true;
loggerBufParams.numEntries = 96;
Load.common$.logger = LoggerBuf.create(loggerBufParams);
Load.common$.diags_USER4 = Diags.ALWAYS_ON;
Load.windowInMs = 5000;
var Main = xdc.useModule('xdc.runtime.Main');
Main.common$.logger = LoggerBuf.create(loggerBufParams);
Main.common$.diags_USER1 = Diags.ALWAYS_ON;

When I look in the mapfile, I only see the following two for Main
00874e44 _xdc_runtime_Main_Module__loggerFxn1__C
00874e48 _xdc_runtime_Main_Module__loggerFxn8__C

For the Load module I see
00874d34 _ti_sysbios_utils_Load_Module__loggerFxn1__C
00874d38 _ti_sysbios_utils_Load_Module__loggerFxn2__C
00874d3c _ti_sysbios_utils_Load_Module__loggerFxn4__C

Why is there no _xdc_runtime_Main_Module__loggerFxn4__C?

Why is Log_print4 going into _xdc_runtime_Main_Module__loggerFxn8__E


FYI: I also tried my own logger with the same results.

Let me know if you want to see the mapfile and generated C file. I can mail it offline...
Re: Problem with Log_write generation [message #543849 is a reply to message #543834] Wed, 30 June 2010 18:55 Go to previous message
Todd Mullanix is currently offline Todd MullanixFriend
Messages: 8
Registered: July 2009
Junior Member
Nevermind...

I did not see the following defines in Log__epilogue.h

#define xdc_runtime_Log_print4(mask, fmt, a1, a2, a3, a4) \
xdc_runtime_Log_print6(mask, fmt, a1, a2, a3, a4, 0, 0)
#define xdc_runtime_Log_print5(mask, fmt, a1, a2, a3, a4, a5) \
xdc_runtime_Log_print6(mask, fmt, a1, a2, a3, a4, a5, 0)

#define xdc_runtime_Log_print6(mask, fmt, a1, a2, a3, a4, a5, a6) \
((Module__LOGDEF && xdc_runtime_Diags_query(mask)) ? \
xdc_runtime_Log_put8(mask, Module__MID, \
(IArg)fmt, (a1), (a2), (a3), (a4), (a5), (a6), 0) : (void)0 \
)

Previous Topic:solution for factory
Next Topic:Timing of deleting instance from the internal queue
Goto Forum:
  


Current Time: Wed Apr 24 18:48:47 GMT 2024

Powered by FUDForum. Page generated in 0.03334 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top