VirtualBox

Ignore:
Timestamp:
Apr 13, 2012 8:50:14 PM (13 years ago)
Author:
vboxsync
Message:

Working on tracking IRQs for tracing and logging purposes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/testcase/tstVMStructSize.cpp

    r40274 r40907  
    162162    do \
    163163    { \
    164         printf("info: %s::%s offset %#x (%d) sizeof %d\n",  #strct, #member, (int)RT_OFFSETOF(strct, member), (int)RT_OFFSETOF(strct, member), (int)RT_SIZEOFMEMB(strct, member)); \
    165     } while (0)
    166 
     164        printf("info: %10s::%-24s offset %#6x (%6d) sizeof %4d\n",  #strct, #member, (int)RT_OFFSETOF(strct, member), (int)RT_OFFSETOF(strct, member), (int)RT_SIZEOFMEMB(strct, member)); \
     165    } while (0)
    167166
    168167
     
    336335
    337336    /* pdm */
     337    PRINT_OFFSET(PDMDEVINS, Internal);
     338    PRINT_OFFSET(PDMDEVINS, achInstanceData);
    338339    CHECK_MEMBER_ALIGNMENT(PDMDEVINS, achInstanceData, 64);
    339340    CHECK_PADDING(PDMDEVINS, Internal, 1);
    340     CHECK_MEMBER_ALIGNMENT(PDMUSBINS, achInstanceData, 16);
     341
     342    PRINT_OFFSET(PDMUSBINS, Internal);
     343    PRINT_OFFSET(PDMUSBINS, achInstanceData);
     344    CHECK_MEMBER_ALIGNMENT(PDMUSBINS, achInstanceData, 32);
    341345    CHECK_PADDING(PDMUSBINS, Internal, 1);
    342     CHECK_MEMBER_ALIGNMENT(PDMDRVINS, achInstanceData, 16);
     346
     347    PRINT_OFFSET(PDMDRVINS, Internal);
     348    PRINT_OFFSET(PDMDRVINS, achInstanceData);
     349    CHECK_MEMBER_ALIGNMENT(PDMDRVINS, achInstanceData, 32);
    343350    CHECK_PADDING(PDMDRVINS, Internal, 1);
     351
    344352    CHECK_PADDING2(PDMCRITSECT);
    345353
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