Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Real-Time Software Components (RTSC) » Hungrier % in Diag?
Hungrier % in Diag? [message #5490] Wed, 22 July 2009 16:27 Go to next message
Chris Ring is currently offline Chris RingFriend
Messages: 16
Registered: July 2009
Location: Santa Barbara, CA
Junior Member
Looks like the % 'Module wildcard' character available in Diag_setMask()
and other related fxns can only be used to match Module names. That is,
if I have 3 Modules in my system - mypkg.A, mypkg.B, and mypkg.deeper.C
- I can affect the masks of mypkg.A and mypkg.B using the pattern
"mypkg.%". Cool.

I'm looking for a way to - at runtime via Diag_setMask() - affect all
Modules in the system (e.g. to turn on all tracing). Initially I
expected to call Diag_setMask("%=EXILA12345678");, but that didn't work
b/c '%' only matches Module names - I have to name the package. It
looks like, to get the turn-on-all-logging feature I want, I have to at
least explicitly list all packages in the system in my Diag_setMask() call?

If we need to add a feature, perhaps we could add a similar 'wildcard'
char available for matching package names (maybe '*')? That is, If I
want to affect all 3 of the above packages, perhaps I could use "mypkg*.%"?

Chris
Re: Hungrier % in Diag? [message #5504 is a reply to message #5490] Wed, 22 July 2009 23:05 Go to previous message
Dave Russo is currently offline Dave RussoFriend
Messages: 172
Registered: July 2009
Senior Member
Chris Ring wrote:
> Looks like the % 'Module wildcard' character available in Diag_setMask()
> and other related fxns can only be used to match Module names. That is,
> if I have 3 Modules in my system - mypkg.A, mypkg.B, and mypkg.deeper.C
> - I can affect the masks of mypkg.A and mypkg.B using the pattern
> "mypkg.%". Cool.
>
> I'm looking for a way to - at runtime via Diag_setMask() - affect all
> Modules in the system (e.g. to turn on all tracing). Initially I
> expected to call Diag_setMask("%=EXILA12345678");, but that didn't work
> b/c '%' only matches Module names - I have to name the package. It
> looks like, to get the turn-on-all-logging feature I want, I have to at
> least explicitly list all packages in the system in my Diag_setMask() call?
>
> If we need to add a feature, perhaps we could add a similar 'wildcard'
> char available for matching package names (maybe '*')? That is, If I
> want to affect all 3 of the above packages, perhaps I could use "mypkg*.%"?
Actually there is a bug in the wildcard handling that prevents % from
applying to more than the first module. Once this is fixed (this week),
your initial expectation should work: Diags_setmask("%=EXILA12345678")
will enable all trace for all modules.
>
> Chris
Previous Topic:Specifying src path in 'package.bld'
Next Topic:Error with <xdc/std.h> in CCSv3.3
Goto Forum:
  


Current Time: Fri Dec 19 22:50:53 GMT 2014

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

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