/external/elfutils/libdw/ |
D | dwarf_getcfi.c | 43 if (dbg->cfi == NULL && dbg->sectiondata[IDX_debug_frame] != NULL) in dwarf_getcfi() 45 Dwarf_CFI *cfi = libdw_typed_alloc (dbg, Dwarf_CFI); in dwarf_getcfi() local 47 cfi->dbg = dbg; in dwarf_getcfi() 48 cfi->data = (Elf_Data_Scn *) dbg->sectiondata[IDX_debug_frame]; in dwarf_getcfi() 50 cfi->search_table = NULL; in dwarf_getcfi() 51 cfi->search_table_vaddr = 0; in dwarf_getcfi() 52 cfi->search_table_entries = 0; in dwarf_getcfi() 53 cfi->search_table_encoding = DW_EH_PE_omit; in dwarf_getcfi() 55 cfi->frame_vaddr = 0; in dwarf_getcfi() 56 cfi->textrel = 0; in dwarf_getcfi() [all …]
|
D | dwarf_getcfi_elf.c | 46 Dwarf_CFI *cfi = calloc (1, sizeof *cfi); in allocate_cfi() local 47 if (cfi == NULL) in allocate_cfi() 53 cfi->e_ident = (unsigned char *) elf_getident (elf, NULL); in allocate_cfi() 54 if (cfi->e_ident == NULL) in allocate_cfi() 56 free (cfi); in allocate_cfi() 61 cfi->e_machine = ehdr->e_machine; in allocate_cfi() 63 if ((BYTE_ORDER == LITTLE_ENDIAN && cfi->e_ident[EI_DATA] == ELFDATA2MSB) in allocate_cfi() 64 || (BYTE_ORDER == BIG_ENDIAN && cfi->e_ident[EI_DATA] == ELFDATA2LSB)) in allocate_cfi() 65 cfi->other_byte_order = true; in allocate_cfi() 67 cfi->frame_vaddr = vaddr; in allocate_cfi() [all …]
|
/external/mesa3d/src/gallium/auxiliary/hud/ |
D | hud_cpufreq.c | 70 list_for_each_entry(struct cpufreq_info, cfi, &gcpufreq_list, list) { in find_cfi_by_index() 71 if (cfi->mode != mode) in find_cfi_by_index() 73 if (cfi->cpu_index == cpu_index) in find_cfi_by_index() 74 return cfi; in find_cfi_by_index() 96 struct cpufreq_info *cfi = gr->query_data; in query_cfi_load() local 99 if (cfi->last_time) { in query_cfi_load() 100 if (cfi->last_time + gr->pane->period <= now) { in query_cfi_load() 101 switch (cfi->mode) { in query_cfi_load() 105 get_file_value(cfi->sysfs_filename, &cfi->KHz); in query_cfi_load() 106 hud_graph_add_value(gr, (uint64_t)cfi->KHz * 1000); in query_cfi_load() [all …]
|
/external/google-breakpad/src/processor/ |
D | cfi_frame_info_unittest.cc | 79 CFIFrameInfo cfi; member 90 cfi.SetRARule("0"); in TEST_F() 91 ASSERT_FALSE(cfi.FindCallerRegs<uint64_t>(registers, memory, in TEST_F() 93 ASSERT_EQ(".ra: 0", cfi.Serialize()); in TEST_F() 100 cfi.SetCFARule("0"); in TEST_F() 101 ASSERT_FALSE(cfi.FindCallerRegs<uint64_t>(registers, memory, in TEST_F() 103 ASSERT_EQ(".cfa: 0", cfi.Serialize()); in TEST_F() 109 cfi.SetCFARule("330903416631436410"); in TEST_F() 110 cfi.SetRARule("5870666104170902211"); in TEST_F() 111 ASSERT_TRUE(cfi.FindCallerRegs<uint64_t>(registers, memory, in TEST_F() [all …]
|
/external/llvm-project/llvm/test/tools/llvm-cfi-verify/AArch64/ |
D | protected-lineinfo.s | 2 # RUN: llvm-cfi-verify %t.o | FileCheck %s 26 .type _Z1av.cfi,@function 27 _Z1av.cfi: 37 .size _Z1av.cfi, .Lfunc_end0-_Z1av.cfi 41 .type _Z1bv.cfi,@function 42 _Z1bv.cfi: 51 .size _Z1bv.cfi, .Lfunc_end1-_Z1bv.cfi 89 adrp x8, .L.cfi.jumptable 90 add x9, x8, :lo12:.L.cfi.jumptable 111 .type .L.cfi.jumptable,@function [all …]
|
/external/llvm-project/llvm/test/tools/llvm-cfi-verify/Unsupported/ |
D | arm-protected-lineinfo.s | 2 # RUN: not llvm-cfi-verify %t.o 2>&1 | FileCheck %s 38 .type _Z1av.cfi,%function 40 _Z1av.cfi: 52 .size _Z1av.cfi, .Lfunc_end0-_Z1av.cfi 58 .type _Z1bv.cfi,%function 60 _Z1bv.cfi: 70 .size _Z1bv.cfi, .Lfunc_end1-_Z1bv.cfi 146 .long .L.cfi.jumptable-(.LPC2_2+8) 153 .type .L.cfi.jumptable,%function 155 .L.cfi.jumptable: [all …]
|
/external/llvm-project/llvm/test/tools/llvm-cfi-verify/X86/Inputs/ |
D | protected-lineinfo.s | 13 # clang++ -flto -fsanitize=cfi -fvisibility=hidden -c tiny.cc -o tiny.o -gmlt 15 # clang++ -fsanitize=cfi -flto -fvisibility=hidden -c tiny.cc -o tiny.o -gmlt 21 .type _Z1av.cfi,@function 22 _Z1av.cfi: 38 .size _Z1av.cfi, .Lfunc_end0-_Z1av.cfi 42 .type _Z1bv.cfi,@function 43 _Z1bv.cfi: 58 .size _Z1bv.cfi, .Lfunc_end1-_Z1bv.cfi 96 leaq .L.cfi.jumptable(%rip), %rcx 121 .type .L.cfi.jumptable,@function [all …]
|
/external/llvm-project/llvm/test/tools/llvm-cfi-verify/X86/ |
D | indirect-cf-elimination.s | 2 # RUN: llvm-cfi-verify %t.o 2>&1 --summarize | FileCheck %s 7 # function should not be reported at all by llvm-cfi-verify. 10 # reporting of the cfi-verify program. It should only find a single indirect CF 34 .type _Z1av.cfi,@function 35 _Z1av.cfi: 51 .size _Z1av.cfi, .Lfunc_end0-_Z1av.cfi 55 .type _Z1bv.cfi,@function 56 _Z1bv.cfi: 71 .size _Z1bv.cfi, .Lfunc_end1-_Z1bv.cfi 110 leaq .L.cfi.jumptable(%rip), %rcx [all …]
|
/external/libchrome/base/trace_event/ |
D | cfi_backtrace_android.cc | 198 CFIRow cfi{}; in Unwind() local 199 if (!FindCFIRowForPC(func_addr, &cfi)) in Unwind() 205 sp = sp + cfi.cfa_offset; in Unwind() 206 memcpy(&pc, reinterpret_cast<uintptr_t*>(sp - cfi.ra_offset), in Unwind() 213 CFIBacktraceAndroid::CFIRow* cfi) { in FindCFIRowForPC() argument 215 *cfi = {0}; in FindCFIRowForPC() 216 if (cache->Find(func_addr, cfi)) in FindCFIRowForPC() 283 *cfi = {cfi_row.cfa_offset(), ra_offset}; in FindCFIRowForPC() 284 DCHECK(cfi->cfa_offset); in FindCFIRowForPC() 285 DCHECK(cfi->ra_offset); in FindCFIRowForPC() [all …]
|
D | cfi_backtrace_android_unittest.cc | 158 CFIBacktraceAndroid::CFIRow cfi; in TEST() local 161 EXPECT_FALSE(cache.Find(1, &cfi)); in TEST() 167 ASSERT_TRUE(cache.Find(i, &cfi)); in TEST() 168 ASSERT_EQ(cfi, val); in TEST() 172 ASSERT_FALSE(cache.Find(i - cache.kLimit, &cfi)); in TEST() 178 ASSERT_FALSE(cache.Find(i, &cfi)); in TEST() 184 ASSERT_TRUE(cache.Find(i, &cfi)); in TEST() 185 ASSERT_EQ(cfi, val); in TEST() 189 cfi = {1, 1}; in TEST() 190 cache.Add(2 * cache.kLimit + 1, cfi); in TEST() [all …]
|
/external/compiler-rt/lib/cfi/ |
D | CMakeLists.txt | 1 add_custom_target(cfi) target 2 set_target_properties(cfi PROPERTIES FOLDER "Compiler-RT Misc") 4 set(CFI_SOURCES cfi.cc) 17 add_compiler_rt_runtime(clang_rt.cfi 25 PARENT_TARGET cfi) 35 PARENT_TARGET cfi) 38 add_compiler_rt_resource_file(cfi_blacklist cfi_blacklist.txt cfi) 39 add_dependencies(compiler-rt cfi)
|
/external/llvm-project/llvm/test/Transforms/LowerTypeTests/ |
D | cfi-direct-call1.ll | 2 …owertypetests-summary-action=import -lowertypetests-read-summary=%p/Inputs/cfi-direct-call1.yaml -… 50 ; Make sure local_func1 and local_func2 have been renamed to <name>.cfi 51 ; FULL: define hidden i32 @local_func1.cfi() 52 ; FULL: define hidden i32 @local_func2.cfi() 61 …cfi.jumptable to [4 x [8 x i8]]*), i64 0, i64 2) to i32 ()*), i32 ()* null), i32 ()* bitcast ([8 x… 68 ; FULL: %call6 = tail call i32 @local_func1.cfi() 74 ; FULL: define private void @.cfi.jumptable(){{.*}} 76 ; FULL-NEXT: call void asm{{.*}}local_func1.cfi{{.*}}local_func2.cfi{{.*}}extern_weak{{.*}}extern_d… 78 ; Make sure all local functions have been renamed to <name>.cfi 79 ; THIN: define hidden i32 @local_func1.cfi() [all …]
|
D | function-arm-thumb.ll | 36 …ECK-NEXT: call void asm sideeffect "b.w $0\0Ab.w $1\0A", "s,s"(void ()* @f1.cfi, void ()* @g1.cfi) 42 …m sideeffect "b $0\0Ab $1\0Ab $2\0A", "s,s,s"(void ()* @f2.cfi, void ()* @g2.cfi, void ()* @h2.cfi)
|
/external/elfutils/libdwfl/ |
D | dwfl_module_dwarf_cfi.c | 38 __libdwfl_set_cfi (Dwfl_Module *mod, Dwarf_CFI **slot, Dwarf_CFI *cfi) in __libdwfl_set_cfi() argument 40 if (cfi != NULL && cfi->ebl == NULL) in __libdwfl_set_cfi() 44 cfi->ebl = mod->ebl; in __libdwfl_set_cfi() 48 INTUSE(dwarf_cfi_end) (cfi); in __libdwfl_set_cfi() 54 return *slot = cfi; in __libdwfl_set_cfi()
|
/external/clang/docs/ |
D | ControlFlowIntegrity.rst | 22 To enable Clang's available CFI schemes, use the flag ``-fsanitize=cfi``. 23 You can also enable a subset of available :ref:`schemes <cfi-schemes>`. 38 The ``-fsanitize=cfi-{vcall,nvcall,derived-cast,unrelated-cast}`` flags 45 <cfi-cross-dso>` exists that does not require classes to have hidden LTO 57 - ``-fsanitize=cfi-cast-strict``: Enables :ref:`strict cast checks 58 <cfi-strictness>`. 59 - ``-fsanitize=cfi-derived-cast``: Base-to-derived cast to the wrong 61 - ``-fsanitize=cfi-unrelated-cast``: Cast from ``void*`` or another 63 - ``-fsanitize=cfi-nvcall``: Non-virtual call via an object whose vptr is of 65 - ``-fsanitize=cfi-vcall``: Virtual call via an object whose vptr is of the [all …]
|
/external/llvm-project/compiler-rt/lib/cfi/ |
D | CMakeLists.txt | 1 add_compiler_rt_component(cfi) 5 cfi.cpp 19 add_compiler_rt_runtime(clang_rt.cfi 27 PARENT_TARGET cfi) 39 PARENT_TARGET cfi) 43 add_compiler_rt_resource_file(cfi_blacklist cfi_blacklist.txt cfi)
|
/external/compiler-rt/test/cfi/ |
D | CMakeLists.txt | 22 list(APPEND CFI_TEST_DEPS cfi) 41 add_lit_testsuite(check-cfi "Running the cfi regression tests" 46 add_lit_target(check-cfi-and-supported "Running the cfi regression tests" 52 set_target_properties(check-cfi PROPERTIES FOLDER "Compiler-RT Misc") 53 set_target_properties(check-cfi-and-supported PROPERTIES FOLDER "Compiler-RT Misc")
|
D | lit.cfg | 4 config.name = 'cfi' 13 …g_cfi = ' '.join(config.lto_launch + [config.clang] + config.lto_flags + ['-flto -fsanitize=cfi ']) 23 diag = '-fno-sanitize-trap=cfi -fsanitize-recover=cfi ' 25 dso = '-fsanitize-cfi-cross-dso -fvisibility=default '
|
/external/llvm-project/clang/docs/ |
D | ControlFlowIntegrity.rst | 22 To enable Clang's available CFI schemes, use the flag ``-fsanitize=cfi``. 23 You can also enable a subset of available :ref:`schemes <cfi-schemes>`. 38 The ``-fsanitize=cfi-{vcall,nvcall,derived-cast,unrelated-cast}`` flags 45 <cfi-cross-dso>` exists that does not require classes to have hidden LTO 57 - ``-fsanitize=cfi-cast-strict``: Enables :ref:`strict cast checks 58 <cfi-strictness>`. 59 - ``-fsanitize=cfi-derived-cast``: Base-to-derived cast to the wrong 61 - ``-fsanitize=cfi-unrelated-cast``: Cast from ``void*`` or another 63 - ``-fsanitize=cfi-nvcall``: Non-virtual call via an object whose vptr is of 65 - ``-fsanitize=cfi-vcall``: Virtual call via an object whose vptr is of the [all …]
|
/external/llvm-project/compiler-rt/test/cfi/ |
D | CMakeLists.txt | 69 list(APPEND CFI_TEST_DEPS cfi) 96 add_lit_testsuite(check-cfi "Running the cfi regression tests" 100 add_lit_target(check-cfi-and-supported "Running the cfi regression tests" 105 set_target_properties(check-cfi PROPERTIES FOLDER "Compiler-RT Misc") 106 set_target_properties(check-cfi-and-supported PROPERTIES FOLDER "Compiler-RT Misc")
|
/external/llvm-project/llvm/test/Transforms/CrossDSOCFI/ |
D | cfi_functions.ll | 1 ; Test that types referenced in ThinLTO-style !cfi.functions are known to __cfi_check. 2 ; RUN: opt -S -cross-dso-cfi < %s | FileCheck %s 3 ; RUN: opt -S -passes=cross-dso-cfi < %s | FileCheck %s 14 !cfi.functions = !{!0, !1}
|
D | thumb.ll | 1 ; RUN: opt -mtriple=armv7-linux-android -S -cross-dso-cfi < %s | FileCheck --check-prefix=THUMB %s 2 ; RUN: opt -mtriple=thumbv7-linux-android -S -cross-dso-cfi < %s | FileCheck --check-prefix=THUMB %s 3 ; RUN: opt -mtriple=i386-linux -S -cross-dso-cfi < %s | FileCheck --check-prefix=NOTHUMB %s 4 ; RUN: opt -mtriple=x86_64-linux -S -cross-dso-cfi < %s | FileCheck --check-prefix=NOTHUMB %s
|
/external/llvm-project/lldb/test/Shell/SymbolFile/Breakpad/ |
D | unwind-via-stack-cfi.test | 3 # RUN: yaml2obj %S/Inputs/unwind-via-stack-cfi.yaml -o %t 4 # RUN: %lldb -c %t -o "target symbols add %S/Inputs/unwind-via-stack-cfi.syms" \ 16 # CHECK-NEXT: Address range of this UnwindPlan: [unwind-via-stack-cfi..module_image + 1056-0x000000… 21 # CHECK: frame #0: 0x0000000000400430 unwind-via-stack-cfi`bar + 16 22 # CHECK: frame #1: 0x0000000000400497 unwind-via-stack-cfi`_start + 23
|
/external/llvm/test/tools/sanstats/ |
D | elf.test | 28 # CHECK: /tmp{{[/\\]}}f.c:1 f1 cfi-vcall 1 29 # CHECK: /tmp{{[/\\]}}f.c:2 f2 cfi-nvcall 2 30 # CHECK: /tmp{{[/\\]}}f.c:3 f3 cfi-derived-cast 3 31 # CHECK: /tmp{{[/\\]}}f.c:1 f1 cfi-unrelated-cast 4 32 # CHECK: /tmp{{[/\\]}}f.c:2 f2 cfi-icall 5 35 # CHECK: /tmp{{[/\\]}}f.c:3 f3 cfi-vcall 7 36 # CHECK: /tmp{{[/\\]}}f.c:2 f2 cfi-nvcall 8 37 # CHECK: /tmp{{[/\\]}}f.c:1 f1 cfi-derived-cast 9 38 # CHECK: /tmp{{[/\\]}}f.c:3 f3 cfi-unrelated-cast 11 39 # CHECK: /tmp{{[/\\]}}f.c:2 f2 cfi-icall 12
|
/external/llvm-project/llvm/tools/llvm-cfi-verify/ |
D | CMakeLists.txt | 13 add_llvm_tool(llvm-cfi-verify 14 llvm-cfi-verify.cpp 18 target_link_libraries(llvm-cfi-verify PRIVATE LLVMCFIVerify)
|