Lines Matching refs:bucket
217 struct stack_map_bucket *bucket, *new_bucket, *old_bucket; in __bpf_get_stackid() local
233 bucket = READ_ONCE(smap->buckets[id]); in __bpf_get_stackid()
235 hash_matches = bucket && bucket->hash == hash; in __bpf_get_stackid()
251 if (hash_matches && bucket->nr == trace_nr && in __bpf_get_stackid()
252 memcmp(bucket->data, new_bucket->data, trace_len) == 0) { in __bpf_get_stackid()
256 if (bucket && !(flags & BPF_F_REUSE_STACKID)) { in __bpf_get_stackid()
261 if (hash_matches && bucket->nr == trace_nr && in __bpf_get_stackid()
262 memcmp(bucket->data, ips, trace_len) == 0) in __bpf_get_stackid()
264 if (bucket && !(flags & BPF_F_REUSE_STACKID)) in __bpf_get_stackid()
581 struct stack_map_bucket *bucket, *old_bucket; in bpf_stackmap_copy() local
587 bucket = xchg(&smap->buckets[id], NULL); in bpf_stackmap_copy()
588 if (!bucket) in bpf_stackmap_copy()
591 trace_len = bucket->nr * stack_map_data_size(map); in bpf_stackmap_copy()
592 memcpy(value, bucket->data, trace_len); in bpf_stackmap_copy()
595 old_bucket = xchg(&smap->buckets[id], bucket); in bpf_stackmap_copy()