tstVMStructGC.cpp revision 8ca3ccec43a3ed9f0ce0dcbf5c60135bea4e4b74
/* $Id$ */
/** @file
* tstVMMStructGC - Generate structure member and size checks from the GC perspective.
*
* This is built using the VBOXGC template but linked into a host
* ring-3 executable, rather hacky.
*/
/*
* Copyright (C) 2006-2007 Sun Microsystems, Inc.
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
/*
* Sanity checks.
*/
#ifndef IN_GC
#endif
#endif
/*******************************************************************************
* Header Files *
*******************************************************************************/
#include "PDMInternal.h"
#include "CFGMInternal.h"
#include "CPUMInternal.h"
#include "MMInternal.h"
#include "PGMInternal.h"
#include "SELMInternal.h"
#include "TRPMInternal.h"
#include "TMInternal.h"
#include "IOMInternal.h"
#include "REMInternal.h"
#include "HWACCMInternal.h"
#include "PATMInternal.h"
#include "VMMInternal.h"
#include "DBGFInternal.h"
#include "STAMInternal.h"
#include "CSAMInternal.h"
#include "EMInternal.h"
#include "REMInternal.h"
/* we don't use iprt here because we're pretending to be in GC! */
#include <stdio.h>
#define GEN_CHECK_OFF(s, m) printf(" CHECK_OFF(%s, %u, %s);\n", #s, (unsigned)RT_OFFSETOF(s, m), #m)
int main()
{
GEN_CHECK_OFF(PDMQUEUE, u);
#ifdef PGM_PD_CACHING_ENABLED
#endif
#ifdef VBOX_WITH_STATISTICS
#endif
#ifdef PGMPOOL_WITH_USER_TRACKING
#endif
#ifdef PGMPOOL_WITH_MONITORING
#endif
#ifdef PGMPOOL_WITH_CACHE
#endif
#ifdef PGMPOOL_WITH_USER_TRACKING
#endif /* PGMPOOL_WITH_USER_TRACKING */
#ifdef PGMPOOL_WITH_GCPHYS_TRACKING
#endif
#ifdef PGMPOOL_WITH_CACHE
#endif
#ifdef PGMPOOL_WITH_MONITORING
#endif
#ifdef VBOX_WITH_STATISTICS
#endif
//GEN_CHECK_OFF(TM, pvGIPR0);
return (0);
}