VirtualBox

Changeset 29351 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
May 11, 2010 1:13:43 PM (15 years ago)
Author:
vboxsync
Message:

More logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServicePageSharing.cpp

    r29307 r29351  
    6969    BYTE                    *pVersionInfo;
    7070
     71    VBoxServiceVerbose(3, "VBoxServicePageSharingRegisterModule\n");
     72
    7173    cbVersionSize = GetFileVersionInfoSize(pModule->Info.szExePath, &dummy);
    7274    if (!cbVersionSize)
     
    188190    HANDLE hProcess, hSnapshot;
    189191
     192    VBoxServiceVerbose(3, "VBoxServicePageSharingInspectModules\n");
     193
    190194    /* Get a list of all the modules in this process. */
    191195    hProcess = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ,
    192196                           FALSE /* no child process handle inheritance */, dwProcessId);
    193197    if (hProcess == NULL)
     198    {
     199        VBoxServiceVerbose(3, "OpenProcess failed with %d\n", GetLastError());
    194200        return;
     201    }
    195202
    196203    hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, dwProcessId);
    197204    if (hSnapshot == INVALID_HANDLE_VALUE)
    198205    {
     206        VBoxServiceVerbose(3, "CreateToolhelp32Snapshot failed with %d\n", GetLastError());
    199207        CloseHandle(hProcess);
    200208        return;
     
    234242        }
    235243
    236         printf( "\n\n     MODULE NAME:     %s",           ModuleInfo.szModule );
    237         printf( "\n     executable     = %s",             ModuleInfo.szExePath );
    238         printf( "\n     process ID     = 0x%08X",         ModuleInfo.th32ProcessID );
    239         printf( "\n     base address   = 0x%08X", (DWORD) ModuleInfo.modBaseAddr );
    240         printf( "\n     base size      = %d",             ModuleInfo.modBaseSize );
     244        VBoxServiceVerbose(3, "\n\n     MODULE NAME:     %s",           ModuleInfo.szModule );
     245        VBoxServiceVerbose(3, "\n     executable     = %s",             ModuleInfo.szExePath );
     246        VBoxServiceVerbose(3, "\n     process ID     = 0x%08X",         ModuleInfo.th32ProcessID );
     247        VBoxServiceVerbose(3, "\n     base address   = 0x%08X", (DWORD) ModuleInfo.modBaseAddr );
     248        VBoxServiceVerbose(3, "\n     base size      = %d",             ModuleInfo.modBaseSize );
    241249    }
    242250    while (Module32Next(hSnapshot, &ModuleInfo));
     
    256264    PAVLPVNODECORE pNewTree = NULL;
    257265
     266    VBoxServiceVerbose(3, "VBoxServicePageSharingInspectGuest\n");
     267
    258268    hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
    259269    if (hSnapshot == INVALID_HANDLE_VALUE)
     270    {
     271        VBoxServiceVerbose(3, "CreateToolhelp32Snapshot failed with %d\n", GetLastError());
    260272        return;
     273    }
    261274
    262275    /* Check loaded modules for all running processes. */
     
    287300{
    288301    PKNOWN_MODULE pModule = (PKNOWN_MODULE)pNode;
     302
     303    VBoxServiceVerbose(3, "VBoxServicePageSharingEmptyTreeCallback %s %s\n", pModule->Info.szModule, pModule->szFileVersion);
    289304
    290305    /* Defererence module in the hypervisor. */
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