Home
last modified time | relevance | path

Searched refs:auxv (Results 1 – 25 of 76) sorted by relevance

1234

/external/musl/android/
Dldso_trampoline.cpp53 static size_t get_auxv(size_t* auxv, size_t entry) { in get_auxv() argument
54 for (size_t i = 0; auxv[i]; i += 2) in get_auxv()
55 if (auxv[i] == entry) return auxv[i + 1]; in get_auxv()
59 static void set_auxv(size_t* auxv, size_t entry, size_t value) { in set_auxv() argument
60 for (size_t i = 0; auxv[i]; i += 2) { in set_auxv()
61 if (auxv[i] == entry) { in set_auxv()
62 auxv[i + 1] = value; in set_auxv()
81 size_t* auxv = reinterpret_cast<size_t*>(argv + i + 1); in __dlwrap__start_c() local
84 for (i = 0; auxv[i]; i += 2) in __dlwrap__start_c()
85 if (auxv[i] < AUX_CNT) aux[auxv[i]] = auxv[i + 1]; in __dlwrap__start_c()
[all …]
Drelinterp.c355 AuxEntry* auxv; member
370 result.auxv = (AuxEntry*)envp; in read_args()
372 while (result.auxv[count].key != 0) { in read_args()
382 switch (args->auxv[i].key) { in dump_auxv()
397 debug(" %lu => 0x%lx%s", args->auxv[i].key, args->auxv[i].value, name); in dump_auxv()
404 if (args->auxv[i].key == kind) return args->auxv[i].value; in ri_getauxval()
631 if (args->auxv[i].key == AT_PHDR) { in insert_pt_interp_into_phdr_table()
632 args->auxv[i].value = (unsigned long)&replacement_phdr_table; in insert_pt_interp_into_phdr_table()
633 } else if (args->auxv[i].key == AT_PHNUM) { in insert_pt_interp_into_phdr_table()
634 args->auxv[i].value = cur - replacement_phdr_table; in insert_pt_interp_into_phdr_table()
[all …]
/external/musl/src/misc/
Dgetauxval.c7 size_t *auxv = libc.auxv; in __getauxval() local
9 for (; *auxv; auxv+=2) in __getauxval()
10 if (*auxv==item) return auxv[1]; in __getauxval()
/external/webrtc/system_wrappers/source/
Dcpu_features_linux.cc47 ElfW(auxv_t) auxv; in GetCPUFeaturesARM() local
51 if (read(fd, &auxv, sizeof(auxv)) < (ssize_t)sizeof(auxv)) { in GetCPUFeaturesARM()
56 switch (auxv.a_type) { in GetCPUFeaturesARM()
58 hwcap = auxv.a_un.a_val; in GetCPUFeaturesARM()
61 platform = (const char*)auxv.a_un.a_val; in GetCPUFeaturesARM()
/external/ltp/testcases/kernel/syscalls/switch/
Dendian_switch01.c100 unsigned long *auxv) in main4() argument
102 for (; *auxv != AT_NULL && *auxv != AT_HWCAP; auxv += 2) in main4()
105 if (!(auxv[0] == AT_HWCAP && (auxv[1] & PPC_FEATURE_TRUE_LE))) in main4()
/external/musl/src/env/
D__libc_start_main.c25 size_t i, *auxv, aux[AUX_CNT] = { 0 }; in __init_libc() local
28 libc.auxv = auxv = (void *)(envp+i+1); in __init_libc()
29 for (i=0; auxv[i]; i+=2) if (auxv[i]<AUX_CNT) aux[auxv[i]] = auxv[i+1]; in __init_libc()
/external/linux-kselftest/tools/testing/selftests/arm64/bti/
Dtest.c167 } *auxv; in start() local
180 for (auxv = (const struct auxv_entry *)p; auxv->type != AT_NULL; ++auxv) { in start()
181 switch (auxv->type) { in start()
183 hwcap = auxv->val; in start()
186 hwcap2 = auxv->val; in start()
/external/elfutils/libelf/
Dgelf_update_auxv.c67 Elf32_auxv_t *auxv; in gelf_update_auxv() local
85 auxv = &((Elf32_auxv_t *) data_scn->d.d_buf)[ndx]; in gelf_update_auxv()
87 auxv->a_type = src->a_type; in gelf_update_auxv()
88 auxv->a_un.a_val = src->a_un.a_val; in gelf_update_auxv()
/external/linux-kselftest/tools/testing/selftests/x86/
Dtest_syscall_vdso.c38 Elf32_auxv_t *auxv; in get_syscall() local
41 for (auxv = (void *)envp; auxv->a_type != AT_NULL; auxv++) in get_syscall()
42 if (auxv->a_type == AT_SYSINFO) in get_syscall()
43 return auxv->a_un.a_val; in get_syscall()
/external/cpuinfo/scripts/
Dandroid-armv7-auxv-dump.sh5 adb push build/android/armeabi-v7a/auxv-dump /data/local/tmp/auxv-dump
6 adb shell /data/local/tmp/auxv-dump
Dandroid-arm64-auxv-dump.sh5 adb push build/android/arm64-v8a/auxv-dump /data/local/tmp/auxv-dump
6 adb shell /data/local/tmp/auxv-dump
/external/musl/src/ldso/
Ddl_iterate_phdr.c19 for (i=0; libc.auxv[i]; i+=2) in static_dl_iterate_phdr()
20 if (libc.auxv[i]<AUX_CNT) aux[libc.auxv[i]] = libc.auxv[i+1]; in static_dl_iterate_phdr()
/external/rust/crates/gdbstub/examples/armv4t/gdb/
Dauxv.rs7 impl target::ext::auxv::Auxv for Emu {
9 let auxv = b"\x00\x00\x00\x00\x00\x00\x00\x00"; in get_auxv() localVariable
10 Ok(copy_range_to_buf(auxv, offset, length, buf)) in get_auxv()
/external/linux-kselftest/tools/testing/selftests/powerpc/
Dutils.c27 static char auxv[4096]; variable
59 void *find_auxv_entry(int type, char *auxv) in find_auxv_entry() argument
63 p = (ElfW(auxv_t) *)auxv; in find_auxv_entry()
79 if (read_auxv(auxv, sizeof(auxv))) in get_auxv_entry()
82 p = find_auxv_entry(type, auxv); in get_auxv_entry()
/external/musl/src/internal/
Dvdso.c46 for (i=0; libc.auxv[i] != AT_SYSINFO_EHDR; i+=2) in __vdsosym()
47 if (!libc.auxv[i]) return 0; in __vdsosym()
48 if (!libc.auxv[i+1]) return 0; in __vdsosym()
49 Ehdr *eh = (void *)libc.auxv[i+1]; in __vdsosym()
/external/musl/src/malloc/mallocng/
Dglue.h45 for (size_t i=0; libc.auxv[i]; i+=2) in get_random_secret()
46 if (libc.auxv[i]==AT_RANDOM) in get_random_secret()
47 memcpy(&secret, (char *)libc.auxv[i+1]+8, sizeof secret); in get_random_secret()
/external/musl/ldso/
Ddlstart.c30 size_t *auxv = (void *)(argv+i+1); in _dlstart_c() local
33 for (i=0; auxv[i]; i+=2) if (auxv[i]<AUX_CNT) in _dlstart_c()
34 aux[auxv[i]] = auxv[i+1]; in _dlstart_c()
Ddynlink.c1638 void __init_tls(size_t *auxv) in __init_tls() argument
1717 size_t *auxv; in __dls2() local
1718 for (auxv=sp+1+*sp+1; *auxv; auxv++); in __dls2()
1719 auxv++; in __dls2()
1725 decode_vec(auxv, aux, AUX_CNT); in __dls2()
1772 if (DL_FDPIC) ((stage3_func)&ldso.funcdescs[dls2b_def.sym-ldso.syms])(sp, auxv); in __dls2()
1773 else ((stage3_func)laddr(&ldso, dls2b_def.sym->st_value))(sp, auxv); in __dls2()
1782 void __dls2b(size_t *sp, size_t *auxv) in __dls2b() argument
1787 search_vec(auxv, &__hwcap, AT_HWCAP); in __dls2b()
1788 libc.auxv = auxv; in __dls2b()
[all …]
/external/libpng/contrib/powerpc-vsx/
Dlinux_aux.c25 unsigned long auxv = getauxval(AT_HWCAP); in png_have_vsx() local
29 if(auxv & (PPC_FEATURE_HAS_ALTIVEC|PPC_FEATURE_HAS_VSX)) in png_have_vsx()
/external/elfutils/libdwfl/
Dlink_map.c101 auxv_format_probe (const void *auxv, size_t size, in auxv_format_probe() argument
106 if (do_check64 (auxv + i * sizeof (Elf64_auxv_t), elfdata)) in auxv_format_probe()
112 if (do_check32 (auxv + (i * 2) * sizeof (Elf32_auxv_t), elfdata) in auxv_format_probe()
113 || do_check32 (auxv + (i * 2 + 1) * sizeof (Elf32_auxv_t), elfdata)) in auxv_format_probe()
717 dwfl_link_map_report (Dwfl *dwfl, const void *auxv, size_t auxv_size, in dwfl_link_map_report() argument
726 if (likely (auxv != NULL) in dwfl_link_map_report()
727 && likely (auxv_format_probe (auxv, auxv_size, &elfclass, &elfdata))) in dwfl_link_map_report()
738 const Elf##NN##_auxv_t *av = auxv; \ in dwfl_link_map_report()
741 const char *typep = auxv + i * sizeof (Elf##NN##_auxv_t); \ in dwfl_link_map_report()
744 const char *valp = auxv + i * sizeof (Elf##NN##_auxv_t); \ in dwfl_link_map_report()
/external/skia/src/core/
DSkCpu.cpp76 #elif defined(SK_CPU_ARM64) && __has_include(<sys/auxv.h>)
118 #elif defined(SK_CPU_ARM32) && __has_include(<sys/auxv.h>) && \
/external/rust/crates/gdbstub/src/target/
Dmod.rs689 fn support_auxv(&mut self) -> Option<ext::auxv::AuxvOps<'_, Self>> { in support_auxv()
746 __delegate_support!(auxv);
/external/linux-kselftest/tools/testing/selftests/vDSO/
Dparse_vdso.h29 void vdso_init_from_auxv(void *auxv);
Dparse_vdso.c238 void vdso_init_from_auxv(void *auxv) in vdso_init_from_auxv() argument
240 ELF(auxv_t) *elf_auxv = auxv; in vdso_init_from_auxv()
/external/ltp/include/
Dparse_vdso.h34 extern void vdso_init_from_auxv(void *auxv);

1234