Searched refs:buckets (Results 1 – 7 of 7) sorted by relevance
/kernel/bpf/ |
D | bpf_local_storage.c | 21 return &smap->buckets[hash_ptr(selem, smap->bucket_log)]; in select_bucket() 510 b = &smap->buckets[i]; in bpf_local_storage_map_free() 545 kvfree(smap->buckets); in bpf_local_storage_map_free() 584 smap->buckets = kvcalloc(sizeof(*smap->buckets), nbuckets, in bpf_local_storage_map_alloc() 586 if (!smap->buckets) { in bpf_local_storage_map_alloc() 592 INIT_HLIST_HEAD(&smap->buckets[i].list); in bpf_local_storage_map_alloc() 593 raw_spin_lock_init(&smap->buckets[i].lock); in bpf_local_storage_map_alloc()
|
D | stackmap.c | 31 struct stack_map_bucket *buckets[]; member 277 bucket = READ_ONCE(smap->buckets[id]); in __bpf_get_stackid() 321 old_bucket = xchg(&smap->buckets[id], new_bucket); in __bpf_get_stackid() 631 bucket = xchg(&smap->buckets[id], NULL); in bpf_stackmap_copy() 639 old_bucket = xchg(&smap->buckets[id], bucket); in bpf_stackmap_copy() 658 if (id >= smap->n_buckets || !smap->buckets[id]) in stack_map_get_next_key() 664 while (id < smap->n_buckets && !smap->buckets[id]) in stack_map_get_next_key() 690 old_bucket = xchg(&smap->buckets[id], NULL); in stack_map_delete_elem()
|
D | hashtab.c | 94 struct bucket *buckets; member 145 INIT_HLIST_NULLS_HEAD(&htab->buckets[i].head, i); in htab_init_buckets() 147 raw_spin_lock_init(&htab->buckets[i].raw_lock); in htab_init_buckets() 148 lockdep_set_class(&htab->buckets[i].raw_lock, in htab_init_buckets() 151 spin_lock_init(&htab->buckets[i].lock); in htab_init_buckets() 152 lockdep_set_class(&htab->buckets[i].lock, in htab_init_buckets() 524 htab->buckets = bpf_map_area_alloc(htab->n_buckets * in htab_map_alloc() 527 if (!htab->buckets) in htab_map_alloc() 568 bpf_map_area_free(htab->buckets); in htab_map_alloc() 582 return &htab->buckets[hash & (htab->n_buckets - 1)]; in __select_bucket() [all …]
|
/kernel/trace/ |
D | trace_events_hist.c | 131 unsigned long buckets; member 251 unsigned long buckets = hist_field->buckets; in hist_field_bucket() local 255 if (WARN_ON_ONCE(!buckets)) in hist_field_bucket() 259 val = div64_ul(val, buckets); in hist_field_bucket() 261 val = (u64)((unsigned long)val / buckets); in hist_field_bucket() 262 return val * buckets; in hist_field_bucket() 2216 char *field_str, unsigned long *flags, unsigned long *buckets) in parse_field() argument 2257 ret = kstrtoul(modifier, 0, buckets); in parse_field() 2258 if (ret || !(*buckets)) in parse_field() 2354 unsigned long buckets = 0; in parse_atom() local [all …]
|
D | ftrace.c | 1035 .buckets = (struct hlist_head *)empty_buckets, 1121 hhd = &hash->buckets[key]; in __ftrace_lookup_ip() 1156 hhd = &hash->buckets[key]; in __add_hash_entry() 1204 hhd = &hash->buckets[i]; in ftrace_hash_clear() 1238 kfree(hash->buckets); in free_ftrace_hash() 1274 hash->buckets = kcalloc(size, sizeof(*hash->buckets), GFP_KERNEL); in alloc_ftrace_hash() 1276 if (!hash->buckets) { in alloc_ftrace_hash() 1338 hlist_for_each_entry(entry, &hash->buckets[i], hlist) { in alloc_and_copy_ftrace_hash() 1389 hhd = &src->buckets[i]; in dup_hash() 3326 hhd = &hash->buckets[iter->pidx]; in t_probe_next() [all …]
|
D | trace.h | 811 struct hlist_head *buckets; member
|
D | Kconfig | 1042 display the internals of map buckets or variable values of
|