Lines Matching refs:ext

63 	void (*test_setup)(struct llext *ext, struct k_thread *llext_thread);
66 void (*test_cleanup)(struct llext *ext);
129 struct llext *ext = NULL; in load_call_unload() local
131 int res = llext_load(loader, test_case->name, &ext, &ldr_parm); in load_call_unload()
135 void (*test_entry_fn)() = llext_find_sym(&ext->exp_tab, "test_entry"); in load_call_unload()
157 res = llext_add_domain(ext, &domain); in load_call_unload()
169 ext, test_entry_fn, NULL, in load_call_unload()
175 test_case->test_setup(ext, &llext_thread); in load_call_unload()
182 test_case->test_cleanup(ext); in load_call_unload()
193 ext, test_entry_fn, NULL, in load_call_unload()
199 test_case->test_setup(ext, &llext_thread); in load_call_unload()
206 test_case->test_cleanup(ext); in load_call_unload()
215 test_case->test_setup(ext, NULL); in load_call_unload()
224 zassert_ok(llext_call_fn(ext, "test_entry"), in load_call_unload()
227 llext_bootstrap(ext, test_entry_fn, NULL); in load_call_unload()
231 test_case->test_cleanup(ext); in load_call_unload()
235 llext_unload(&ext); in load_call_unload()
276 static void init_fini_test_cleanup(struct llext *ext) in init_fini_test_cleanup() argument
281 const int *number = llext_find_sym(&ext->exp_tab, "number"); in init_fini_test_cleanup()
330 void do_inspect_checks(struct llext_loader *ldr, struct llext *ext, enum llext_mem reg_idx, in do_inspect_checks() argument
339 res = llext_get_region_info(ldr, ext, reg_idx, in do_inspect_checks()
342 sect_shndx = llext_section_shndx(ldr, ext, sect_name); in do_inspect_checks()
344 res = llext_get_section_info(ldr, ext, sect_shndx, in do_inspect_checks()
347 sym_addr = (uintptr_t)llext_find_sym(&ext->exp_tab, sym_name); in do_inspect_checks()
372 struct llext *ext = NULL; in ZTEST() local
376 res = llext_load(ldr, "inspect", &ext, &ldr_parm); in ZTEST()
383 do_inspect_checks(ldr, ext, LLEXT_MEM_DATA, ".data", "number_in_bss"); in ZTEST()
385 do_inspect_checks(ldr, ext, LLEXT_MEM_BSS, ".bss", "number_in_bss"); in ZTEST()
389 do_inspect_checks(ldr, ext, LLEXT_MEM_DATA, ".rodata_in_data", "number_in_rodata"); in ZTEST()
390 do_inspect_checks(ldr, ext, LLEXT_MEM_DATA, ".my_rodata", "number_in_my_rodata"); in ZTEST()
392 do_inspect_checks(ldr, ext, LLEXT_MEM_RODATA, ".rodata", "number_in_rodata"); in ZTEST()
393 do_inspect_checks(ldr, ext, LLEXT_MEM_RODATA, ".my_rodata", "number_in_my_rodata"); in ZTEST()
396 do_inspect_checks(ldr, ext, LLEXT_MEM_DATA, ".data", "number_in_data"); in ZTEST()
397 do_inspect_checks(ldr, ext, LLEXT_MEM_TEXT, ".text", "function_in_text"); in ZTEST()
399 max_alloc_bytes = ext->alloc_size; in ZTEST()
400 llext_free_inspection_data(ldr, ext); in ZTEST()
401 zassert_true(ext->alloc_size < max_alloc_bytes, "inspection data should be freed"); in ZTEST()
403 llext_unload(&ext); in ZTEST()
478 struct llext *ext = NULL; in ZTEST() local
484 res = llext_load(loader, "pre_located", &ext, &ldr_parm); in ZTEST()
488 test_entry_fn = llext_find_sym(&ext->exp_tab, "test_entry"); in ZTEST()
491 llext_unload(&ext); in ZTEST()
514 struct llext *ext = NULL; in ZTEST() local
517 res = llext_load(loader, "find_section", &ext, &ldr_parm); in ZTEST()
523 res = llext_get_section_header(loader, ext, ".data", &shdr); in ZTEST()
528 uintptr_t symbol_ptr = (uintptr_t)llext_find_sym(&ext->exp_tab, "number"); in ZTEST()
541 llext_unload(&ext); in ZTEST()
643 struct llext *ext = NULL; in ZTEST() local
645 res = llext_load(loader, "hello_world", &ext, &ldr_parm); in ZTEST()
648 void (*test_entry_fn)() = llext_find_sym(&ext->exp_tab, "test_entry"); in ZTEST()
652 llext_unload(&ext); in ZTEST()