VirtualBox

Changeset 37410 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Jun 10, 2011 3:11:40 PM (14 years ago)
Author:
vboxsync
Message:

VMM,SUPDrv: Created DBGFTrace.

Location:
trunk/include/VBox/vmm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmdev.h

    r35810 r37410  
    27082708
    27092709    /**
     2710     * Gets the trace buffer handle.
     2711     *
     2712     * This is used by the macros found in VBox/vmm/dbgftrace.h and is not
     2713     * really inteded for direct usage, thus no inline wrapper function.
     2714     *
     2715     * @returns Trace buffer handle or NIL_RTTRACEBUF.
     2716     * @param   pDevIns             The device instance.
     2717     */
     2718    DECLR3CALLBACKMEMBER(RTTRACEBUF, pfnDBGFTraceBuf,(PPDMDEVINS pDevIns));
     2719
     2720    /**
    27102721     * Registers a statistics sample if statistics are enabled.
    27112722     *
     
    35583569    DECLRCCALLBACKMEMBER(uint64_t, pfnTMTimeVirtGetNano,(PPDMDEVINS pDevIns));
    35593570
     3571    /**
     3572     * Gets the trace buffer handle.
     3573     *
     3574     * This is used by the macros found in VBox/vmm/dbgftrace.h and is not
     3575     * really inteded for direct usage, thus no inline wrapper function.
     3576     *
     3577     * @returns Trace buffer handle or NIL_RTTRACEBUF.
     3578     * @param   pDevIns             The device instance.
     3579     */
     3580    DECLRCCALLBACKMEMBER(RTTRACEBUF, pfnDBGFTraceBuf,(PPDMDEVINS pDevIns));
     3581
    35603582    /** Just a safety precaution. */
    35613583    uint32_t                        u32TheEnd;
     
    37453767     */
    37463768    DECLR0CALLBACKMEMBER(uint64_t, pfnTMTimeVirtGetNano,(PPDMDEVINS pDevIns));
     3769
     3770    /**
     3771     * Gets the trace buffer handle.
     3772     *
     3773     * This is used by the macros found in VBox/vmm/dbgftrace.h and is not
     3774     * really inteded for direct usage, thus no inline wrapper function.
     3775     *
     3776     * @returns Trace buffer handle or NIL_RTTRACEBUF.
     3777     * @param   pDevIns             The device instance.
     3778     */
     3779    DECLR0CALLBACKMEMBER(RTTRACEBUF, pfnDBGFTraceBuf,(PPDMDEVINS pDevIns));
    37473780
    37483781    /** Just a safety precaution. */
  • trunk/include/VBox/vmm/vm.h

    r37362 r37410  
    44
    55/*
    6  * Copyright (C) 2006-2010 Oracle Corporation
     6 * Copyright (C) 2006-2011 Oracle Corporation
    77 *
    88 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    850850    /** @} */
    851851
    852 
    853     /* padding to make gnuc put the StatQemuToGC where msc does. */
    854 #if HC_ARCH_BITS == 32
    855     uint32_t                    padding0;
    856 #endif
    857 
     852    /** @name Debugging
     853     * @{ */
     854    /** Raw-mode Context VM Pointer. */
     855    RCPTRTYPE(RTTRACEBUF)       hTraceBufRC;
     856    /** Alignment padding */
     857    uint32_t                    uPadding3;
     858    /** Ring-3 Host Context VM Pointer. */
     859    R3PTRTYPE(RTTRACEBUF)       hTraceBufR3;
     860    /** Ring-0 Host Context VM Pointer. */
     861    R0PTRTYPE(RTTRACEBUF)       hTraceBufR0;
     862    /** @} */
     863
     864    /** @name Switcher statistics (remove)
     865     * @{ */
    858866    /** Profiling the total time from Qemu to GC. */
    859867    STAMPROFILEADV              StatTotalQemuToGC;
     
    879887    STAMPROFILEADV              StatSwitcherLldt;
    880888    STAMPROFILEADV              StatSwitcherTSS;
    881 
     889    /** @} */
     890
     891#if HC_ARCH_BITS != 64
    882892    /** Padding - the unions must be aligned on a 64 bytes boundary and the unions
    883893     *  must start at the same offset on both 64-bit and 32-bit hosts. */
    884     uint8_t                     abAlignment1[HC_ARCH_BITS == 32 ? 48 : 24];
     894    uint8_t                     abAlignment1[HC_ARCH_BITS == 32 ? 36 : 0];
     895#endif
    885896
    886897    /** CPUM part. */
     
    10851096
    10861097#endif
     1098
  • trunk/include/VBox/vmm/vm.mac

    r35361 r37410  
    44
    55;
    6 ; Copyright (C) 2006-2010 Oracle Corporation
     6; Copyright (C) 2006-2011 Oracle Corporation
    77;
    88; This file is part of VirtualBox Open Source Edition (OSE), as
     
    2424;
    2525
    26 %ifndef ___VBox_vmm_vm_mac__
    27 %define ___VBox_vmm_vm_mac__
     26%ifndef ___VBox_vmm_vm_mac
     27%define ___VBox_vmm_vm_mac
    2828
    2929%include "VBox/vmm/stam.mac"
     
    7373    .fUseLargePages         resb 1
    7474
     75    .hTraceBufRC            RTRCPTR_RES 1
     76    .uPadding3              resd 1
     77    .hTraceBufR3            RTR3PTR_RES 1
     78    .hTraceBufR0            RTR0PTR_RES 1
     79
    7580    alignb 8
    7681
     
    99104    .abAlignment1           resb 48
    100105%else
    101     .abAlignment1           resb 24
     106;    .abAlignment1           resb 0
    102107%endif
    103108
     
    136141
    137142%endif
     143
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