/[pearpc]/src/debug/tracers.h
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /src/debug/tracers.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5 - (show annotations)
Wed Sep 5 17:46:52 2007 UTC (16 years, 6 months ago) by dpavlin
File MIME type: text/plain
File size: 6724 byte(s)
enable all tracers
1 /*
2 * PearPC
3 * tracers.h
4 *
5 * Copyright (C) 2003 Sebastian Biallas (sb@biallas.net)
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 */
20
21 #ifndef __TRACERS_H__
22 #define __TRACERS_H__
23
24 #include "system/types.h"
25 #include "tools/snprintf.h"
26
27
28 #define PPC_CPU_TRACE(msg...) ht_printf("[CPU/CPU] "msg)
29 #define PPC_ALU_TRACE(msg...) ht_printf("[CPU/ALU] "msg)
30 #define PPC_FPU_TRACE(msg...) ht_printf("[CPU/FPU] "msg)
31 #define PPC_DEC_TRACE(msg...) ht_printf("[CPU/DEC] "msg)
32 #define PPC_ESC_TRACE(msg...) ht_printf("[CPU/ESC] "msg)
33 #define PPC_EXC_TRACE(msg...) ht_printf("[CPU/EXC] "msg)
34 #define PPC_MMU_TRACE(msg...) ht_printf("[CPU/MMU] "msg)
35 #define PPC_OPC_TRACE(msg...) ht_printf("[CPU/OPC] "msg)
36 #define IO_PROM_TRACE(msg...) ht_printf("[IO/PROM] "msg)
37 #define IO_PROM_FS_TRACE(msg...) ht_printf("[IO/PROM/FS] "msg)
38 #define IO_3C90X_TRACE(msg...) ht_printf("[IO/3c90x] "msg)
39 #define IO_RTL8139_TRACE(msg...) ht_printf("[IO/rtl8139] "msg)
40 #define IO_GRAPHIC_TRACE(msg...) ht_printf("[IO/GCARD] "msg)
41 #define IO_CUDA_TRACE(msg...) ht_printf("[IO/CUDA] "msg)
42 #define IO_PIC_TRACE(msg...) ht_printf("[IO/PIC] "msg)
43 #define IO_PCI_TRACE(msg...) ht_printf("[IO/PCI] "msg)
44 #define IO_MACIO_TRACE(msg...) ht_printf("[IO/MACIO] "msg)
45 #define IO_NVRAM_TRACE(msg...) ht_printf("[IO/NVRAM] "msg)
46 #define IO_IDE_TRACE(msg...) ht_printf("[IO/IDE] "msg)
47 #define IO_USB_TRACE(msg...) ht_printf("[IO/USB] "msg)
48 #define IO_SERIAL_TRACE(msg...) ht_printf("[IO/SERIAL] "msg)
49 #define IO_CORE_TRACE(msg...) ht_printf("[IO/Generic] "msg)
50
51 #define PPC_CPU_WARN(msg...) ht_printf("[CPU/CPU] <Warning> "msg)
52 #define PPC_ALU_WARN(msg...) ht_printf("[CPU/ALU] <Warning> "msg)
53 #define PPC_FPU_WARN(msg...) ht_printf("[CPU/FPU] <Warning> "msg)
54 #define PPC_DEC_WARN(msg...) ht_printf("[CPU/DEC] <Warning> "msg)
55 #define PPC_ESC_WARN(msg...) ht_printf("[CPU/ESC] <Warning> "msg)
56 #define PPC_EXC_WARN(msg...) ht_printf("[CPU/EXC] <Warning> "msg)
57 #define PPC_MMU_WARN(msg...) ht_printf("[CPU/MMU] <Warning> "msg)
58 #define PPC_OPC_WARN(msg...) ht_printf("[CPU/OPC] <Warning> "msg)
59 #define IO_PROM_WARN(msg...) ht_printf("[IO/PROM] <Warning> "msg)
60 #define IO_PROM_FS_WARN(msg...) ht_printf("[IO/PROM/FS] <Warning> "msg)
61 #define IO_3C90X_WARN(msg...) ht_printf("[IO/3c90x] <Warning> "msg)
62 #define IO_RTL8139_WARN(msg...) ht_printf("[IO/rtl8139] <Warning> "msg)
63 #define IO_GRAPHIC_WARN(msg...) ht_printf("[IO/GCARD] <Warning> "msg)
64 #define IO_CUDA_WARN(msg...) ht_printf("[IO/CUDA] <Warning> "msg)
65 #define IO_PIC_WARN(msg...) ht_printf("[IO/PIC] <Warning> "msg)
66 #define IO_PCI_WARN(msg...) ht_printf("[IO/PCI] <Warning> "msg)
67 #define IO_MACIO_WARN(msg...) ht_printf("[IO/MACIO] <Warning> "msg)
68 #define IO_NVRAM_WARN(msg...) ht_printf("[IO/NVRAM] <Warning> "msg)
69 #define IO_IDE_WARN(msg...) ht_printf("[IO/IDE] <Warning> "msg)
70 #define IO_USB_WARN(msg...) ht_printf("[IO/USB] <Warning> "msg)
71 #define IO_SERIAL_WARN(msg...) ht_printf("[IO/SERIAL] <Warning> "msg)
72 #define IO_CORE_WARN(msg...) ht_printf("[IO/Generic] <Warning> "msg)
73
74 #define PPC_CPU_ERR(msg...) {ht_printf("[CPU/CPU] <Error> "msg);exit(1); }
75 #define PPC_ALU_ERR(msg...) {ht_printf("[CPU/ALU] <Error> "msg);exit(1); }
76 #define PPC_FPU_ERR(msg...) {ht_printf("[CPU/FPU] <Error> "msg);exit(1); }
77 #define PPC_DEC_ERR(msg...) {ht_printf("[CPU/DEC] <Error> "msg);exit(1); }
78 #define PPC_ESC_ERR(msg...) {ht_printf("[CPU/ESC] <Error> "msg);exit(1); }
79 #define PPC_EXC_ERR(msg...) {ht_printf("[CPU/EXC] <Error> "msg);exit(1); }
80 #define PPC_MMU_ERR(msg...) {ht_printf("[CPU/MMU] <Error> "msg);exit(1); }
81 #define PPC_OPC_ERR(msg...) {ht_printf("[CPU/OPC] <Error> "msg);exit(1); }
82 #define IO_PROM_ERR(msg...) {ht_printf("[IO/PROM] <Error> "msg);exit(1); }
83 #define IO_PROM_FS_ERR(msg...) {ht_printf("[IO/PROM/FS] <Error> "msg);exit(1); }
84 #define IO_3C90X_ERR(msg...) {ht_printf("[IO/3c90x] <Error> "msg);exit(1); }
85 #define IO_RTL8139_ERR(msg...) {ht_printf("[IO/rtl8139] <Error> "msg);exit(1); }
86 #define IO_GRAPHIC_ERR(msg...) {ht_printf("[IO/GCARD] <Error> "msg);exit(1); }
87 #define IO_CUDA_ERR(msg...) {ht_printf("[IO/CUDA] <Error> "msg);exit(1); }
88 #define IO_PIC_ERR(msg...) {ht_printf("[IO/PIC] <Error> "msg);exit(1); }
89 #define IO_PCI_ERR(msg...) {ht_printf("[IO/PCI] <Error> "msg);exit(1); }
90 #define IO_MACIO_ERR(msg...) {ht_printf("[IO/MACIO] <Error> "msg);exit(1); }
91 #define IO_NVRAM_ERR(msg...) {ht_printf("[IO/NVRAM] <Error> "msg);exit(1); }
92 #define IO_IDE_ERR(msg...) {ht_printf("[IO/IDE] <Error> "msg);exit(1); }
93 #define IO_USB_ERR(msg...) {ht_printf("[IO/IDE] <Error> "msg);exit(1); }
94 #define IO_SERIAL_ERR(msg...) {ht_printf("[IO/SERIAL] <Error> "msg);exit(1); }
95 #define IO_CORE_ERR(msg...) {ht_printf("[IO/Generic] <Error> "msg);exit(1); }
96
97 /*
98 *
99 */
100 #ifndef PPC_CPU_TRACE
101 #define PPC_CPU_TRACE(msg...)
102 #endif
103
104 #ifndef PPC_ALU_TRACE
105 #define PPC_ALU_TRACE(msg...)
106 #endif
107
108 #ifndef PPC_FPU_TRACE
109 #define PPC_FPU_TRACE(msg...)
110 #endif
111
112 #ifndef PPC_DEC_TRACE
113 #define PPC_DEC_TRACE(msg...)
114 #endif
115
116 #ifndef PPC_EXC_TRACE
117 #define PPC_EXC_TRACE(msg...)
118 #endif
119
120 #ifndef PPC_ESC_TRACE
121 #define PPC_ESC_TRACE(msg...)
122 #endif
123
124 #ifndef PPC_MMU_TRACE
125 #define PPC_MMU_TRACE(msg...)
126 #endif
127
128 #ifndef PPC_OPC_TRACE
129 #define PPC_OPC_TRACE(msg...)
130 #endif
131
132 #ifndef PPC_OPC_WARN
133 #define PPC_OPC_WARN(msg...)
134 #endif
135
136 #ifndef IO_PROM_TRACE
137 #define IO_PROM_TRACE(msg...)
138 #endif
139
140 #ifndef IO_PROM_FS_TRACE
141 #define IO_PROM_FS_TRACE(msg...)
142 #endif
143
144 #ifndef IO_GRAPHIC_TRACE
145 #define IO_GRAPHIC_TRACE(msg...)
146 #endif
147
148 #ifndef IO_CUDA_TRACE
149 #define IO_CUDA_TRACE(msg...)
150 #endif
151
152 #ifndef IO_PIC_TRACE
153 #define IO_PIC_TRACE(msg...)
154 #endif
155
156 #ifndef IO_PCI_TRACE
157 #define IO_PCI_TRACE(msg...)
158 #endif
159
160 #ifndef IO_MACIO_TRACE
161 #define IO_MACIO_TRACE(msg...)
162 #endif
163
164 #ifndef IO_ISA_TRACE
165 #define IO_ISA_TRACE(msg...)
166 #endif
167
168 #ifndef IO_IDE_TRACE
169 #define IO_IDE_TRACE(msg...)
170 #endif
171
172 #ifndef IO_CORE_TRACE
173 #define IO_CORE_TRACE(msg...)
174 #endif
175
176 #ifndef IO_NVRAM_TRACE
177 #define IO_NVRAM_TRACE(msg...)
178 #endif
179
180 #ifndef IO_USB_TRACE
181 #define IO_USB_TRACE(msg...)
182 #endif
183
184 #ifndef IO_SERIAL_TRACE
185 #define IO_SERIAL_TRACE(msg...)
186 #endif
187
188 #ifndef IO_3C90X_TRACE
189 #define IO_3C90X_TRACE(msg...)
190 #endif
191
192 #ifndef IO_RTL8139_TRACE
193 #define IO_RTL8139_TRACE(msg...)
194 #endif
195
196 #endif
197

  ViewVC Help
Powered by ViewVC 1.1.26