Changeset 41972 in vbox for trunk/src/VBox/Additions/common/VBoxControl
- Timestamp:
- Jun 29, 2012 1:35:30 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 78843
- Location:
- trunk/src/VBox/Additions/common/VBoxControl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxControl/Makefile.kmk
r41477 r41972 37 37 $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,) \ 38 38 $(if $(VBOX_WITH_SHARED_FOLDERS),VBOX_WITH_SHARED_FOLDERS,) 39 VBoxControl_DEFS.win += \ 40 $(if $(VBOX_WITH_DPC_LATENCY_CHECKER),VBOX_WITH_DPC_LATENCY_CHECKER,) 39 41 VBoxControl_SOURCES = \ 40 42 VBoxControl.cpp -
trunk/src/VBox/Additions/common/VBoxControl/VBoxControl.cpp
r41443 r41972 1487 1487 } 1488 1488 1489 #ifdef VBOX_WITH_DPC_LATENCY_CHECKER 1490 #include "..\VBoxGuestLib\VBGLR3Internal.h" 1491 1492 static RTEXITCODE handleDpc(int argc, char *argv[]) 1493 { 1494 #ifndef VBOX_CONTROL_TEST 1495 int rc = VINF_SUCCESS; 1496 int i; 1497 for (i = 0; i < 30; i++) 1498 { 1499 rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_DPC, NULL, 0); 1500 if (RT_FAILURE(rc)) 1501 { 1502 break; 1503 } 1504 RTPrintf("%d\n", i); 1505 } 1506 #else 1507 int rc = VERR_NOT_IMPLEMENTED; 1508 #endif 1509 if (RT_SUCCESS(rc)) 1510 { 1511 RTPrintf("Samples collection completed.\n"); 1512 return RTEXITCODE_SUCCESS; 1513 } 1514 else 1515 { 1516 VBoxControlError("Error. rc=%Rrc\n", rc); 1517 return RTEXITCODE_FAILURE; 1518 } 1519 } 1520 #endif /* VBOX_WITH_DPC_LATENCY_CHECKER */ 1521 1489 1522 /** command handler type */ 1490 1523 typedef DECLCALLBACK(RTEXITCODE) FNVBOXCTRLCMDHANDLER(int argc, char *argv[]); … … 1523 1556 { "getversion", handleVersion }, 1524 1557 { "version", handleVersion }, 1558 #ifdef VBOX_WITH_DPC_LATENCY_CHECKER 1559 { "dpc", handleDpc }, 1560 #endif /* VBOX_WITH_DPC_LATENCY_CHECKER */ 1525 1561 { "help", handleHelp } 1526 1562 };
Note:
See TracChangeset
for help on using the changeset viewer.