Lines Matching refs:bucket
343 struct stack_map_bucket *bucket, *new_bucket, *old_bucket; in BPF_CALL_3() local
379 bucket = READ_ONCE(smap->buckets[id]); in BPF_CALL_3()
381 hash_matches = bucket && bucket->hash == hash; in BPF_CALL_3()
397 if (hash_matches && bucket->nr == trace_nr && in BPF_CALL_3()
398 memcmp(bucket->data, new_bucket->data, trace_len) == 0) { in BPF_CALL_3()
402 if (bucket && !(flags & BPF_F_REUSE_STACKID)) { in BPF_CALL_3()
407 if (hash_matches && bucket->nr == trace_nr && in BPF_CALL_3()
408 memcmp(bucket->data, ips, trace_len) == 0) in BPF_CALL_3()
410 if (bucket && !(flags & BPF_F_REUSE_STACKID)) in BPF_CALL_3()
515 struct stack_map_bucket *bucket, *old_bucket; in bpf_stackmap_copy() local
521 bucket = xchg(&smap->buckets[id], NULL); in bpf_stackmap_copy()
522 if (!bucket) in bpf_stackmap_copy()
525 trace_len = bucket->nr * stack_map_data_size(map); in bpf_stackmap_copy()
526 memcpy(value, bucket->data, trace_len); in bpf_stackmap_copy()
529 old_bucket = xchg(&smap->buckets[id], bucket); in bpf_stackmap_copy()