Home
last modified time | relevance | path

Searched refs:CHECK (Results 1 – 25 of 29) sorted by relevance

12

/bionic/tests/libs/
Dcfi_test_helper.cpp37 CHECK(g_count == 0); in preinit_ctor()
39 CHECK(g_count == 1); in preinit_ctor()
45 CHECK(g_count == 1); in ctor()
47 CHECK(g_count == 2); in ctor()
51 CHECK(g_count == 2); in main()
53 CHECK(g_count == 3); in main()
Delftls_skew_align_test_helper.cpp61 CHECK((var_addr(&var3) & (getpagesize() - 1)) == 0); in main()
62 CHECK((var_addr(&var4) & (getpagesize() - 1)) == 0); in main()
67 CHECK(var1.field == 13); in main()
68 CHECK(var2.field == 17); in main()
71 CHECK(var3.field == 0); in main()
72 CHECK(var4.field == 0); in main()
Dstack_tagging_helper.cpp80 CHECK(reinterpret_cast<uintptr_t>(fp_parent) - reinterpret_cast<uintptr_t>(fp) >= in vfork_child2()
95 CHECK(0); in vfork_child2()
107 CHECK(mte_get_tag(p) == q); in vfork_child()
129 CHECK(res == pid); in vfork_parent()
132 CHECK(WIFEXITED(wstatus)); in vfork_parent()
133 CHECK(WEXITSTATUS(wstatus) == 0); in vfork_parent()
182 CHECK(value == 42); in check_longjmp_restores_tags()
204 CHECK(res == 0); in SigAltStackScoped()
209 CHECK(res == 0); in ~SigAltStackScoped()
226 CHECK(res == 0); in SigActionScoped()
[all …]
Delftls_align_test_helper.cpp57 CHECK((var_addr(&var1) & 0x3ff) == 0); in main()
58 CHECK((var_addr(&var2) & 0x3ff) == 0); in main()
59 CHECK(var1.field == 13); in main()
60 CHECK(var2.field == 17); in main()
61 CHECK(var3.field == 19); in main()
Dtestbinary_is_stack_mte_after_dlopen.cpp92 CHECK(access(path, F_OK) == 0); // Verify test setup. in main()
93 CHECK(!is_stack_mte_on()); in main()
121 CHECK(handle != nullptr); in main()
122 CHECK(is_stack_mte_on()); in main()
129 CHECK(new_stack_page_mte_on); in main()
135 CHECK(is_late_thread_mte_on); in main()
136 CHECK(is_early_thread_mte_on); in main()
Dpreinit_syscall_test_helper.cpp37 CHECK(g_result == -1); in main()
38 CHECK(g_errno == EBADF); in main()
Dpreinit_getauxval_test_helper.cpp36 CHECK(getauxval(AT_RANDOM) == g_AT_RANDOM); in main()
37 CHECK(getauxval(AT_PAGESZ) == g_AT_PAGESZ); in main()
Dcfi_test_helper2.cpp25 CHECK(handle != nullptr); in main()
DCHECK.h33 #define CHECK(e) \ macro
/bionic/linker/
Dlinker_cfi.cpp58 CHECK(tmp_start != MAP_FAILED); in ShadowWrite()
77 CHECK(res != MAP_FAILED); in ~ShadowWrite()
102 CHECK((cfi_check & (kCfiCheckAlign - 1)) == 0); in Add()
158 CHECK(p != MAP_FAILED); in MapShadow()
163 CHECK(shadow_start != nullptr); in AddLibrary()
203 CHECK(cfi_init != 0); in NotifyLibDl()
205 CHECK(shadow_start != nullptr); in NotifyLibDl()
206 CHECK(*shadow_start == p); in NotifyLibDl()
212 CHECK(initial_link_done); in MaybeInit()
213 CHECK(shadow_start == nullptr); in MaybeInit()
[all …]
Dlinker_mapped_file_fragment.cpp51 CHECK(safe_add(&offset, base_offset, elf_offset)); in Map()
56 CHECK(safe_add(&end_offset, offset, size)); in Map()
57 CHECK(safe_add(&end_offset, end_offset, page_offset(offset))); in Map()
60 CHECK(map_size >= size); in Map()
Dlinker_block_allocator.cpp92 CHECK(page != nullptr); in free()
95 CHECK((offset % block_size_) == 0); in free()
123 CHECK(page != MAP_FAILED); in create_new_page()
138 CHECK(block != nullptr); in find_page()
Dlinker_tls.cpp92 CHECK(mod.static_offset == SIZE_MAX); in unregister_tls_module()
93 CHECK(mod.soinfo_ptr == si); in unregister_tls_module()
101 CHECK(module_idx < g_tls_modules.size()); in get_tls_module()
Dlinker_soinfo.cpp55 CHECK(si != nullptr); in SymbolLookupList()
93 CHECK(!libs_.empty()); in set_dt_symbolic_lib()
755 CHECK(has_min_version(3)); in add_secondary_namespace()
760 CHECK(has_min_version(3)); in get_secondary_namespaces()
856 CHECK(has_min_version(3)); in get_handle()
857 CHECK(handle_ != 0); in get_handle()
870 CHECK(has_min_version(3)); in generate_handle()
871 CHECK(handle_ == 0); // Make sure this is the first call in generate_handle()
896 CHECK(has_min_version(6)); in set_gap_start()
900 CHECK(has_min_version(6)); in ElfW()
[all …]
Dlinker_relocate.cpp399 CHECK(found_in->get_tls() != nullptr); // We rejected a missing TLS segment above. in process_relocation_impl()
422 CHECK(found_in->get_tls() != nullptr); // We rejected a missing TLS segment above. in process_relocation_impl()
424 CHECK(module_id != kTlsUninitializedModuleId); in process_relocation_impl()
456 CHECK(found_in->get_tls() != nullptr); // We rejected a missing TLS segment above. in process_relocation_impl()
Dlinker.cpp286 CHECK(map->l_name != nullptr); in notify_gdb_of_load()
287 CHECK(map->l_name[0] != '\0'); in notify_gdb_of_load()
605 CHECK(si_ != nullptr); in remove_cached_elf_reader()
610 CHECK(si_ != nullptr); in get_elf_reader()
615 CHECK(si_ != nullptr); in get_elf_reader()
786 CHECK (it != soinfo_list.end()); in ElfW()
1742 CHECK(soinfos_count == 1); in find_libraries()
2006 CHECK(++it->second != 0); in increment_dso_handle_reference_counter()
2027 CHECK(it != g_dso_handle_counters.end()); in decrement_dso_handle_reference_counter()
2028 CHECK(it->second != 0); in decrement_dso_handle_reference_counter()
[all …]
Dlinker_utils.cpp173 CHECK(a >= 0); in safe_add()
Dlinker_phdr.cpp189 CHECK(did_read_); in Load()
217 CHECK(strtab_ != nullptr); in get_string()
218 CHECK(index < strtab_size_); in get_string()
934 CHECK(pad_start <= pad_end); in LoadSegments()
Dlinker_config.cpp109 CHECK(!was_end_of_file_); in next_token()
429 CHECK(cached != resolved_paths_.end()); in get_paths()
/bionic/libc/async_safe/include/async_safe/
DCHECK.h39 #define CHECK(predicate) \ macro
/bionic/libc/bionic/
Dsystem_property_set.cpp133 CHECK(uint_buf_index_ < kUintBufSize); in WriteUint32()
134 CHECK(iov_index_ < kIovSize); in WriteUint32()
150 CHECK(iov_index_ < kIovSize); in WriteString()
Dbionic_elf_tls.cpp96 CHECK(align != 0 && powerof2(align + 0) && skew < align); in align_checked()
163 CHECK(actual_tpoff == offset_exe_ - offset_tp); in reserve_exe_segment_and_tcb()
243 CHECK(((offset_tp - tentative_before_end) & (before.align.value - 1)) == 0); in reserve_tp_pair()
473 CHECK(modules.thread_exit_callback_tail_node == nullptr); in __notify_thread_exit_callbacks()
Dbionic_allocator.cpp106 CHECK(block_size_ != 0); in alloc()
116 CHECK(page->free_block_list != nullptr); in alloc()
148 CHECK(page->free_blocks_cnt == blocks_per_page_); in free_page()
Dsystem_property_api.cpp136 CHECK(getpid() == gettid()); in __system_properties_zygote_reload()
/bionic/libc/system_properties/
Dsystem_properties.cpp293 CHECK(!have_override || (override_pa && override_serial_pa)); in Update()
385 CHECK(other_pa && other_serial_pa); in Add()
401 CHECK(getpid() == 1 || getuid() == 0); in Add()

12