Lines Matching refs:bucket
214 struct stack_map_bucket *bucket, *new_bucket, *old_bucket; in __bpf_get_stackid() local
230 bucket = READ_ONCE(smap->buckets[id]); in __bpf_get_stackid()
232 hash_matches = bucket && bucket->hash == hash; in __bpf_get_stackid()
248 if (hash_matches && bucket->nr == trace_nr && in __bpf_get_stackid()
249 memcmp(bucket->data, new_bucket->data, trace_len) == 0) { in __bpf_get_stackid()
253 if (bucket && !(flags & BPF_F_REUSE_STACKID)) { in __bpf_get_stackid()
258 if (hash_matches && bucket->nr == trace_nr && in __bpf_get_stackid()
259 memcmp(bucket->data, ips, trace_len) == 0) in __bpf_get_stackid()
261 if (bucket && !(flags & BPF_F_REUSE_STACKID)) in __bpf_get_stackid()
578 struct stack_map_bucket *bucket, *old_bucket; in bpf_stackmap_copy() local
584 bucket = xchg(&smap->buckets[id], NULL); in bpf_stackmap_copy()
585 if (!bucket) in bpf_stackmap_copy()
588 trace_len = bucket->nr * stack_map_data_size(map); in bpf_stackmap_copy()
589 memcpy(value, bucket->data, trace_len); in bpf_stackmap_copy()
592 old_bucket = xchg(&smap->buckets[id], bucket); in bpf_stackmap_copy()