00001 00007 #ifndef __MACHINE_EVENTS_H__ 00008 #define __MACHINE_EVENTS_H__ 00009 00010 #include "machineProjections.h" 00011 #include "traceCoreAPI.h" 00012 00013 00014 00015 #define _MACHINE_LANG_ID 3 // language ID for machine 00016 00017 00018 #define _E_PROC_IDLE 6 // Processor goes idle 00019 #define _E_PROC_BUSY 7 // Processor goes busy 00020 00021 00022 #define REGISTER_MACHINE \ 00023 { RegisterLanguage(_MACHINE_LANG_ID, "machine\0"); \ 00024 RegisterEvent(_MACHINE_LANG_ID, _E_PROC_IDLE ); \ 00025 RegisterEvent(_MACHINE_LANG_ID, _E_PROC_BUSY ); \ 00026 \ 00027 } 00028 00029 #define _LOG_E_PROC_IDLE() \ 00030 { LOGCONDITIONAL(machine_procIdle()); } 00031 #define _LOG_E_PROC_BUSY() \ 00032 { LOGCONDITIONAL(machine_procBusy()); } 00033 00034 #endif 00035