VBoxDTraceTypes.h revision 5a3672dca0301427a400aec8734acd70e2cf24a4
/* $Id$ */
/** @file
* VBoxDTraceTypes.h - Fake a bunch of Solaris types.
*/
/*
* Copyright (c) 2012 bird
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef ___VBoxDTraceTypes_h___
#define ___VBoxDTraceTypes_h___
typedef unsigned char uchar_t;
typedef unsigned int uint_t;
typedef RTCPUID processorid_t;
typedef RTCCUINTREG greg_t;
typedef struct VBoxDtCred
{
} cred_t;
typedef struct VBoxDtVMem vmem_t;
typedef struct VBoxDtCyclicId *cyclic_id_t;
typedef struct VBoxDtThread kthread_t;
typedef struct VBoxDtThread proc_t;
typedef struct VBoxDtDevInfo dev_info_t;
typedef struct VBoxDtTaskQueue taskq_t;
typedef struct VBoxDtMemCache kmem_cache_t;
typedef struct VBoxDtMutex
{
} kmutex_t;
typedef struct VBoxDtCpuCore
{
void *cpuc_dtrace_illval;
uint16_t volatile cpuc_dtrace_flags;
} cpucore_t;
#define CPU_DTRACE_BADADDR RT_BIT(0)
#define cpu_core (g_aVBoxDtCpuCores)
#if 1 /* */
#endif
#define NANOSEC RT_NS_1SEC
#define MILLISEC RT_MS_1SEC
#define NBBY 8
#endif