IFTEMP00 = 0
IFDEF INCL_32
IFTEMP00 = 1
ENDIF
IFDEF INCL_16
IFTEMP00 = 1
ENDIF
IFE IFTEMP00
ifdef M_I386
INCL_32	EQU	1

else 
INCL_16	EQU	1

endif 
endif 
TMR_INSTALLED	EQU	0001H     
ifdef INCL_32
ifdef PERFSTRICT
else   
endif  
else   
ifdef PERFSTRICT
else   
endif  
endif  











































































?PvwNop macro
        db  MI_SEGDS
        db  MI_MOV_REG_REGMEM
        db  (MI_MODREG OR MI_REGAX)
endm




?PvwHk  macro   ctrtype,entname,ctrname,instance,fstrict
IF (?cstype eq ?CS_32bit)
        IFB <fstrict>
                IFDIF <entname>,<cal>   
                        EXTRN32 _PvwPatch_&ctrtype&_&entname&_&ctrname&_&instance
                ENDIF 
                        pushf
                        CCALL32 _PvwPatch_&ctrtype&_&entname&_&ctrname&_&instance
                        popf
        ELSE 

                        EXTRN32 _PvwPatch_&ctrtype&_&entname&_&ctrname&_&instance
                        pushf
                        CCALL32 _PvwPatch_&ctrtype&_&entname&_&ctrname&_&instance
                        popf

        ENDIF 
ELSE  


        IFB <fstrict>
                        EXTRNF32 pvwMt_&ctrtype&_&entname&_&ctrname&_&instance
                        pushf
                        CALLF32 pvwMt_&ctrtype&_&entname&_&ctrname&_&instance,,nocheck
                        popf
        ELSE 

                        EXTRNF32 pvwMt_&ctrtype&_&entname&_&ctrname&_&instance
                        pushf
                        CALLF32 pvwMt_&ctrtype&_&entname&_&ctrname&_&instance,,nocheck
                        popf

        ENDIF 

ENDIF 
endm


PvwCnt          macro   entname,ctrname,instance,fstrict
        ?PvwHk Ct,<entname>,<ctrname>,<instance>,<fstrict>
endm


PvwStartTm      macro   entname,ctrname,instance,fstrict
        ?PvwHk ST,<entname>,<ctrname>,<instance>,<fstrict>
endm


PvwEndTm        macro   entname,ctrname,instance,fstrict
        ?PvwHk ET,<entname>,<ctrname>,<instance>,<fstrict>
endm


PvwBulkCnt      macro   entname,ctrname,instance,fstrict
        ?PvwHk BC,<entname>,<ctrname>,<instance>,<fstrict>
endm


PvwSumSquares   macro   entname,ctrname,instance,fstrict
        ?PvwHk SS,<entname>,<ctrname>,<instance>,<fstrict>
endm




PvwEnterQ       macro   entname,ctrname,instance,fstrict
        ?PvwHk EQ,<entname>,<ctrname>,<instance>,<fstrict>
endm

PvwLeaveQ       macro   entname,ctrname,instance,fstrict
        ?PvwHk LQ,<entname>,<ctrname>,<instance>,<fstrict>
endm






PvwCntStartTm   macro   entname,ctrname,instance,fstrict
        ?PvwHk CtST,<entname>,<ctrname>,<instance>,<fstrict>
endm






PvwCntBulkCnt   macro   entname,ctrname,instance,fstrict
        ?PvwHk CtBC,<entname>,<ctrname>,<instance>,<fstrict>
endm







PvwMeasurement  macro   entname,ctrname,instance,fstrict
        ?PvwHk Mt,<entname>,<ctrname>,<instance>,<fstrict>
endm

PvwSemStartTm  macro   entname,ctrname,instance,fstrict
        ?PvwHk SmTm,<entname>,<ctrname>,<instance>,<fstrict>
endm

PvwSemEndTm  macro   entname,ctrname,instance,fstrict
        ?PvwHk SmET,<entname>,<ctrname>,<instance>,<fstrict>
endm


