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()
275 static void init_fini_test_cleanup(struct llext *ext) in init_fini_test_cleanup() argument
280 const int *number = llext_find_sym(&ext->exp_tab, "number"); in init_fini_test_cleanup()
329 void do_inspect_checks(struct llext_loader *ldr, struct llext *ext, enum llext_mem reg_idx, in do_inspect_checks() argument
338 res = llext_get_region_info(ldr, ext, reg_idx, in do_inspect_checks()
341 sect_shndx = llext_section_shndx(ldr, ext, sect_name); in do_inspect_checks()
343 res = llext_get_section_info(ldr, ext, sect_shndx, in do_inspect_checks()
346 sym_addr = (uintptr_t)llext_find_sym(&ext->exp_tab, sym_name); in do_inspect_checks()
371 struct llext *ext = NULL; in ZTEST() local
375 res = llext_load(ldr, "inspect", &ext, &ldr_parm); in ZTEST()
378 do_inspect_checks(ldr, ext, LLEXT_MEM_BSS, ".bss", "number_in_bss"); in ZTEST()
379 do_inspect_checks(ldr, ext, LLEXT_MEM_DATA, ".data", "number_in_data"); in ZTEST()
380 do_inspect_checks(ldr, ext, LLEXT_MEM_RODATA, ".rodata", "number_in_rodata"); in ZTEST()
381 do_inspect_checks(ldr, ext, LLEXT_MEM_RODATA, ".my_rodata", "number_in_my_rodata"); in ZTEST()
382 do_inspect_checks(ldr, ext, LLEXT_MEM_TEXT, ".text", "function_in_text"); in ZTEST()
384 max_alloc_bytes = ext->alloc_size; in ZTEST()
385 llext_free_inspection_data(ldr, ext); in ZTEST()
386 zassert_true(ext->alloc_size < max_alloc_bytes, "inspection data should be freed"); in ZTEST()
388 llext_unload(&ext); in ZTEST()
463 struct llext *ext = NULL; in ZTEST() local
469 res = llext_load(loader, "pre_located", &ext, &ldr_parm); in ZTEST()
473 test_entry_fn = llext_find_sym(&ext->exp_tab, "test_entry"); in ZTEST()
476 llext_unload(&ext); in ZTEST()
499 struct llext *ext = NULL; in ZTEST() local
502 res = llext_load(loader, "find_section", &ext, &ldr_parm); in ZTEST()
508 res = llext_get_section_header(loader, ext, ".data", &shdr); in ZTEST()
513 uintptr_t symbol_ptr = (uintptr_t)llext_find_sym(&ext->exp_tab, "number"); in ZTEST()
526 llext_unload(&ext); in ZTEST()
623 struct llext *ext = NULL; in ZTEST() local
625 res = llext_load(loader, "hello_world", &ext, &ldr_parm); in ZTEST()
628 void (*test_entry_fn)() = llext_find_sym(&ext->exp_tab, "test_entry"); in ZTEST()
632 llext_unload(&ext); in ZTEST()