/* * Copyright (c) 2000-2001 Apple Computer, Inc. All Rights Reserved. * * The contents of this file constitute Original Code as defined in and are * subject to the Apple Public Source License Version 1.2 (the 'License'). * You may not use this file except in compliance with the License. Please obtain * a copy of the License at http://www.apple.com/publicsource and read it before * using this file. * * This Original Code and all software distributed under the License are * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS * OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT * LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR * PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the * specific language governing rights and limitations under the License. */ /* Copyright (c) 1997 Apple Computer, Inc. All rights reserved. * * kdebugprivate.h - private kernel_debug definitions * */ /**********************************************************************/ #ifndef _BSD_KERN_KDEBUG_PRIVATE_H_ #define _BSD_KERN_KDEBUG_PRIVATE_H_ typedef struct { mach_timespec_t timestamp; unsigned int arg1; unsigned int arg2; unsigned int arg3; unsigned int arg4; unsigned int arg5; /* will hold current thread */ unsigned int debugid; } kd_buf; /* Debug Flags */ #define KDBG_INIT 0x1 #define KDBG_NOWRAP 0x2 #define KDBG_FREERUN 0x4 #define KDBG_WRAPPED 0x8 #define KDBG_USERFLAGS (KDBG_FREERUN|KDBG_NOWRAP|KDBG_INIT) #define KDBG_PIDCHECK 0x10 #define KDBG_MAPINIT 0x20 typedef struct { unsigned int type; unsigned int value1; unsigned int value2; unsigned int value3; unsigned int value4; } kd_regtype; typedef struct { int nkdbufs; int nolog; int flags; int nkdthreads; } kbufinfo_t; typedef struct { unsigned int thread; int valid; char command[20]; } kd_threadmap; #define KDBG_CLASSTYPE 0x10000 #define KDBG_SUBCLSTYPE 0x20000 #define KDBG_RANGETYPE 0x40000 #define KDBG_TYPENONE 0x80000 #define KDBG_CKTYPES 0xF0000 #define KDBG_RANGECHECK 0x100000 #define KDBG_VALCHECK 0x200000 /* Check up to 4 individual values */ #define KDBG_BUFINIT 0x80000000 /* Maximum number of buffer entries is 64k */ #define KDBG_MAXBUFSIZE (64*1024) /* Control operations */ #define KDBG_EFLAGS 1 #define KDBG_DFLAGS 2 #define KDBG_ENABLE 3 #define KDBG_SETNUMBUF 4 #define KDBG_GETNUMBUF 5 #define KDBG_SETUP 6 #define KDBG_REMOVE 7 #define KDBG_SETREGCODE 8 #define KDBG_GETREGCODE 9 #define KDBG_READTRACE 10 #define KDBGREGCALSS 1 #define KDBGREGSUBCALSS 2 #define KDBGREGRANGE 3 #define KDBGREGNONE 4 /**********************************************************************/ #endif /* _BSD_KERN_KDEBUG_PRIVATE_H_ */