VirtualBox

Ignore:
Timestamp:
Jun 29, 2012 1:35:30 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
78843
Message:

VBoxGuest,VBoxControl: embedded DPC latency measurement for Windows (disabled).

Location:
trunk/src/VBox/Additions/common/VBoxControl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxControl/Makefile.kmk

    r41477 r41972  
    3737        $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,) \
    3838        $(if $(VBOX_WITH_SHARED_FOLDERS),VBOX_WITH_SHARED_FOLDERS,)
     39VBoxControl_DEFS.win += \
     40        $(if $(VBOX_WITH_DPC_LATENCY_CHECKER),VBOX_WITH_DPC_LATENCY_CHECKER,)
    3941VBoxControl_SOURCES = \
    4042        VBoxControl.cpp
  • trunk/src/VBox/Additions/common/VBoxControl/VBoxControl.cpp

    r41443 r41972  
    14871487}
    14881488
     1489#ifdef VBOX_WITH_DPC_LATENCY_CHECKER
     1490#include "..\VBoxGuestLib\VBGLR3Internal.h"
     1491
     1492static 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
    14891522/** command handler type */
    14901523typedef DECLCALLBACK(RTEXITCODE) FNVBOXCTRLCMDHANDLER(int argc, char *argv[]);
     
    15231556    { "getversion",             handleVersion },
    15241557    { "version",                handleVersion },
     1558#ifdef VBOX_WITH_DPC_LATENCY_CHECKER
     1559    { "dpc",                    handleDpc },
     1560#endif /* VBOX_WITH_DPC_LATENCY_CHECKER */
    15251561    { "help",                   handleHelp }
    15261562};
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette