move delay code into separate function.
[AROS.git] / rom / exec / exec_debug.h
blob4e10c7fff9cbbe8f54c2f5ea0422622b93b9d2f8
1 #ifndef _EXEC_DEBUG_H_
2 #define _EXEC_DEBUG_H_ 1
3 /* Debug which function of Exec */
5 #include <exec/execbase.h>
7 #define DEBUG_AbortIO 0
8 #define DEBUG_AddDevice 0
9 #define DEBUG_AddHead 0
10 #define DEBUG_AddLibrary 0
11 #define DEBUG_AddMemHandler 0
12 #define DEBUG_AddMemList 0
13 #define DEBUG_AddPort 0
14 #define DEBUG_AddResource 0
15 #define DEBUG_AddSemaphore 0
16 #define DEBUG_AddTail 0
17 #define DEBUG_Alert 0
18 #define DEBUG_AllocAbs 0
19 #define DEBUG_AllocEntry 0
20 #define DEBUG_AllocMem 0
21 #define DEBUG_AllocPooled 0
22 #define DEBUG_AllocSignal 0
23 #define DEBUG_AllocVec 0
24 #define DEBUG_Allocate 0
25 #define DEBUG_AttemptSemaphore 0
26 #define DEBUG_AttemptSemaphoreShared 0
27 #define DEBUG_AvailMem 0
28 #define DEBUG_CacheClearE 0
29 #define DEBUG_Cause 0
30 #define DEBUG_CheckIO 0
31 #define DEBUG_CloseDevice 0
32 #define DEBUG_CloseLibrary 0
33 #define DEBUG_CopyMem 0
34 #define DEBUG_CopyMemQuick 0
35 #define DEBUG_CreateIORequest 0
36 #define DEBUG_CreatePool 0
37 #define DEBUG_Deallocate 0
38 #define DEBUG_DeleteIORequest 0
39 #define DEBUG_DeleteMsgPort 0
40 #define DEBUG_DeletePool 0
41 #define DEBUG_DoIO 0
42 #define DEBUG_Enqueue 0
43 #define DEBUG_FindName 0
44 #define DEBUG_FindPort 0
45 #define DEBUG_FindSemaphore 0
46 #define DEBUG_FindTask 0
47 #define DEBUG_FreeEntry 0
48 #define DEBUG_FreeMem 0
49 #define DEBUG_FreePooled 0
50 #define DEBUG_FreeSignal 0
51 #define DEBUG_FreeVec 0
52 #define DEBUG_GetMsg 0
53 #define DEBUG_InitSemaphore 0
54 #define DEBUG_InitStruct 0
55 #define DEBUG_Insert 0
56 #define DEBUG_NewAllocEntry 0
57 #define DEBUG_ObtainQuickVector 0
58 #define DEBUG_ObtainSemaphore 0
59 #define DEBUG_ObtainSemaphoreList 0
60 #define DEBUG_ObtainSemaphoreShared 0
61 #define DEBUG_OldOpenLibrary 0
62 #define DEBUG_OpenDevice 0
63 #define DEBUG_OpenResource 0
64 #define DEBUG_PrepareContext 0
65 #define DEBUG_Procure 0
66 #define DEBUG_PutMsg 0
67 #define DEBUG_RawDoFmt 0
68 #define DEBUG_ReleaseSemaphore 0
69 #define DEBUG_ReleaseSemaphoreList 0
70 #define DEBUG_RemDevice 0
71 #define DEBUG_RemHead 0
72 #define DEBUG_RemLibrary 0
73 #define DEBUG_RemMemHandler 0
74 #define DEBUG_RemPort 0
75 #define DEBUG_RemResource 0
76 #define DEBUG_RemSemaphore 0
77 #define DEBUG_RemTail 0
78 #define DEBUG_Remove 0
79 #define DEBUG_ReplyMsg 0
80 #define DEBUG_SendIO 0
81 #define DEBUG_SetExcept 0
82 #define DEBUG_SetFunction 0
83 #define DEBUG_SetSignal 0
84 #define DEBUG_SetTaskPri 0
85 #define DEBUG_Signal 0
86 #define DEBUG_SumLibrary 0
87 #define DEBUG_TypeOfMem 0
88 #define DEBUG_Vacate 0
89 #define DEBUG_Wait 0
90 #define DEBUG_WaitIO 0
91 #define DEBUG_WaitPort 0
93 /* Runtime debugging */
94 #ifdef NO_RUNTIME_DEBUG
96 #define ExecLog(...) do { } while (0)
97 #define ParseFlags(...) (0)
99 #else
101 #include <stdarg.h> /* for va_list */
103 extern const char * const ExecFlagNames[];
104 ULONG ParseFlags(char *opts, const char * const *FlagNames);
105 void ExecLog(struct ExecBase *SysBase, ULONG flags, const char *format, ...);
106 void VLog(struct ExecBase *SysBase, ULONG flags, const char * const *FlagNames, const char *format, va_list args);
108 #endif
110 #define DINITCODE(...) ExecLog(SysBase, EXECDEBUGF_INITCODE, __VA_ARGS__)
111 #define DINITRESIDENT(...) ExecLog(SysBase, EXECDEBUGF_INITRESIDENT, __VA_ARGS__)
112 #define DFINDRESIDENT(...) ExecLog(SysBase, EXECDEBUGF_FINDRESIDENT, __VA_ARGS__)
113 #define DCREATELIBRARY(...) ExecLog(SysBase, EXECDEBUGF_CREATELIBRARY, __VA_ARGS__)
114 #define DSETFUNCTION(...) ExecLog(SysBase, EXECDEBUGF_SETFUNCTION, __VA_ARGS__)
115 #define DADDTASK(...) ExecLog(SysBase, EXECDEBUGF_ADDTASK, __VA_ARGS__)
116 #define DREMTASK(...) ExecLog(SysBase, EXECDEBUGF_REMTASK, __VA_ARGS__)
117 #define DINIT(...) ExecLog(SysBase, EXECDEBUGF_INIT, __VA_ARGS__)
118 #define DRAMLIB(...) ExecLog(SysBase, EXECDEBUGF_RAMLIB, __VA_ARGS__)
120 #endif /* _EXEC_DEBUG_H_ */