Listing of OS/2 1.1 trace codes

This is a partial list of OS/2 trace events extracted from the OS/2 1.1 version of TRACEFMT.EXE (72,512 bytes, 26Oct88). The OS/2 TRACE command allows the user to control which major events are traced. For each major event traced, the system traces all minor events. For some major events, such as DevHlp (97), this may produce too much data to be useful.

We list the major events in decimal, which is how they are supplied to the TRACE command. We list the minor events in hex. Many minor events come in pairs, where the second is 80H plus the first.

The presence of a trace event in the list does not necessarily mean that OS/2 actually traces the events. It only reflects what TRACEFMT will report if it finds the major/minor event pair in the trace table.

We have not yet installed OS/2 SE 1.2. The announcement letter we saw for 1.2 leads us to believe that tracing in this version has gotten fancier.

0 Trace 1 Trace Entries Missed 2 Trace Mask Update 2 Mode Transition 1 Real to Protect Mode Transition 81 Protect to Real Mode Transition 3 Machine Exception 1 Exception 0 (Divide Error) 2 Exception 1 (Single Step) 3 Exception 2 (NMI) 4 Exception 3 (Breakpoint) 5 Exception 4 (INTO) 6 Exception 5 (Bound) 7 Exception 6 (Invalid Opcode) 4 Hardware Interrupt, add 80H for Post-Invocation 1 Interrupt Level=0 (Timer) 2 Interrupt Level=1 (Keyboard) 3 Interrupt Level=2 (NMI) 4 Interrupt Level=3 (Serial Port 2) 5 Interrupt Level=4 (Serial Port 1) 16 Tasking, add 80H for Post-Invocation 1 DosCreateThread Pre-Invocation 2 DosCwait Pre-Invocation 3 DosEnterCritSec Pre-Invocation 4 DosExecPgm Pre-Invocation 5 DosExit Pre-Invocation 6 DosExitCritSec Pre-Invocation 7 DosExitList Pre-Invocation 8 DosSetPrty Pre-Invocation 9 DosKillProcess Pre-Invocation A DosPtrace Pre-Invocation B DosResumeThread Pre-Invocation C DosSuspendThread Pre-Invocation D DosSetCP Pre-Invocation 18 Tasking 1 Thread Dispatch 2 ExitList Call 20 Program Execution Control, add 80H for Post-Invocation 1 DosLoadModule Pre-Invocation 2 DosFreeModule Pre-Invocation 3 DosGetProcAddr Pre-Invocation 4 DosGetModHandle Pre-Invocation 5 DosGetModName Pre-Invocation 22 Program Execution Control, add 80H for Post-Invocation 1 Dynamic Link Load On Call Pre-Invocation 24 Inter-Process Communication 1 DosHoldSignal Pre-Invocation 2 DosSendSignal Pre-Invocation 3 DosSetSigHandler Pre-Invocation 4 DosMakePipe Pre-Invocation 5 DosSemClear Pre-Invocation 6 DosSemRequest Pre-Invocation 7 DosSemSet Pre-Invocation 8 DosSemSetWait Pre-Invocation 9 DosSemWait Pre-Invocation A DosMuxSemWait Pre-Invocation B DosCloseSem Pre-Invocation C DosCreateSem Pre-Invocation D DosOpenSem Pre-Invocation E DosFlagProcess Pre-Invocation 28 Miscellaneous Services, add 80H for Post-Invocation 1 DosError Pre-Invocation 2 DosSetVec Pre-Invocation 3 DosSysService Pre-Invocation 32 Physical Memory Allocator, add 80H for Post-Invocation 1 PhysEnterMem Pre-Invocation 2 PhysAlloc Pre-Invocation 3 PhysRealloc Pre-Invocation 4 PhysFree Pre-Invocation 33 Physical Memory Compactor, add 80H for after or Post-Invocation 1 Before Moving A Segment 2 Before Swapping A Segment 3 CompMultipleSlide Pre-Invocation 4 CompOneMove Pre-Invocation 5 CompFmove Pre-Invocation 6 CompRaiseBorder Pre-Invocation 7 CompLruSwap Pre-Invocation 8 CompPrevPlus Pre-Invocation 9 CompMoveUnlockedUp Pre-Invocation A CompRealloc Pre-Invocation 34 Swapper, add 80H for Post-Invocation 1 Swap Out Pre-Invocation 2 Swap In Pre-Invocation 3 Swap Free Pre-Invocation 4 Swap Task Entry 84 Swap Task Exit 35 Swapper 1 Swap Over-Commit Pre-Invocation 81 Swap Over-Commit Post-Invocation 36 Virtual Memory Management, add 80H for Post-Invocation 1 DosAllocSeg Pre-Invocation 2 DosAllocShrSeg Pre-Invocation 3 DosGetShrSeg Pre-Invocation 4 DosReallocSeg Pre-Invocation 5 DosFreeSeg Pre-Invocation 6 DosAllocHuge Pre-Invocation 7 DosReallocHuge Pre-Invocation 8 DosCreateCSAlias Pre-Invocation 9 DosGiveSeg Pre-Invocation 47 Physical Memory Allocator, add 80H for Post-Invocation 1 PhysLock Pre-Invocation 2 PhysUnlock Pre-Invocation 48 File System, add 80H for Post-Invocation 1 DosBufReset Pre-Invocation 2 DosChgFilePtr Pre-Invocation 3 DosClose Pre-Invocation 4 DosDelete Pre-Invocation 5 DosDupHandle Pre-Invocation 6 DosFileLocks Pre-Invocation 7 DosMkDir Pre-Invocation 8 DosMove Pre-Invocation 9 DosNewSize Pre-Invocation A DosOpen Pre-Invocation B DosRead Pre-Invocation C DosReadAsync Pre-Invocation D DosRmDir Pre-Invocation E DosSelectDisk Pre-Invocation F DosSetFHandState Pre-Invocation 10 DosSetFileMode Pre-Invocation 11 DosSetVerify Pre-Invocation 12 DosWrite Pre-Invocation 13 DosWriteAsync Pre-Invocation 14 DosChDir Pre-Invocation 15 DosFindClose Pre-Invocation 16 DosFindFirst Pre-Invocation 17 DosFindNext Pre-Invocation 50 File System 1 Cluster Allocate Pre-Invocation 2 Cluster Deallocate Pre-Invocation 3 Lock/Unlock File Range Pre-Invocation 56 Timer Services, add 80H for Post-Invocation 1 DosGetDateTime Pre-Invocation 2 DosSetDateTime Pre-Invocation 3 DosSleep Pre-Invocation 4 DosTimerAsync Pre-Invocation 5 DosTimerStart Pre-Invocation 6 DosTimerStop Pre-Invocation 96 Device Management, add 80H for Post-Invocation 1 DosDevConfig Pre-Invocation 2 DosDevIOCtl Pre-Invocation 3 DosIOAccess Pre-Invocation 4 DosMonOpen Pre-Invocation 5 DosMonClose Pre-Invocation 6 DosMonReg Pre-Invocation 7 DosMonRead Pre-Invocation 8 DosMonWrite Pre-Invocation 9 DosPhysicalDisk Pre-Invocation 97 Device Help Routines, add 80H for Post-Invocation 1 DevHlp_SchedClock Pre-Invocation 2 DevHlp_DevDone Pre-Invocation 3 DevHlp_Yield Pre-Invocation 4 DevHlp_TCYield Pre-Invocation 5 DevHlp_Block Pre-Invocation 6 DevHlp_Run Pre-Invocation 7 DevHlp_SemRequest Pre-Invocation 8 DevHlp_SemClear Pre-Invocation 9 DevHlp_SemHandle Pre-Invocation A DevHlp_PushReqPacket Pre-Invocation B DevHlp_PullReqPacket Pre-Invocation C DevHlp_PullParticular Pre-Invocation D DevHlp_SortReqPacket Pre-Invocation E DevHlp_AllocReqPacket Pre-Invocation F DevHlp_FreeReqPacket Pre-Invocation 10 DevHlp_QueueInit Pre-Invocation 11 DevHlp_QueueFlush Pre-Invocation 12 DevHlp_QueueWrite Pre-Invocation 13 DevHlp_QueueRead Pre-Invocation 14 DevHlp_Lock Pre-Invocation 15 DevHlp_Unlock Pre-Invocation 17 DevHlp_VirtToPhys Pre-Invocation 18 DevHlp_PhysToUVirt Pre-Invocation 19 DevHlp_AllocPhys Pre-Invocation 1A DevHlp_FreePhys Pre-Invocation 1B DevHlp_SetROMVector Pre-Invocation 1C DevHlp_SetIRQ Pre-Invocation 1D DevHlp_UnSetIRQ Pre-Invocation 1E DevHlp_SetTimer Pre-Invocation 1F DevHlp_ResetTimer Pre-Invocation 20 DevHlp_MonCreate Pre-Invocation 21 DevHlp_Register Pre-Invocation 22 DevHlp_DeRegister Pre-Invocation 23 DevHlp_MonWrite Pre-Invocation 24 DevHlp_MonFlush Pre-Invocation 25 DevHlp_GetDOSVar Pre-Invocation 26 DevHlp_SendEvent Pre-Invocation 27 DevHlp_ROMCritSection Pre-Invocation 28 DevHlp_EOI Pre-Invocation 29 DevHlp_GetLIDEntry Pre-Invocation 2A DevHlp_FreeLIDEntry Pre-Invocation 2B DevHlp_ABIOSCall Pre-Invocation 2C DevHlp_ABIOSCommonEntry Pre-Invocation 2E DevHlp_TickCount Pre-Invocation 2F DevHlp_AllocGDTSelector Pre-Invocation 30 DevHlp_PhysToGDTSelector Pre-Invocation 31 DevHlp_RealToProt Pre-Invocation 32 DevHlp_ProtToReal Pre-Invocation 33 DevHlp_VerifyAccess Pre-Invocation 34 DevHlp_RAS AddTraceEvent Pre-Invocation 35 DevHlp_GetDeviceBlock Pre-Invocation 36 DevHlp_ABIOSGetParms Pre-Invocation 98 Device Help Routines, add 80H for Post-Invocation 1 DevHlp_PhysToVirt Pre-Invocation 2 DevHlp_UnPhysToVirt Pre-Invocation 100 Keyboard Handler, add 80H for Post-Invocation 1 DosBeep Pre-Invocation 2 KbdRegister Pre-Invocation 3 KbdCharIn Pre-Invocation 4 KbdFlushBuffer Pre-Invocation 5 KbdPeek Pre-Invocation 6 KbdSetStatus Pre-Invocation 7 KbdGetStatus Pre-Invocation 8 KbdStringIn Pre-Invocation 9 KbdDeRegister Pre-Invocation A KbdOpen Pre-Invocation B KbdClose Pre-Invocation C KbdGetFocus Pre-Invocation D KbdFreeFocus Pre-Invocation E KbdGetCp Pre-Invocation F KbdSetCp Pre-Invocation 10 KbdXlate Pre-Invocation 11 KbdSetCusTxt Pre-Invocation 104 Disk Device Driver, add 80H for Post-Invocation 1 Disk Read Pre-Invocation 2 Disk Write Pre-Invocation 3 Disk Write/Verify Pre-Invocation 106 Mouse Handler, add 80H for Post-Invocation 1 MouRegister Pre-Invocation 2 MouGetNumButtons Pre-Invocation 3 MouGetNumMickeys Pre-Invocation 4 MouGetDevStatus Pre-Invocation 5 MouReadEventQue Pre-Invocation 6 MouGetNumQueEl Pre-Invocation 7 MouGetEventMask Pre-Invocation 8 MouGetScaleFact Pre-Invocation 9 MouSetScaleFact Pre-Invocation A MouSetEventMask Pre-Invocation B MouOpen Pre-Invocation C MouClose Pre-Invocation D MouSetPtrShape Pre-Invocation E MouRemovePtr Pre-Invocation F MouDrawPtr Pre-Invocation 10 MouSetHotKey Pre-Invocation 11 MouDeregister Pre-Invocation 12 MouGetHotKey Pre-Invocation 13 MouGetPtrShape Pre-Invocation 14 MouGetPtrPos Pre-Invocation 15 MouSetPtrPos Pre-Invocation 16 MouInitReal Pre-Invocation 17 MouFlushQue Pre-Invocation 18 MouSetDevStatus Pre-Invocation 108 Video I/O, add 80H for Post-Invocation 1 VioRegister Pre-Invocation 2 VioGetBuf Pre-Invocation 3 VioGetCurPos Pre-Invocation 4 VioGetCurType Pre-Invocation 5 VioGetMode Pre-Invocation 6 VioGetPhysBuf Pre-Invocation 7 VioReadCellStr Pre-Invocation 8 VioReadCharStr Pre-Invocation 9 VioScrollDn Pre-Invocation A VioScrollUp Pre-Invocation B VioScrollLf Pre-Invocation C VioScrollRt Pre-Invocation D VioSetCurPos Pre-Invocation E VioSetCurType Pre-Invocation F VioSetMode Pre-Invocation 10 VioShowBuf Pre-Invocation 11 VioWrtCellStr Pre-Invocation 12 VioWrtCharStr Pre-Invocation 13 VioWrtCharStrAtt Pre-Invocation 14 VioWrtNAttr Pre-Invocation 15 VioWrtNCell Pre-Invocation 16 VioWrtNChar Pre-Invocation 17 VioWrtTTY Pre-Invocation 18 VioSetAnsi Pre-Invocation 19 VioGetAnsi Pre-Invocation 1A VioModeWait Pre-Invocation 1B VioSavRedrawWait Pre-Invocation 1C VioSavRedrawUndo Pre-Invocation 1D VioScrLock Pre-Invocation 1E VioScrUnlock Pre-Invocation 1F VioModeUndo Pre-Invocation 20 VioGetFont Pre-Invocation 21 VioGetConfig Pre-Invocation 22 VioPopUp Pre-Invocation 23 VioEndPopUp Pre-Invocation 24 VioDeRegister Pre-Invocation 25 VioPrtSc Pre-Invocation 26 VioPrtScToggle Pre-Invocation 27 VioSetCp Pre-Invocation 28 VioGetCp Pre-Invocation 29 VioSetFont Pre-Invocation 2A VioGetState Pre-Invocation 2B VioSetState Pre-Invocation 128 Session Manager, add 80H for Post-Invocation 1 DosSmInitialize Pre-Invocation 2 DosSmSgStart Pre-Invocation 3 DosSmSgSwitch Pre-Invocation 4 DosSmSgTerminate Pre-Invocation 5 DOSSmSgQStatus Pre-Invocation 6 Session Manager - Unrecognized Trace Event 7 Session Manager - Unrecognized Trace Event 8 DosSmSgSetTitle Pre-Invocation 9 DosSmSgDoPopup Pre-Invocation A DosSmSgEndPopup Pre-Invocation B DosSmSgSet Pre-Invocation C DosSelectSession Pre-Invocation D DosSetSession Pre-Invocation E DosStartSession Pre-Invocation F DosStopSession Pre-Invocation 10 DosSmGetAppReq Pre-Invocation 11 DosSmDoAppReq Pre-Invocation 12 DosSmInitialize Pre-Invocation 13 DosSmAppNotify Pre-Invocation 129 Session Manager, add 80H for Post-Invocation 1 DosSmInitAlloc Pre-Invocation 2 DosSmNewThreads Pre-Invocation 3 DosSmGetSgid Pre-Invocation 4 DosSmFreeSgid Pre-Invocation 5 DosSmAddSgQueue Pre-Invocation 6 DosSmGetSgQueue Pre-Invocation 7 DosSmDelSgQueue Pre-Invocation 8 DosSmChildExit Pre-Invocation 130 Session Manager 1 DosSmAddSgQueue Internal 2 DosSmSetSgTitle Internal 3 DosSmGetSgTitle Internal 131 Message Retriever 1 DosGetMessage Pre-Invocation 2 DosInsMessage Pre-Invocation 3 DosPutMessage Pre-Invocation 136 Queueing, add 80H for Post-Invocation 1 DosCloseQueue Pre-Invocation 2 DosCreateQueue Pre-Invocation 3 DosOpenQueue Pre-Invocation 4 DosPeekQueue Pre-Invocation 5 DosPurgeQueue Pre-Invocation 6 DosQueryQueue Pre-Invocation 7 DosReadQueue Pre-Invocation 8 DosWriteQueue Pre-Invocation 137 Queueing 1 Write Data Packet To Queue 2 Read Data Packet From Queue 3 Peek Data Packet From Queue 143 Miscellaneous, add 80H for Post-invocation 1 DosSegs Pre-Invocation 2 DosGetHugeShift Pre-Invocation 3 DosGetVersion Pre-Invocation 4 DosQCurDir Pre-Invocation 5 DosChDir Pre-Invocation 6 PanicWrite Pre-Invocation 7 DosFindFirst Pre-Invocation 8 DosFindNext Pre-Invocation 9 DosFindClose Pre-Invocation A DosQFileMode Pre-Invocation B DosQCurDisk Pre-Invocation C DosGetPid Pre-Invocation D DosGetEnv Pre-Invocation E DosSicg Pre-Invocation F DosLibInit Pre-Invocation 10 DosQVerify Pre-Invocation 11 DosSetFileInfo Pre-Invocation 12 DosQFileInfo Pre-Invocation 13 DosSetMaxFH Pre-Invocation 14 DosQFHandState Pre-Invocation 15 DosGetInfoSeg Pre-Invocation 16 DosQHandType Pre-Invocation 17 DosSetFsInfo Pre-Invocation 18 DosQFSInfo Pre-Invocation 19 DosSystemService Pre-Invocation 1A DosSetVector Pre-Invocation 1B DosDataPath Pre-Invocation 1C DosJoin Pre-Invocation 1E DosSubst Pre-Invocation 1F DosCanonicalize Pre-Invocation 23 DosSwapTaskInit Pre-Invocation 152 Communications SubSystem 153 Communications SubSystem 154 Communications SubSystem 155 Communications SubSystem 156 Communications SubSystem 157 Communications SubSystem 158 Communications SubSystem 159 Communications SubSystem 164 Communications 176 Data Base No trace codes defined 177 Data Base No trace codes defined 178 Data Base No trace codes defined 179 Data Base No trace codes defined 180 Data Base No trace codes defined 181 Data Base No trace codes defined 182 Data Base No trace codes defined 183 Data Base No trace codes defined 192 Presentation Manager No trace codes defined 194 Presentation Manager 81 WinQueryWindowLockCount Pre-Invocation 82 WinQueryWindowUShort Pre-Invocation 83 WinSetWindowUShort Pre-Invocation 84 WinQueryWindowULong/WinQueryWindowPtr Pre-Invocation 85 WinSetWindowULong/WinSetWindowPtr Pre-Invocation 86 WinSetWindowBits Pre-Invocation 87 WinCancelShutDown Pre-Invocation