/external/ltp/testcases/kernel/mem/mtest06/ |
D | shmat1.c | 92 void *map_address; /* pointer to file in memory */ variable 164 if (scp->edi == (int)map_address) { in sig_handler() 168 } else if (scp->esi == (int)map_address) { in sig_handler() 178 (unsigned long)scp->esi, map_address); in sig_handler() 248 if ((map_address = shmat(shmid, NULL, 0)) in shmat_shmdt() 251 map_address); in shmat_shmdt() 260 memset(map_address, 'X', 1); in shmat_shmdt() 266 STR_SHMAT, pthread_self(), map_address); in shmat_shmdt() 275 if (shmdt((void *)map_address) == -1) { in shmat_shmdt() 314 map_address); in write_to_mem() [all …]
|
D | mmap1.c | 54 static volatile unsigned char *map_address; variable 111 map_address = SAFE_MMAP(distant_area, in map_write_unmap() 117 map_address[j] = 'b'; in map_write_unmap() 119 tmp = (void *)map_address; in map_write_unmap() 144 c = map_address[j]; in read_mem()
|
/external/elfutils/libelf/ |
D | elf_begin.c | 52 file_read_ar (int fildes, void *map_address, off_t offset, size_t maxsize, in file_read_ar() argument 58 elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent, in file_read_ar() 74 get_shnum (void *map_address, unsigned char *e_ident, int fildes, in get_shnum() argument 158 if (likely (map_address != NULL) && e_ident[EI_DATA] == MY_ELFDATA in get_shnum() 160 || (((size_t) ((char *) map_address + ehdr.e32->e_shoff)) in get_shnum() 163 result = ((Elf32_Shdr *) ((char *) map_address + ehdr.e32->e_shoff in get_shnum() 170 if (likely (map_address != NULL)) in get_shnum() 173 memcpy (&size, &((Elf32_Shdr *) ((char *) map_address in get_shnum() 217 if (likely (map_address != NULL) && e_ident[EI_DATA] == MY_ELFDATA in get_shnum() 219 || (((size_t) ((char *) map_address + ehdr.e64->e_shoff)) in get_shnum() [all …]
|
D | elf_readall.c | 52 if (child->map_address == NULL) in set_address() 54 child->map_address = elf->map_address; in set_address() 75 if (elf->map_address == NULL && unlikely (elf->fildes == -1)) in __libelf_readall() 83 if (elf->map_address == NULL) in __libelf_readall() 127 elf->map_address = mem; in __libelf_readall() 151 return (char *) elf->map_address; in __libelf_readall()
|
D | elf_getarsym.c | 59 if (elf->map_address != NULL) in read_number_entries() 62 memcpy (&u, elf->map_address + *offp, sizeof u); in read_number_entries() 111 if (elf->map_address == NULL) in elf_getarsym() 136 index_hdr = (struct ar_hdr *) (elf->map_address in elf_getarsym() 208 if (elf->map_address == NULL) in elf_getarsym() 249 file_data = (void *) (elf->map_address + off); in elf_getarsym() 259 file_data = memcpy (temp_data, elf->map_address + off, sz); in elf_getarsym() 261 str_data = (char *) (elf->map_address + off + sz); in elf_getarsym() 284 if (elf->map_address == NULL) in elf_getarsym()
|
D | elf_update.c | 71 if (elf->map_address == NULL && elf->cmd == ELF_C_WRITE_MMAP) in write_file() 73 elf->map_address = mmap (NULL, size, PROT_READ | PROT_WRITE, in write_file() 75 if (unlikely (elf->map_address == MAP_FAILED)) in write_file() 76 elf->map_address = NULL; in write_file() 81 if (elf->map_address != NULL) in write_file() 109 if (mremap (elf->map_address, elf->maximum_size, in write_file()
|
D | elf_getshdrstrndx.c | 109 if (elf->map_address != NULL in elf_getshdrstrndx() 112 || (((size_t) ((char *) elf->map_address in elf_getshdrstrndx() 128 num = ((Elf32_Shdr *) (elf->map_address + elf->start_offset in elf_getshdrstrndx() 174 if (elf->map_address != NULL in elf_getshdrstrndx() 177 || (((size_t) ((char *) elf->map_address in elf_getshdrstrndx() 193 num = ((Elf64_Shdr *) (elf->map_address + elf->start_offset in elf_getshdrstrndx()
|
D | elf32_updatefile.c | 150 (*fctp) ((char *) elf->map_address + elf->start_offset, ehdr, in __elfw2() 153 else if (elf->map_address + elf->start_offset != ehdr) in __elfw2() 154 memcpy (elf->map_address + elf->start_offset, ehdr, in __elfw2() 181 memset (elf->map_address + elf->start_offset + ehdr->e_ehsize, in __elfw2() 191 (*fctp) (elf->map_address + elf->start_offset + ehdr->e_phoff, in __elfw2() 196 memmove (elf->map_address + elf->start_offset + ehdr->e_phoff, in __elfw2() 209 char *last_position = ((char *) elf->map_address + elf->start_offset in __elfw2() 227 char *const shdr_start = ((char *) elf->map_address + elf->start_offset in __elfw2() 248 assert ((char *) elf->map_address + elf->start_offset in __elfw2() 251 < ((char *) elf->map_address + elf->start_offset in __elfw2() [all …]
|
D | common.h | 71 allocate_elf (int fildes, void *map_address, int64_t offset, size_t maxsize, in allocate_elf() argument 85 result->map_address = map_address; in allocate_elf()
|
D | elf_rawfile.c | 56 if (elf->map_address == NULL && __libelf_readall (elf) == NULL) in elf_rawfile() 63 result = (char *) elf->map_address + elf->start_offset; in elf_rawfile()
|
D | elf_end.c | 168 if (elf->map_address == NULL in elf_end() 221 if (elf->map_address != NULL && parent == NULL) in elf_end() 225 free (elf->map_address); in elf_end() 227 munmap (elf->map_address, elf->maximum_size); in elf_end()
|
D | elf32_getshdr.c | 79 if (elf->map_address != NULL) in ElfW2() 97 void *file_shdr = ((char *) elf->map_address in ElfW2() 123 ((char *) elf->map_address in ElfW2() 133 memcpy (notcvt, ((char *) elf->map_address in ElfW2()
|
D | elf_getdata_rawchunk.c | 79 if (elf->map_address != NULL) in elf_getdata_rawchunk() 82 char *rawdata = elf->map_address + elf->start_offset + offset; in elf_getdata_rawchunk()
|
D | elf_cntl.c | 59 if (elf->map_address == NULL && __libelf_readall (elf) == NULL) in elf_cntl()
|
D | elf_clone.c | 56 retval = allocate_elf (elf->fildes, elf->map_address, elf->start_offset, in elf_clone()
|
D | elf32_getphdr.c | 95 if (elf->map_address != NULL) in ElfW2() 108 void *file_phdr = ((char *) elf->map_address in ElfW2()
|
D | libelfP.h | 276 void *map_address; member 445 extern Elf *__libelf_read_mmaped_file (int fildes, void *map_address,
|
D | elf_getdata.c | 300 if (elf->map_address != NULL) in __libelf_set_rawdata_wrlock() 314 = (char *) elf->map_address + elf->start_offset + offset; in __libelf_set_rawdata_wrlock()
|
D | elf_compress.c | 325 if (scn->elf->map_address == NULL in __libelf_reset_rawdata()
|
/external/elfutils/libdwfl/ |
D | open.c | 60 void *const mapped = ((*elf)->map_address == NULL ? NULL in decompress() 61 : (*elf)->map_address + offset); in decompress() 142 (elf->map_address == NULL ? NULL in libdw_open_elf() 143 : elf->map_address + offset), in libdw_open_elf()
|
D | core-file.c | 82 if (parent->map_address != NULL) in elf_begin_rand() 83 memcpy (h.ar_size, parent->map_address + parent->start_offset + offset, in elf_begin_rand() 190 if (core->map_address == NULL) in core_file_read_eagerly() 204 *elfp = elf_begin_rand (core, *buffer - core->map_address, whole, NULL); in core_file_read_eagerly() 235 if (core->map_address != NULL) in core_file_read_eagerly() 293 if (elf->map_address == NULL) in dwfl_elf_phdr_memory_callback() 323 if (elf->map_address != NULL) in dwfl_elf_phdr_memory_callback() 335 if (elf->map_address != NULL) in dwfl_elf_phdr_memory_callback() 337 void *contents = elf->map_address + elf->start_offset + start; in dwfl_elf_phdr_memory_callback()
|
/external/ltp/testcases/kernel/mem/mtest07/ |
D | shm_test.c | 285 char *map_address = NULL; in main() local 323 i, map_address, map_size); in main()
|
/external/grpc-grpc/src/core/ext/filters/client_channel/ |
D | proxy_mapper.cc | 42 return mapper->vtable->map_address(mapper, address, args, new_address, in grpc_proxy_mapper_map_address()
|
D | proxy_mapper.h | 44 bool (*map_address)(grpc_proxy_mapper* mapper, member
|
/external/google-breakpad/src/processor/ |
D | map_serializers-inl.h | 224 char *map_address = dest; in Write() local 239 offsets[index] = static_cast<uint32_t>(dest - map_address); in Write()
|