51 driver_entry_ut::test_common_load_successful_load()
64 driver_entry_ut::test_common_load_load_when_already_loaded()
78 driver_entry_ut::test_common_load_load_when_already_running()
93 driver_entry_ut::test_common_load_load_when_corrupt()
109 driver_entry_ut::test_common_load_fail_due_to_relocation_error()
120 driver_entry_ut::test_common_load_fail_due_to_no_modules_added()
129 driver_entry_ut::test_common_load_add_md_failed()
140 driver_entry_ut::test_common_load_add_md_tls_failed()
148 MockRepository mocks;
162 driver_entry_ut::test_common_load_tls_platform_alloc_failed()
166 auto ___ = gsl::finally([&]
178 driver_entry_ut::test_common_load_stack_platform_alloc_failed()
182 auto ___ = gsl::finally([&]
194 driver_entry_ut::test_common_load_loader_add_failed()
202 module->file.added = 1;
209 driver_entry_ut::test_common_load_resolve_symbol_failed()
217 MockRepository mocks;
230 driver_entry_ut::test_common_load_execute_symbol_failed()
238 MockRepository mocks;
int64_t common_add_module(const char *file, uint64_t fsize)
#define RUN_UNITTEST_WITH_MOCKS(a, b)
#define BFELF_ERROR_INVALID_ARG
int64_t common_load_vmm(void)
int64_t common_fini(void)
#define BFELF_ERROR_NO_SUCH_SYMBOL
int64_t execute_symbol(const char *sym, uint64_t arg1, uint64_t arg2, uint64_t cpuid)
#define BF_ERROR_VMM_INVALID_STATE
#define MEMORY_MANAGER_FAILURE
#define THREAD_LOCAL_STORAGE_SIZE
auto index(const T virt, const F from)
struct module_t * get_module(uint64_t index)
constexpr page_table_x64::integer_pointer virt
int64_t common_start_vmm(void)
int64_t add_md_to_memory_manager(struct module_t *module)
#define BF_ERROR_OUT_OF_MEMORY
#define BF_ERROR_NO_MODULES_ADDED
constexpr const auto name
int64_t resolve_symbol(const char *name, void **sym)
int64_t add_raw_md_to_memory_manager(uint64_t virt, uint64_t type)
int64_t common_vmm_status(void)
#define BF_ERROR_VMM_CORRUPTED
int64_t common_reset(void)