Re: OAL logging library

Tech-Archive recommends: Fix windows errors by optimizing your registry



While OALLog will still work in RETAIL mode, but as RETAILMSG they will
still be supressed when enabling SHIP build.
"Marco Contenti" <marco.contenti@xxxxxxxxxx>
???????:eD7uoLY1GHA.3644@xxxxxxxxxxxxxxxxxxxxxxx
Michel Verhagen (eMVP) ha scritto:
Define this in the file that contains your OEMInit function:

extern DBGPARAM dpCurSettings;

In OEMInit() do the following:

dpCurSettings.ulZoneMask = 0xMMMM

With 0xMMMM of course being the masks you want to enable. Be careful with
this though!

If you set ulZoneMask to 0xFFFF (all zones on), the kernel will HANG in
schedule.c! This is a bug, and a really nasty one (because who'd expect
turning on debug zones to help you debug a hanging kernel will in fact
hang the kernel... #$@%!@$%!)


This won't enable OALMSG's but the kernel debug output and only works with
a debug version of the kernel (which I don't recommend unless you are
having kernel-related problems).
As K.S.Huang wrote, OALMSG's are enabled by the global variable
g_oalLogMask. A good place could be on exit of the debug port
initialization function (usually in PLATFORM\??\SRC\COMMON\DBGSERIAL),
where this variable is initialized. Most important, it also works in
retail builds.

--

Marco Contenti
PROJECT s.a.s. (MSWEP)
www.projectsas.it
marco.contenti@<see domain above>


.



Relevant Pages

  • Re: Capturing debug messages using CeLog on a release terminal
    ... Don't set the shipbuild flag in your retail kernel (because it will #define RETAILMSG and DEBUGMSG into nirvana) and don't set Enable CE Target control and don't set Enable Kernel Debugger. ... I'm not entirely sure if DEBUGMSGs (as opposed to RETAILMSGs) still work when replacing dll's in a retail build with their debug counterparts. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: How to optimize startup time?
    ... you could still generate serial debug messages and send RETAILMSG ... The kernel works stable now for a while, a lot testing is allready done ... Does anybody have an idea on how to get more info from the retail kernel ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Very slow Kernel Debugger when loading modules
    ... When building a retail version of the kernel with KITL and KDB enabled ... So you can build only modules as debug which you need to debug and ...
    (microsoft.public.windowsce.embedded)
  • [patch 1/2] infrastructure to debug (dynamic) objects
    ... problem spot are kernel timers, where the detection of the problem ... While working on a timer related bug report I had to hack in ... This debug hack was fine for temporary use, ...
    (Linux-Kernel)
  • Re: Error 4309 returned when writing files
    ... kernel (or at least debug version of filesys) and enable all debug zones ... I enabled KITL and the kernel debugger in my retail build and set ... on Sector 4040 ...
    (microsoft.public.windowsce.platbuilder)