VirtualBox

Changeset 102366 in vbox for trunk


Ignore:
Timestamp:
Nov 28, 2023 2:22:42 PM (15 months ago)
Author:
vboxsync
Message:

VMM/IEM: Log call as they are emitted by the threaded recompiler. bugref:10371

Location:
trunk/src/VBox/VMM/VMMAll
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IEMAllThrdRecompiler.cpp

    r102365 r102366  
    55 * Logging group IEM_RE_THREADED assignments:
    66 *      - Level 1  (Log)  : Errors, exceptions, interrupts and such major events. [same as IEM]
    7  *      - Flow  (LogFlow) :
     7 *      - Flow  (LogFlow) : TB calls being emitted.
    88 *      - Level 2  (Log2) : Basic instruction execution state info. [same as IEM]
    99 *      - Level 3  (Log3) : More detailed execution state info. [same as IEM]
  • trunk/src/VBox/VMM/VMMAll/IEMAllThrdTables.h

    r102010 r102366  
    227227        IEMTHREADEDFUNCS const enmFunctionCheck = a_enmFunction; RT_NOREF(enmFunctionCheck); \
    228228        \
     229        LogFlow(("Call #%u: " #a_enmFunction "\n", pTb->Thrd.cCalls)); \
    229230        PIEMTHRDEDCALLENTRY const pCall = &pTb->Thrd.paCalls[pTb->Thrd.cCalls++]; \
    230231        pCall->enmFunction = a_enmFunction; \
     
    242243        uint64_t         const uArg0Check       = (a_uArg0);     RT_NOREF(uArg0Check); \
    243244        \
     245        LogFlow(("Call #%u: " #a_enmFunction " a0=%RX64\n", pTb->Thrd.cCalls, (uint64_t)a_uArg0)); \
    244246        PIEMTHRDEDCALLENTRY const pCall = &pTb->Thrd.paCalls[pTb->Thrd.cCalls++]; \
    245247        pCall->enmFunction = a_enmFunction; \
     
    258260        uint64_t         const uArg1Check       = (a_uArg1);     RT_NOREF(uArg1Check); \
    259261        \
     262        LogFlow(("Call #%u: " #a_enmFunction " a0=%RX64 a1=%RX64\n", pTb->Thrd.cCalls, (uint64_t)a_uArg0, (uint64_t)a_uArg1)); \
    260263        PIEMTHRDEDCALLENTRY const pCall = &pTb->Thrd.paCalls[pTb->Thrd.cCalls++]; \
    261264        pCall->enmFunction = a_enmFunction; \
     
    275278        uint64_t         const uArg2Check       = (a_uArg2);     RT_NOREF(uArg2Check); \
    276279        \
     280        LogFlow(("Call #%u: " #a_enmFunction " a0=%RX64 a1=%RX64 a2=%RX64\n", pTb->Thrd.cCalls, (uint64_t)a_uArg0, (uint64_t)a_uArg1, (uint64_t)a_uArg2)); \
    277281        PIEMTHRDEDCALLENTRY const pCall = &pTb->Thrd.paCalls[pTb->Thrd.cCalls++]; \
    278282        pCall->enmFunction = a_enmFunction; \
     
    308312iemThreadedRecompilerMcDeferToCImpl0(PVMCPUCC pVCpu, uint32_t fFlags, uint64_t fGstShwFlush, PFNIEMCIMPL0 pfnCImpl)
    309313{
    310     Log8(("CImpl0: %04x:%08RX64 LB %#x: %#x %#RX64 %p\n",
    311           pVCpu->cpum.GstCtx.cs.Sel, pVCpu->cpum.GstCtx.rip, IEM_GET_INSTR_LEN(pVCpu), fFlags, fGstShwFlush, pfnCImpl));
     314    LogFlow(("CImpl0: %04x:%08RX64 LB %#x: %#x %#RX64 %p\n",
     315             pVCpu->cpum.GstCtx.cs.Sel, pVCpu->cpum.GstCtx.rip, IEM_GET_INSTR_LEN(pVCpu), fFlags, fGstShwFlush, pfnCImpl));
    312316    pVCpu->iem.s.fTbCurInstr = fFlags;
    313317
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette