Home
last modified time | relevance | path

Searched refs:cache (Results 1 – 10 of 10) sorted by relevance

/scripts/gendwarfksyms/
Dcache.c14 void cache_set(struct cache *cache, unsigned long key, int value) in cache_set() argument
21 hash_add(cache->cache, &ci->hash, hash_32(key)); in cache_set()
24 int cache_get(struct cache *cache, unsigned long key) in cache_get() argument
28 hash_for_each_possible(cache->cache, ci, hash, hash_32(key)) { in cache_get()
36 void cache_init(struct cache *cache) in cache_init() argument
38 hash_init(cache->cache); in cache_init()
41 void cache_free(struct cache *cache) in cache_free() argument
46 hash_for_each_safe(cache->cache, ci, tmp, hash) { in cache_free()
50 hash_init(cache->cache); in cache_free()
Ddwarf.c38 static void process_linebreak(struct die *cache, int n) in process_linebreak() argument
42 die_map_add_linebreak(cache, n); in process_linebreak()
109 static struct cache srcfile_cache;
147 static bool is_kabi_definition(struct die *cache, Dwarf_Die *die) in is_kabi_definition() argument
154 if (kabi_is_declonly(cache->fqn)) in is_kabi_definition()
163 static void process(struct die *cache, const char *s) in process() argument
176 if (cache) in process()
177 die_debug_r("cache %p string '%s'", cache, s); in process()
178 die_map_add_string(cache, s); in process()
183 static void process_fmt(struct die *cache, const char *fmt, ...) in process_fmt() argument
[all …]
Dgendwarfksyms.h210 struct cache { struct
211 HASHTABLE_DECLARE(cache, 1 << CACHE_HASH_BITS);
214 void cache_set(struct cache *cache, unsigned long key, int value);
215 int cache_get(struct cache *cache, unsigned long key);
216 void cache_init(struct cache *cache);
217 void cache_free(struct cache *cache);
219 static inline void cache_mark_expanded(struct cache *cache, void *addr) in cache_mark_expanded() argument
221 cache_set(cache, (unsigned long)addr, 1); in cache_mark_expanded()
224 static inline bool cache_was_expanded(struct cache *cache, void *addr) in cache_was_expanded() argument
226 return cache_get(cache, (unsigned long)addr) == 1; in cache_was_expanded()
[all …]
Dtypes.c15 static struct cache expansion_cache;
293 static char *get_type_name(struct die *cache) in get_type_name() argument
299 if (cache->state == DIE_INCOMPLETE) { in get_type_name()
300 warn("found incomplete cache entry: %p", cache); in get_type_name()
303 if (cache->state == DIE_SYMBOL || cache->state == DIE_FQN) in get_type_name()
305 if (!cache->fqn || !*cache->fqn) in get_type_name()
308 prefix = get_type_prefix(cache->tag); in get_type_name()
313 quote = strstr(cache->fqn, " ") ? "'" : ""; in get_type_name()
316 if (asprintf(&name, "%c#%s%s%s", prefix, quote, cache->fqn, quote) < 0) in get_type_name()
317 error("asprintf failed for '%s'", cache->fqn); in get_type_name()
[all …]
DMakefile5 gendwarfksyms-objs += cache.o
/scripts/gdb/linux/
Dslab.py46 def for_each_object(cache, addr, slab_objects): argument
48 if cache['flags'] & SLAB_RED_ZONE:
49 p += int(cache['red_left_pad'])
50 while p < addr + (slab_objects * cache['size']):
52 p = p + int(cache['size'])
54 def get_info_end(cache): argument
55 if (cache['offset'] >= cache['inuse']):
56 return cache['inuse'] + gdb.lookup_type("void").pointer().sizeof
58 return cache['inuse']
60 def get_orig_size(cache, obj): argument
[all …]
/scripts/
Ddecode_stacktrace.sh78 declare -A cache 2>/dev/null
165 local base_addr=${cache[$module,$name]}
173 cache[$module,$name]="$base_addr"
191 local code=${cache[$module,$address]}
195 cache[$module,$address]=$code
Dleaking_addresses.pl700 my ($cache, $key, $value) = @_;
702 if (!$cache->{$key}) {
703 $cache->{$key} = ();
705 push @{$cache->{$key}}, $value;
Dspelling.txt305 chache||cache
/scripts/kconfig/
DMakefile124 -o cache_dir=$(abspath $(obj)/tests/.cache) \
126 clean-files += tests/.cache