Changeset 37935 in vbox
- Timestamp:
- Jul 13, 2011 11:12:42 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 72846
- Location:
- trunk/src/VBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp.c
r37746 r37935 580 580 int fNATfailed = 0; 581 581 int rc; 582 PNATState pData = RTMemAllocZ( sizeof(NATState));582 PNATState pData = RTMemAllocZ(RT_ALIGN_Z(sizeof(NATState), sizeof(uint64_t))); 583 583 *ppData = pData; 584 584 if (!pData) -
trunk/src/VBox/VMM/include/MMInternal.h
r35346 r37935 64 64 struct MMHEAP *pHeap; 65 65 #ifdef MMR3HEAP_WITH_STATISTICS 66 # if HC_ARCH_BITS == 32 67 /** Aligning the statistics on an 8 byte boundary (for uint64_t and STAM). */ 68 void *pvAlignment; 69 # endif 66 /** Number of bytes currently allocated. */ 67 size_t cbCurAllocated; 70 68 /** Number of allocation. */ 71 69 uint64_t cAllocations; … … 80 78 /** Number of bytes freed. */ 81 79 uint64_t cbFreed; 82 /** Number of bytes currently allocated. */83 size_t cbCurAllocated;84 80 #endif 85 81 } MMHEAPSTAT; 86 82 #if defined(MMR3HEAP_WITH_STATISTICS) && defined(IN_RING3) 87 83 AssertCompileMemberAlignment(MMHEAPSTAT, cAllocations, 8); 84 AssertCompileSizeAlignment(MMHEAPSTAT, 8); 88 85 #endif 89 86 /** Pointer to heap statistics record. */ -
trunk/src/VBox/VMM/include/PDMBlkCacheInternal.h
r36302 r37935 103 103 { 104 104 /** Pointer to the owning VM instance. */ 105 PVM pVM;105 PVM pVM; 106 106 /** Maximum size of the cache in bytes. */ 107 uint32_t cbMax;107 uint32_t cbMax; 108 108 /** Current size of the cache in bytes. */ 109 uint32_t cbCached;109 uint32_t cbCached; 110 110 /** Critical section protecting the cache. */ 111 RTCRITSECT CritSect;111 RTCRITSECT CritSect; 112 112 /** Maximum number of bytes cached. */ 113 uint32_t cbRecentlyUsedInMax;113 uint32_t cbRecentlyUsedInMax; 114 114 /** Maximum number of bytes in the paged out list .*/ 115 uint32_t cbRecentlyUsedOutMax;115 uint32_t cbRecentlyUsedOutMax; 116 116 /** Recently used cache entries list */ 117 PDMBLKLRULIST LruRecentlyUsedIn;117 PDMBLKLRULIST LruRecentlyUsedIn; 118 118 /** Scorecard cache entry list. */ 119 PDMBLKLRULIST LruRecentlyUsedOut;119 PDMBLKLRULIST LruRecentlyUsedOut; 120 120 /** List of frequently used cache entries */ 121 PDMBLKLRULIST LruFrequentlyUsed;121 PDMBLKLRULIST LruFrequentlyUsed; 122 122 /** Commit timeout in milli seconds */ 123 uint32_t u32CommitTimeoutMs;123 uint32_t u32CommitTimeoutMs; 124 124 /** Number of dirty bytes needed to start a commit of the data to the disk. */ 125 uint32_t cbCommitDirtyThreshold;125 uint32_t cbCommitDirtyThreshold; 126 126 /** Current number of dirty bytes in the cache. */ 127 volatile uint32_t cbDirty; 127 volatile uint32_t cbDirty; 128 /** Flag whether the VM was suspended becaus of an I/O error. */ 129 volatile bool fIoErrorVmSuspended; 128 130 /** Flag whether a commit is currently in progress. */ 129 volatile bool fCommitInProgress;131 volatile bool fCommitInProgress; 130 132 /** Commit interval timer */ 131 PTMTIMERR3 pTimerCommit;133 PTMTIMERR3 pTimerCommit; 132 134 /** Number of endpoints using the cache. */ 133 uint32_t cRefs;135 uint32_t cRefs; 134 136 /** List of all users of this cache. */ 135 RTLISTNODE ListUsers;137 RTLISTNODE ListUsers; 136 138 #ifdef VBOX_WITH_STATISTICS 137 139 /** Hit counter. */ 138 STAMCOUNTER cHits;140 STAMCOUNTER cHits; 139 141 /** Partial hit counter. */ 140 STAMCOUNTER cPartialHits;142 STAMCOUNTER cPartialHits; 141 143 /** Miss counter. */ 142 STAMCOUNTER cMisses;144 STAMCOUNTER cMisses; 143 145 /** Bytes read from cache. */ 144 STAMCOUNTER StatRead;146 STAMCOUNTER StatRead; 145 147 /** Bytes written to the cache. */ 146 STAMCOUNTER StatWritten;148 STAMCOUNTER StatWritten; 147 149 /** Time spend to get an entry in the AVL tree. */ 148 STAMPROFILEADV StatTreeGet;150 STAMPROFILEADV StatTreeGet; 149 151 /** Time spend to insert an entry in the AVL tree. */ 150 STAMPROFILEADV StatTreeInsert;152 STAMPROFILEADV StatTreeInsert; 151 153 /** Time spend to remove an entry in the AVL tree. */ 152 STAMPROFILEADV StatTreeRemove;154 STAMPROFILEADV StatTreeRemove; 153 155 /** Number of times a buffer could be reused. */ 154 STAMCOUNTER StatBuffersReused; 155 #endif 156 /** Flag whether the VM was suspended becaus of an I/O error. */ 157 volatile bool fIoErrorVmSuspended; 156 STAMCOUNTER StatBuffersReused; 157 #endif 158 158 } PDMBLKCACHEGLOBAL; 159 159 #ifdef VBOX_WITH_STATISTICS
Note:
See TracChangeset
for help on using the changeset viewer.