Lines Matching refs:bucket
263 struct stack_map_bucket *bucket, *new_bucket, *old_bucket; in __bpf_get_stackid() local
287 bucket = READ_ONCE(smap->buckets[id]); in __bpf_get_stackid()
289 hash_matches = bucket && bucket->hash == hash; in __bpf_get_stackid()
305 if (hash_matches && bucket->nr == trace_nr && in __bpf_get_stackid()
306 memcmp(bucket->data, new_bucket->data, trace_len) == 0) { in __bpf_get_stackid()
310 if (bucket && !(flags & BPF_F_REUSE_STACKID)) { in __bpf_get_stackid()
315 if (hash_matches && bucket->nr == trace_nr && in __bpf_get_stackid()
316 memcmp(bucket->data, ips, trace_len) == 0) in __bpf_get_stackid()
318 if (bucket && !(flags & BPF_F_REUSE_STACKID)) in __bpf_get_stackid()
624 struct stack_map_bucket *bucket, *old_bucket; in bpf_stackmap_copy() local
630 bucket = xchg(&smap->buckets[id], NULL); in bpf_stackmap_copy()
631 if (!bucket) in bpf_stackmap_copy()
634 trace_len = bucket->nr * stack_map_data_size(map); in bpf_stackmap_copy()
635 memcpy(value, bucket->data, trace_len); in bpf_stackmap_copy()
638 old_bucket = xchg(&smap->buckets[id], bucket); in bpf_stackmap_copy()