Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » DSDP - Real-Time Software Components (RTSC) » Diags.setMaskMeta(Using Diags.setMaskMeta)
Diags.setMaskMeta [message #527943] Sat, 17 April 2010 06:38 Go to next message
Badri is currently offline BadriFriend
Messages: 17
Registered: July 2009
Junior Member
Champs,
I am using Diags.setMaskMeta using wildcard to match all modules within a package.
I have added the line
Diags.setMaskMeta("ti.omx.domx.%", Diags.USER1, Diags.ALWAYS_ON);
as the last line of my config file.

I see that Diags.setMaskMeta iterates thru the xdc.om list of modules and only if a module is used it enables Diag mask.

Now the issue I have is some of the modules in ti.omx.domx will get used during the close() phase after the config step which results in Diags mask never getting enabled for them even though they are used in the executable.

I tried putting the Diags.setMask meta in the close of my executable package but even that doesnt help. Looks like I need to invoke Diags.setMaskMeta only after close() of all packages is complete.
The only way to get Diags.setMaskMeta working is I need to explicitly do a useModule of all Modules in the package and then invoke setMask which defeats the purpose of having wildcard match.


I am using xdc version xdctools_3_16_01_27

Please advise on the right method to resolve this issue,

Regards
Badri

Re: Diags.setMaskMeta [message #527978 is a reply to message #527943] Sat, 17 April 2010 18:12 Go to previous message
Dave Russo is currently offline Dave RussoFriend
Messages: 172
Registered: July 2009
Senior Member
Diags.setMaskMeta() can only operate on modules currently loaded in the
configuration model. As you point out, setting the diags mask at config
time is problematic when the set of modules in the configuration can
change as packages close. The wildcard only applies to modules used at
the time Diags.setMaskMeta() is called.

I've filed a bug to capture this; Bug 309573 - Diags.setMaskMeta should
affect all used modules in a configuration

One possibility is to use the runtime function Diags_setMask() (which
also accepts limited wildcards).



On 4/16/2010 11:38 PM, Badri wrote:
> Champs,
> I am using Diags.setMaskMeta using wildcard to match all modules within
> a package. I have added the line Diags.setMaskMeta("ti.omx.domx.%",
> Diags.USER1, Diags.ALWAYS_ON);
> as the last line of my config file.
>
> I see that Diags.setMaskMeta iterates thru the xdc.om list of modules
> and only if a module is used it enables Diag mask.
>
> Now the issue I have is some of the modules in ti.omx.domx will get used
> during the close() phase after the config step which results in Diags
> mask never getting enabled for them even though they are used in the
> executable.
>
> I tried putting the Diags.setMask meta in the close of my executable
> package but even that doesnt help. Looks like I need to invoke
> Diags.setMaskMeta only after close() of all packages is complete. The
> only way to get Diags.setMaskMeta working is I need to explicitly do a
> useModule of all Modules in the package and then invoke setMask which
> defeats the purpose of having wildcard match.
>
>
> I am using xdc version xdctools_3_16_01_27
>
> Please advise on the right method to resolve this issue,
>
> Regards
> Badri
>
>
Previous Topic:release a bundle
Next Topic:prog.build.target.findSuffix(pkg) returns NULL!?
Goto Forum:
  


Current Time: Thu Apr 25 16:51:34 GMT 2024

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

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

Back to the top