|
|
1.1 root 1: /*
2: * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3: *
4: * @APPLE_LICENSE_HEADER_START@
5: *
6: * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
7: * Reserved. This file contains Original Code and/or Modifications of
8: * Original Code as defined in and that are subject to the Apple Public
9: * Source License Version 1.1 (the "License"). You may not use this file
10: * except in compliance with the License. Please obtain a copy of the
11: * License at http://www.apple.com/publicsource and read it before using
12: * this file.
13: *
14: * The Original Code and all software distributed under the License are
15: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
16: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
17: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
18: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
19: * License for the specific language governing rights and limitations
20: * under the License.
21: *
22: * @APPLE_LICENSE_HEADER_END@
23: */
24:
25:
26: /* Copyright (c) 1997 Apple Computer, Inc. All rights reserved.
27: *
28: * kdebugprivate.h - private kernel_debug definitions
29: *
30: */
31:
32:
33: /**********************************************************************/
34:
35: typedef struct {
36: tvalspec_t timestamp;
37: unsigned int arg1;
38: unsigned int arg2;
39: unsigned int arg3;
40: unsigned int arg4;
41: unsigned int arg5;
42: unsigned int debugid;
43: } kd_buf;
44:
45: /* Debug Flags */
46: #define KDBG_INIT 1
47: #define KDBG_NOWRAP 2
48: #define KDBG_FREERUN 4
49: #define KDBG_WRAPPED 8
50: #define KDBG_USERFLAGS (KDBG_FREERUN|KDBG_NOWRAP|KDBG_INIT)
51:
52: typedef struct {
53: unsigned int type;
54: unsigned int value1;
55: unsigned int value2;
56:
57: } kd_regtype;
58:
59: #define KDBG_CLASSTYPE 0x10000
60: #define KDBG_SUBCLSTYPE 0x20000
61: #define KDBG_RANGETYPE 0x40000
62: #define KDBG_TYPENONE 0x80000
63: #define KDBG_CKTYPES 0xF0000
64: #define KDBG_RANGECHECK 0x100000
65:
66: #define KDBG_BUFINIT 0x80000000
67: /* Maximum number of buffer entries is 64k */
68:
69: #define KDBG_MAXBUFSIZE (64*1024)
70:
71: /* Control operations */
72: #define KDBG_EFLAGS 1
73: #define KDBG_DFLAGS 2
74: #define KDBG_ENABLE 3
75: #define KDBG_SETNUMBUF 4
76: #define KDBG_GETNUMBUF 5
77: #define KDBG_SETUP 6
78: #define KDBG_REMOVE 7
79: #define KDBG_SETREGCODE 8
80: #define KDBG_GETREGCODE 9
81: #define KDBG_READTRACE 10
82:
83: #define KDBGREGCALSS 1
84: #define KDBGREGSUBCALSS 2
85: #define KDBGREGRANGE 3
86: #define KDBGREGNONE 4
87: /**********************************************************************/
88:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.