emu_log.h File Reference
Go to the source code of this file.
Defines |
| #define | logInfo(e, format...) emu_log(e, EMU_LOG_INFO, format) |
| #define | logDebug(e, format...) |
| #define | logPF(e) logDebug(e, "in <%s> %s:%i>\n", __PRETTY_FUNCTION__, __FILE__, __LINE__) |
Typedefs |
| typedef void(* | emu_log_logcb )(struct emu *e, enum emu_log_level level, const char *msg) |
Enumerations |
| enum | emu_log_level { EMU_LOG_NONE,
EMU_LOG_INFO,
EMU_LOG_DEBUG
} |
Functions |
| struct emu_logging * | emu_log_new (void) |
| void | emu_log_free (struct emu_logging *el) |
| void | emu_log_level_set (struct emu_logging *el, enum emu_log_level level) |
| void | emu_log (struct emu *e, enum emu_log_level level, const char *format,...) |
| void | emu_log_set_logcb (struct emu_logging *el, emu_log_logcb logcb) |
| void | emu_log_default_logcb (struct emu *e, enum emu_log_level level, const char *msg) |
Define Documentation
| #define logDebug |
( |
e, |
|
|
format... |
|
) |
|
Referenced by emu_cpu_debug_print(), emu_cpu_new(), emu_cpu_parse(), emu_env_w32_eip_check(), emu_env_w32_load_dll(), emu_free(), emu_new(), emu_shellcode_run_and_track(), emu_shellcode_test(), env_w32_hook__execv(), env_w32_hook__lclose(), env_w32_hook__lcreat(), env_w32_hook__lwrite(), env_w32_hook_accept(), env_w32_hook_bind(), env_w32_hook_CloseHandle(), env_w32_hook_closesocket(), env_w32_hook_connect(), env_w32_hook_CreateFileA(), env_w32_hook_CreateProcessA(), env_w32_hook_DeleteFileA(), env_w32_hook_ExitProcess(), env_w32_hook_ExitThread(), env_w32_hook_fclose(), env_w32_hook_fopen(), env_w32_hook_fwrite(), env_w32_hook_GetProcAddress(), env_w32_hook_GetSystemDirectoryA(), env_w32_hook_GetTempPathA(), env_w32_hook_GetTickCount(), env_w32_hook_listen(), env_w32_hook_LoadLibrayA(), env_w32_hook_malloc(), env_w32_hook_memset(), env_w32_hook_recv(), env_w32_hook_send(), env_w32_hook_sendto(), env_w32_hook_SetUnhandledExceptionFilter(), env_w32_hook_Sleep(), env_w32_hook_socket(), env_w32_hook_URLDownloadToFileA(), env_w32_hook_VirtualProtect(), env_w32_hook_WaitForSingleObject(), env_w32_hook_WinExec(), env_w32_hook_WriteFile(), env_w32_hook_WSASocketA(), and env_w32_hook_WSAStartup().
| #define logInfo |
( |
e, |
|
|
format... |
|
) |
emu_log(e, EMU_LOG_INFO, format) |
| #define logPF |
( |
e |
|
) |
logDebug(e, "in <%s> %s:%i>\n", __PRETTY_FUNCTION__, __FILE__, __LINE__) |
Typedef Documentation
Enumeration Type Documentation
- Enumerator:
| EMU_LOG_NONE |
|
| EMU_LOG_INFO |
|
| EMU_LOG_DEBUG |
|
Function Documentation
| void emu_log |
( |
struct emu * |
e, |
|
|
enum emu_log_level |
level, |
|
|
const char * |
format, |
|
|
|
... | |
|
) |
| | |
| void emu_log_default_logcb |
( |
struct emu * |
e, |
|
|
enum emu_log_level |
level, |
|
|
const char * |
msg | |
|
) |
| | |