儲存庫 vbox 的更動 62432
- 時間撮記:
- 2016-7-22 上午11:49:59 (8 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/uts/common/dtrace/dtrace.c
r53989 r62432 139 139 # undef NULL 140 140 # define NULL (0) 141 142 # ifdef _MSC_VER 143 //# pragma warning(disable: 4389) /* signed/unsigned mismatch */ 144 # endif 145 141 146 #endif /* VBOX */ 142 147 … … 2325 2330 } 2326 2331 2327 if ( dtrace_cas32((uint32_t *)&spec->dtsp_state,2328 current, DTRACESPEC_ACTIVE)== current)2332 if ( (dtrace_speculation_state_t)dtrace_cas32((uint32_t *)&spec->dtsp_state, current, DTRACESPEC_ACTIVE) 2333 == current) 2329 2334 return (i + 1); 2330 2335 } … … 2421 2426 #endif 2422 2427 } 2423 } while (dtrace_cas32((uint32_t *)&spec->dtsp_state, 2424 current, new) != current); 2428 } while ((dtrace_speculation_state_t)dtrace_cas32((uint32_t *)&spec->dtsp_state, current, new) != current); 2425 2429 2426 2430 /* … … 2539 2543 #endif 2540 2544 } 2541 } while (dtrace_cas32((uint32_t *)&spec->dtsp_state, 2542 current, new) != current); 2545 } while ((dtrace_speculation_state_t)dtrace_cas32((uint32_t *)&spec->dtsp_state, current, new) != current); 2543 2546 2544 2547 buf->dtb_offset = 0; … … 2730 2733 #endif 2731 2734 } 2732 } while (dtrace_cas32((uint32_t *)&spec->dtsp_state, 2733 current, new) != current); 2735 } while ((dtrace_speculation_state_t)dtrace_cas32((uint32_t *)&spec->dtsp_state, current, new) != current); 2734 2736 2735 2737 ASSERT(new == DTRACESPEC_ACTIVEONE || new == DTRACESPEC_ACTIVEMANY); … … 6064 6066 do { 6065 6067 current = state->dts_activity; 6066 } while ( dtrace_cas32(activity, current,6067 DTRACE_ACTIVITY_KILLED)!= current);6068 } while ( (dtrace_speculation_state_t)dtrace_cas32(activity, current, DTRACE_ACTIVITY_KILLED) 6069 != current); 6068 6070 6069 6071 continue; … … 6359 6361 current = DTRACE_ACTIVITY_ACTIVE; 6360 6362 6361 if ( dtrace_cas32(activity, current,6362 DTRACE_ACTIVITY_DRAINING)!= current) {6363 if ( (dtrace_speculation_state_t)dtrace_cas32(activity, current, DTRACE_ACTIVITY_DRAINING) 6364 != current) { 6363 6365 *flags |= CPU_DTRACE_DROP; 6364 6366 continue; … … 6780 6782 priv = DTRACE_PRIV_ALL; 6781 6783 #ifdef VBOX 6782 *uidp = ~0;6784 *uidp = UINT32_MAX; 6783 6785 *zoneidp = 0; 6784 6786 #endif … … 9737 9739 9738 9740 case DTRACEAGG_MAX: 9739 agg->dtag_initial = INT64_MIN;9741 agg->dtag_initial = (uint64_t)INT64_MIN; 9740 9742 agg->dtag_aggregate = dtrace_aggregate_max; 9741 9743 break; … … 11294 11296 */ 11295 11297 for (enab = dtrace_retained; enab != NULL; enab = enab->dten_next) { 11298 #ifndef VBOX 11296 11299 cred_t *cr = enab->dten_vstate->dtvs_state->dts_cred.dcr_cred; 11297 11300 11298 #ifndef VBOX11299 11301 if (INGLOBALZONE(curproc) || 11300 11302 cr != NULL && getzoneid() == crgetzoneid(cr)) … … 12615 12617 NULL, NULL, NULL, 0, VM_SLEEP | VMC_IDENTIFIER); 12616 12618 #else 12617 state->dts_aggid_arena = vmem_create(c, (void *) 1, _1G, 1,12619 state->dts_aggid_arena = vmem_create(c, (void *)(uintptr_t)1, _1G, 1, 12618 12620 NULL, NULL, NULL, 0, VM_SLEEP | VMC_IDENTIFIER); 12619 12621 #endif … … 12801 12803 { 12802 12804 dtrace_optval_t *opt = state->dts_options, size; 12803 processorid_t cpu VBDTUNASS( DTRACE_CPUALL);12805 processorid_t cpu VBDTUNASS((processorid_t)DTRACE_CPUALL); 12804 12806 int flags = 0, rval; 12805 12807 … … 14931 14933 NULL, NULL, NULL, 0, VM_SLEEP | VMC_IDENTIFIER); 14932 14934 #else 14933 dtrace_arena = vmem_create("dtrace", (void *) 1, UINT32_MAX - 16, 1,14935 dtrace_arena = vmem_create("dtrace", (void *)(uintptr_t)1, UINT32_MAX - 16, 1, 14934 14936 NULL, NULL, NULL, 0, VM_SLEEP | VMC_IDENTIFIER); 14935 14937 #endif
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器