VirtualBox

Changeset 40839 in vbox for trunk


Ignore:
Timestamp:
Apr 9, 2012 2:18:19 PM (13 years ago)
Author:
vboxsync
Message:

VBoxTpG: Drop the file name in the probe location, it isn't useful to DTrace. Also use FUNCTION instead of PRETTY_FUNCTION to note down the name of the enclosing function.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VBoxTpG.h

    r40826 r40839  
    3535    uint32_t    idProbe;
    3636    const char *pszFunction;
    37     const char *pszFile;
    3837    uint8_t    *pbProbe;
    39 #if ARCH_BITS == 32 /* Make the structure a multiple of 8. */
    40     uint32_t    u32Padding;
    41 #endif
    4238} VTGPROBELOC;
    4339/** Pointer to a probe location. */
     
    228224
    229225/** The current VTGOBJHDR::szMagic value. */
    230 #define VTGOBJHDR_MAGIC     "VTG Object Header v1.0\0"
     226#define VTGOBJHDR_MAGIC     "VTG Object Header v1.1\0"
    231227
    232228/** The name of the VTG data object header symbol in the object file. */
  • trunk/src/VBox/HostDrivers/Support/SUPDrvTracer.cpp

    r40831 r40839  
    311311            return VERR_SUPDRV_VTG_BAD_PROBE_LOC;
    312312        MY_WITHIN_IMAGE(pVtgHdr->paProbLocs[i].pszFunction, VERR_SUPDRV_VTG_BAD_PROBE_LOC);
    313         MY_WITHIN_IMAGE(pVtgHdr->paProbLocs[i].pszFile,     VERR_SUPDRV_VTG_BAD_PROBE_LOC);
    314313        offTmp = (uintptr_t)pVtgHdr->paProbLocs[i].pbProbe - (uintptr_t)pVtgHdr->paProbes;
    315314        if (offTmp >= pVtgHdr->cbProbes)
  • trunk/src/bldprogs/VBoxTpG.cpp

    r40830 r40839  
    489489                    "                ;0         1         2         3\n"
    490490                    "                ;012345678901234567890123456789012\n"
    491                     "    db          'VTG Object Header v1.0', 0, 0\n"
     491                    "    db          'VTG Object Header v1.1', 0, 0\n"
    492492                    "    dd          %u\n"
    493493                    "    dd          0\n"
     
    958958                            "        { \\\n"
    959959                            "            VTG_DECL_VTGPROBELOC(s_VTGProbeLoc) = \\\n"
    960                             "            { __LINE__, 0, UINT32_MAX, __PRETTY_FUNCTION__, __FILE__, &g_VTGProbeData_%s_%s }; \\\n"
     960                            "            { __LINE__, 0, UINT32_MAX, __FUNCTION__, &g_VTGProbeData_%s_%s }; \\\n"
    961961                            "            VTGProbeStub_%s_%s(&s_VTGProbeLoc",
    962962                            pProv->pszName, pProbe->pszMangledName,
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