Lines Matching refs:mem_cache
132 struct __libdwfl_remote_mem_cache *mem_cache = pid_arg->mem_cache; in read_cached_memory() local
133 if (mem_cache == NULL) in read_cached_memory()
136 mem_cache = (struct __libdwfl_remote_mem_cache *) malloc (mem_cache_size); in read_cached_memory()
137 if (mem_cache == NULL) in read_cached_memory()
140 mem_cache->addr = 0; in read_cached_memory()
141 mem_cache->len = 0; in read_cached_memory()
142 pid_arg->mem_cache = mem_cache; in read_cached_memory()
146 if (addr >= mem_cache->addr && addr - mem_cache->addr < mem_cache->len) in read_cached_memory()
148 d = &mem_cache->buf[addr - mem_cache->addr]; in read_cached_memory()
157 mem_cache->addr = addr & ~((Dwarf_Addr)__LIBDWFL_REMOTE_MEM_CACHE_SIZE - 1); in read_cached_memory()
158 local.iov_base = mem_cache->buf; in read_cached_memory()
160 remote.iov_base = (void *) (uintptr_t) mem_cache->addr; in read_cached_memory()
167 mem_cache->len = 0; in read_cached_memory()
171 mem_cache->len = res; in read_cached_memory()
172 d = &mem_cache->buf[addr - mem_cache->addr]; in read_cached_memory()
184 struct __libdwfl_remote_mem_cache *mem_cache = pid_arg->mem_cache; in clear_cached_memory() local
185 if (mem_cache != NULL) in clear_cached_memory()
186 mem_cache->len = 0; in clear_cached_memory()
335 free (pid_arg->mem_cache); in pid_detach()
463 pid_arg->mem_cache = NULL; in dwfl_linux_proc_attach()