|
RDFU
1.0
|
Functions for monitoring the state of BootServices and RuntimeServices functions. More...
#include "EfiScannerHeaders.h"
Go to the source code of this file.
Classes | |
| struct | _func_table |
Macros | |
| #define | write_entry(index, api) { gEFITables[index].ptr_va = (UINT64)&api; gEFITables[index].last_addr = (UINT64)api; } |
Typedefs | |
| typedef struct _func_table | func_table |
Functions | |
| EFI_STATUS | InitializeEFITables (VOID) |
| BOOLEAN | IsFunctionHooked (C_PTR FuncAddr) |
| EFI_STATUS | DumpEFITables (BOOLEAN SilentMode) |
| VOID EFIAPI | NotifyScannerTimer (IN EFI_EVENT Event, IN VOID *Context) |
| C_PTR | EFITableGetAddr (CHAR8 *FuncName) |
| EFI_STATUS | InstallEFITableScanner (VOID) |
| EFI_STATUS | UnInstallEFITableScanner (VOID) |
Variables | |
| func_table | gEFITables [] |
| EFI_EVENT | gScannerEvent = 0 |
Functions for monitoring the state of BootServices and RuntimeServices functions.
Definition in file TableMonitor.c.
| #define write_entry | ( | index, | |
| api | |||
| ) | { gEFITables[index].ptr_va = (UINT64)&api; gEFITables[index].last_addr = (UINT64)api; } |
Referenced by InitializeEFITables().
| typedef struct _func_table func_table |
| EFI_STATUS DumpEFITables | ( | BOOLEAN | SilentMode | ) |
Definition at line 208 of file TableMonitor.c.
References FindImageByAddr(), GetAllImagesWithDescription(), _image_entry::ImageBase, _image_entry::ImageSize, IsFunctionHooked(), _func_table::last_addr, LogFileAscii(), LogFullAscii(), _func_table::name, and PRINT_FUNC_ASCII.
Referenced by CommandFunction(), DrawBoxAndMenu(), and NotifyScannerTimer().


| C_PTR EFITableGetAddr | ( | CHAR8 * | FuncName | ) |
Function gets addr of selected function (search is done by function name case sensitive);
| Addr | On success |
| NULL | On error |
Definition at line 398 of file TableMonitor.c.
References _func_table::last_addr, and _func_table::name.
Referenced by CommandFunction().

| EFI_STATUS InitializeEFITables | ( | VOID | ) |
Function initializes wanted offsets and values to the EFITables.
Definition at line 103 of file TableMonitor.c.
References write_entry.
Referenced by CommandFunction(), and DrawBoxAndMenu().

| EFI_STATUS InstallEFITableScanner | ( | VOID | ) |
Function installs EFI timer which checks runtime/boottime functions periodically - it also logs every change to file.
| EFI_SUCCESS | On success |
| EFI_ERROR* | On error |
Definition at line 426 of file TableMonitor.c.
References EFI_STATUS(), EFI_TPL_NOTIFY, gScannerEvent, LogFullAscii(), NotifyScannerTimer(), and SAMPLE_INTERVAL.
Referenced by DrawBoxAndMenu().


| BOOLEAN IsFunctionHooked | ( | C_PTR | FuncAddr | ) |
Definition at line 184 of file TableMonitor.c.
Referenced by DumpEFITables().

| VOID EFIAPI NotifyScannerTimer | ( | IN EFI_EVENT | Event, |
| IN VOID * | Context | ||
| ) |
The timer notify function Functions checks whether any of the function pointers have changed.
Definition at line 360 of file TableMonitor.c.
References DumpEFITables(), and _func_table::name.
Referenced by InstallEFITableScanner().


| EFI_STATUS UnInstallEFITableScanner | ( | VOID | ) |
function uninstalls the scanner event
| EFI_SUCCESS | On success |
| EFI_ERROR* | On error |
Definition at line 471 of file TableMonitor.c.
References gScannerEvent, and LogFullAscii().

| func_table gEFITables[] |
table with imporant EFI functions. runtime services + boot time services + ReadKey
Definition at line 27 of file TableMonitor.c.
| EFI_EVENT gScannerEvent = 0 |
Definition at line 385 of file TableMonitor.c.
Referenced by InstallEFITableScanner(), and UnInstallEFITableScanner().