Re: Interpreting ERROR!!! Calling xxx_SetProcPermissions in Wince 6.0 with platman 'cepermon' tool

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Let's start by killing all the lawyers. Leaving
c:\ymzki\private\winceos\coreos\core\thunks out of the private code
distribution will continue to be a source of pain. Nic S - are you
listening?

This is from a MIPSII_FP build. My initial post was based on behavior on a
MIPSIV_FP.
Setting the breakpoint on the entry to xxx_SetProcPermissions() was
unmanagable. Everything comes through there, and that goes double in KM.

On this platform I do not even need to have my magic device driver loaded.
The
'ERROR!!! Calling xxx_SetProcPermissions' message is emitted once an start
up of Perfmon, and repeatedly when 'Add to Chart' is brought up.
{xxx_SetProcPermissions(unsigned long),tkfuncs.cpp,COREDLL.DLL,,} 0x40048C58

xxx_SetProcPermissions:
40048C44 addiu sp,sp,0xFFD8
40048C48 sw ra,0x20(sp)
$M21039:
40048C4C sw a0,perms
40048C50 lui t0,0x4001
40048C54 addiu a0,t0,0x733C
40048C58 jal NKDbgPrintfW (4004c508) <<< BP here, the call to
print the msg
40048C5C nop
40048C60 addiu a0,zero,1
40048C64 sw a0,0x14(sp)
40048C68 b $M21039+28h (40048c74)
40048C6C nop

Here's one on start up of Perfmon
COREDLL!xxx_SetProcPermissions(unsigned long 0x00000000) line 170 + 8 bytes
RTSCE!CSession::IsCloseRequested(unsigned char * 0x00000001, unsigned long
0x4006c64c) line 660

And later here:
COREDLL!xxx_SetProcPermissions(unsigned long 0x0000ffff) line 170 + 8 bytes
CEPERFMON!CBatteryPerf::QueryInterface(const _GUID & {...}, void * *
0x00000010) line 221 + 20 bytes

and here:
COREDLL!xxx_SetProcPermissions(unsigned long 0x00000000) line 170 + 8 bytes
CEPERFMON!CSystemPerf::GetSystemSnapshot(_SYSTEMTIME * 0x1882fca8,
_SYSTEMTIME * 0x1882fc90, _CE_SYSTEM_INFO * 0x1882fc98, _LARGE_INTEGER *
0x00000000, _LARGE_INTEGER * 0x00000000, _CEPERFMON_PROCESS_DATA * *
0x00000000, _CEPERFMON_THREAD_DATA * * 0x00000000, _CEPERFMON_HEAPLIST_DATA
* * 0x00000000, _CEPERFMON_HEAP_DATA * * 0x00000000) line 186 + 8 bytes


Happy hunting!

--
-Richard Lee eMVP


.