/third_party/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 | 50 static volatile unsigned char *map_address; variable 102 map_address = SAFE_MMAP(distant_area, in map_write_unmap() 108 map_address[j] = 'b'; in map_write_unmap() 110 tmp = (void *)map_address; in map_write_unmap() 135 c = map_address[j]; in read_mem()
|
/third_party/elfutils/libelf/ |
D | elf_begin.c | 50 file_read_ar (int fildes, void *map_address, off_t offset, size_t maxsize, in file_read_ar() argument 56 elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent, in file_read_ar() 72 get_shnum (void *map_address, unsigned char *e_ident, int fildes, in get_shnum() argument 156 if (likely (map_address != NULL) && e_ident[EI_DATA] == MY_ELFDATA in get_shnum() 158 || (((size_t) ((char *) (map_address + ehdr.e32->e_shoff in get_shnum() 162 result = ((Elf32_Shdr *) ((char *) map_address + ehdr.e32->e_shoff in get_shnum() 169 if (likely (map_address != NULL)) in get_shnum() 172 memcpy (&size, ((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 | 50 if (child->map_address == NULL) in set_address() 52 child->map_address = elf->map_address; in set_address() 73 if (elf->map_address == NULL && unlikely (elf->fildes == -1)) in __libelf_readall() 81 if (elf->map_address == NULL) in __libelf_readall() 125 elf->map_address = mem; in __libelf_readall() 149 return (char *) elf->map_address; in __libelf_readall()
|
D | elf_getarsym.c | 55 if (elf->map_address != NULL) in read_number_entries() 58 memcpy (&u, elf->map_address + *offp, sizeof u); in read_number_entries() 107 if (elf->map_address == NULL) in elf_getarsym() 132 index_hdr = (struct ar_hdr *) (elf->map_address in elf_getarsym() 204 if (elf->map_address == NULL) in elf_getarsym() 244 file_data = (void *) (elf->map_address + off); in elf_getarsym() 254 file_data = memcpy (temp_data, elf->map_address + off, sz); in elf_getarsym() 256 str_data = (char *) (elf->map_address + off + sz); in elf_getarsym() 279 if (elf->map_address == NULL) in elf_getarsym()
|
D | elf_update.c | 69 if (elf->map_address == NULL && elf->cmd == ELF_C_WRITE_MMAP) in write_file() 71 elf->map_address = mmap (NULL, size, PROT_READ | PROT_WRITE, in write_file() 73 if (unlikely (elf->map_address == MAP_FAILED)) in write_file() 74 elf->map_address = NULL; in write_file() 79 if (elf->map_address != NULL) in write_file() 108 if (mremap (elf->map_address, elf->maximum_size, in write_file()
|
D | elf_getshdrstrndx.c | 107 if (elf->map_address != NULL in elf_getshdrstrndx() 110 || (((size_t) ((char *) elf->map_address in elf_getshdrstrndx() 126 num = ((Elf32_Shdr *) (elf->map_address + elf->start_offset in elf_getshdrstrndx() 172 if (elf->map_address != NULL in elf_getshdrstrndx() 175 || (((size_t) ((char *) elf->map_address in elf_getshdrstrndx() 191 num = ((Elf64_Shdr *) (elf->map_address + elf->start_offset in elf_getshdrstrndx()
|
D | elf32_updatefile.c | 147 (*fctp) ((char *) elf->map_address + elf->start_offset, ehdr, in __elfw2() 150 else if (elf->map_address + elf->start_offset != ehdr) in __elfw2() 151 memcpy (elf->map_address + elf->start_offset, ehdr, in __elfw2() 178 memset (elf->map_address + elf->start_offset + ehdr->e_ehsize, in __elfw2() 188 (*fctp) (elf->map_address + elf->start_offset + ehdr->e_phoff, in __elfw2() 193 memmove (elf->map_address + elf->start_offset + ehdr->e_phoff, in __elfw2() 206 char *last_position = ((char *) elf->map_address + elf->start_offset in __elfw2() 224 char *const shdr_start = ((char *) elf->map_address + elf->start_offset in __elfw2() 245 assert ((char *) elf->map_address + elf->start_offset in __elfw2() 248 < ((char *) elf->map_address + elf->start_offset in __elfw2() [all …]
|
D | common.h | 68 allocate_elf (int fildes, void *map_address, int64_t offset, size_t maxsize, in allocate_elf() argument 82 result->map_address = map_address; in allocate_elf()
|
D | elf_end.c | 167 if (elf->map_address == NULL in elf_end() 220 if (elf->map_address != NULL && parent == NULL) in elf_end() 224 free (elf->map_address); in elf_end() 226 munmap (elf->map_address, elf->maximum_size); in elf_end()
|
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 | elf32_getshdr.c | 77 if (elf->map_address != NULL) in ElfW2() 95 void *file_shdr = ((char *) elf->map_address in ElfW2() 121 ((char *) elf->map_address in ElfW2() 131 memcpy (notcvt, ((char *) elf->map_address in ElfW2()
|
D | elf_getdata_rawchunk.c | 92 if (elf->map_address != NULL) in elf_getdata_rawchunk() 95 char *rawdata = elf->map_address + elf->start_offset + offset; in elf_getdata_rawchunk()
|
D | elf_cntl.c | 57 if (elf->map_address == NULL && __libelf_readall (elf) == NULL) in elf_cntl()
|
D | elf32_getphdr.c | 93 if (elf->map_address != NULL) in ElfW2() 106 void *file_phdr = ((char *) elf->map_address in ElfW2()
|
D | elf_clone.c | 56 retval = allocate_elf (elf->fildes, elf->map_address, elf->start_offset, in elf_clone()
|
D | libelfP.h | 278 void *map_address; member 447 extern Elf *__libelf_read_mmaped_file (int fildes, void *map_address,
|
D | elf_getdata.c | 302 if (elf->map_address != NULL) in __libelf_set_rawdata_wrlock() 316 = (char *) elf->map_address + elf->start_offset + offset; in __libelf_set_rawdata_wrlock()
|
D | elf_compress.c | 323 if (scn->elf->map_address == NULL in __libelf_reset_rawdata()
|
D | ChangeLog | 1123 elf->map_address. Check if first section header fits into object's 1785 * elf32_getshdr.c: Include map_address and start_offset in alignment
|
/third_party/elfutils/libdwfl/ |
D | core-file.c | 83 if (parent->map_address != NULL) in elf_begin_rand() 84 memcpy (ar_size, parent->map_address + parent->start_offset + offset, in elf_begin_rand() 191 if (core->map_address == NULL) in core_file_read_eagerly() 205 *elfp = elf_begin_rand (core, *buffer - core->map_address, whole, NULL); in core_file_read_eagerly() 236 if (core->map_address != NULL) in core_file_read_eagerly() 294 if (elf->map_address == NULL) in dwfl_elf_phdr_memory_callback() 324 if (elf->map_address != NULL && start < elf->maximum_size) in dwfl_elf_phdr_memory_callback() 339 if (elf->map_address != NULL) in dwfl_elf_phdr_memory_callback() 341 void *contents = elf->map_address + elf->start_offset + start; in dwfl_elf_phdr_memory_callback()
|
D | open.c | 62 void *const mapped = ((*elf)->map_address == NULL ? NULL in decompress() 63 : (*elf)->map_address + offset); in decompress() 145 (elf->map_address == NULL ? NULL in libdw_open_elf() 146 : elf->map_address + offset), in libdw_open_elf()
|
D | relocate.c | 572 if (relocated->map_address != NULL) in relocate_section()
|
/third_party/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()
|
/third_party/node/deps/v8/tools/ |
D | grokdump.py | 1922 map_address = self.reader.ReadTagged(tagged_address - 1) 1923 if not self.IsTaggedMapAddress(map_address): continue
|