Lines Matching refs:bucket
350 struct stack_map_bucket *bucket, *new_bucket, *old_bucket; in BPF_CALL_3() local
386 bucket = READ_ONCE(smap->buckets[id]); in BPF_CALL_3()
388 hash_matches = bucket && bucket->hash == hash; in BPF_CALL_3()
404 if (hash_matches && bucket->nr == trace_nr && in BPF_CALL_3()
405 memcmp(bucket->data, new_bucket->data, trace_len) == 0) { in BPF_CALL_3()
409 if (bucket && !(flags & BPF_F_REUSE_STACKID)) { in BPF_CALL_3()
414 if (hash_matches && bucket->nr == trace_nr && in BPF_CALL_3()
415 memcmp(bucket->data, ips, trace_len) == 0) in BPF_CALL_3()
417 if (bucket && !(flags & BPF_F_REUSE_STACKID)) in BPF_CALL_3()
522 struct stack_map_bucket *bucket, *old_bucket; in bpf_stackmap_copy() local
528 bucket = xchg(&smap->buckets[id], NULL); in bpf_stackmap_copy()
529 if (!bucket) in bpf_stackmap_copy()
532 trace_len = bucket->nr * stack_map_data_size(map); in bpf_stackmap_copy()
533 memcpy(value, bucket->data, trace_len); in bpf_stackmap_copy()
536 old_bucket = xchg(&smap->buckets[id], bucket); in bpf_stackmap_copy()