Searched refs:buckets (Results 1 – 4 of 4) sorted by relevance
/kernel/bpf/ |
D | stackmap.c | 30 struct stack_map_bucket *buckets[]; member 393 bucket = READ_ONCE(smap->buckets[id]); in BPF_CALL_3() 437 old_bucket = xchg(&smap->buckets[id], new_bucket); in BPF_CALL_3() 535 bucket = xchg(&smap->buckets[id], NULL); in bpf_stackmap_copy() 543 old_bucket = xchg(&smap->buckets[id], bucket); in bpf_stackmap_copy() 562 if (id >= smap->n_buckets || !smap->buckets[id]) in stack_map_get_next_key() 568 while (id < smap->n_buckets && !smap->buckets[id]) in stack_map_get_next_key() 594 old_bucket = xchg(&smap->buckets[id], NULL); in stack_map_delete_elem()
|
D | hashtab.c | 27 struct bucket *buckets; member 365 htab->buckets = bpf_map_area_alloc(htab->n_buckets * in htab_map_alloc() 368 if (!htab->buckets) in htab_map_alloc() 377 INIT_HLIST_NULLS_HEAD(&htab->buckets[i].head, i); in htab_map_alloc() 378 raw_spin_lock_init(&htab->buckets[i].lock); in htab_map_alloc() 401 bpf_map_area_free(htab->buckets); in htab_map_alloc() 416 return &htab->buckets[hash & (htab->n_buckets - 1)]; in __select_bucket() 1238 bpf_map_area_free(htab->buckets); in htab_map_free()
|
/kernel/trace/ |
D | ftrace.c | 1043 .buckets = (struct hlist_head *)empty_buckets, 1133 hhd = &hash->buckets[key]; in __ftrace_lookup_ip() 1168 hhd = &hash->buckets[key]; in __add_hash_entry() 1216 hhd = &hash->buckets[i]; in ftrace_hash_clear() 1250 kfree(hash->buckets); in free_ftrace_hash() 1286 hash->buckets = kcalloc(size, sizeof(*hash->buckets), GFP_KERNEL); in alloc_ftrace_hash() 1288 if (!hash->buckets) { in alloc_ftrace_hash() 1350 hlist_for_each_entry(entry, &hash->buckets[i], hlist) { in alloc_and_copy_ftrace_hash() 1409 hhd = &src->buckets[i]; in __ftrace_hash_move() 3171 hhd = &hash->buckets[iter->pidx]; in t_probe_next() [all …]
|
D | trace.h | 881 struct hlist_head *buckets; member
|