Home
last modified time | relevance | path

Searched refs:BPF_F_LOCK (Results 1 – 11 of 11) sorted by relevance

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dhtab_reuse.c31 bpf_map_lookup_elem_flags(ctx->fd, &key, &value, BPF_F_LOCK); in htab_lookup_fn()
49 bpf_map_update_elem(ctx->fd, &key, &value, BPF_F_LOCK); in htab_update_fn()
55 bpf_map_update_elem(ctx->fd, &key, &value, BPF_F_LOCK); in htab_update_fn()
H A Dmap_lock.c27 err = bpf_map_lookup_elem_flags(map_fd, &key, vars, BPF_F_LOCK); in parallel_map_access()
71 bpf_map_update_elem(map_fd[0], &key, vars, BPF_F_LOCK); in test_map_lock()
H A Dbloom_filter_map.c52 err = bpf_map_update_elem(fd, NULL, &value, BPF_F_LOCK); in test_fail_cases()
/openbmc/linux/tools/testing/selftests/bpf/map_tests/
H A Dsk_storage_map.c481 BPF_NOEXIST | BPF_F_LOCK); in test_sk_storage_map_basic()
485 BPF_F_LOCK); in test_sk_storage_map_basic()
495 BPF_EXIST | BPF_F_LOCK); in test_sk_storage_map_basic()
499 BPF_F_LOCK); in test_sk_storage_map_basic()
512 BPF_F_LOCK); in test_sk_storage_map_basic()
522 BPF_NOEXIST | BPF_F_LOCK); in test_sk_storage_map_basic()
531 BPF_F_LOCK); in test_sk_storage_map_basic()
544 BPF_F_LOCK); in test_sk_storage_map_basic()
555 BPF_F_LOCK); in test_sk_storage_map_basic()
/openbmc/linux/kernel/bpf/
H A Dbpf_local_storage.c463 if (old_sdata && (map_flags & ~BPF_F_LOCK) == BPF_NOEXIST) in check_flags()
467 if (!old_sdata && (map_flags & ~BPF_F_LOCK) == BPF_EXIST) in check_flags()
562 if (unlikely((map_flags & ~BPF_F_LOCK) > BPF_EXIST) || in bpf_local_storage_update()
564 unlikely((map_flags & BPF_F_LOCK) && in bpf_local_storage_update()
568 if (gfp_flags == GFP_KERNEL && (map_flags & ~BPF_F_LOCK) != BPF_NOEXIST) in bpf_local_storage_update()
593 if ((map_flags & BPF_F_LOCK) && !(map_flags & BPF_NOEXIST)) { in bpf_local_storage_update()
635 if (old_sdata && (map_flags & BPF_F_LOCK)) { in bpf_local_storage_update()
H A Dlocal_storage.c150 if (unlikely(flags & ~(BPF_F_LOCK | BPF_EXIST))) in cgroup_storage_update_elem()
153 if (unlikely((flags & BPF_F_LOCK) && in cgroup_storage_update_elem()
162 if (flags & BPF_F_LOCK) { in cgroup_storage_update_elem()
H A Dhashtab.c1084 if (l_old && (map_flags & ~BPF_F_LOCK) == BPF_NOEXIST) in check_flags()
1088 if (!l_old && (map_flags & ~BPF_F_LOCK) == BPF_EXIST) in check_flags()
1107 if (unlikely((map_flags & ~BPF_F_LOCK) > BPF_EXIST)) in htab_map_update_elem()
1121 if (unlikely(map_flags & BPF_F_LOCK)) { in htab_map_update_elem()
1153 if (unlikely(l_old && (map_flags & BPF_F_LOCK))) { in htab_map_update_elem()
1627 if (flags & BPF_F_LOCK) in __htab_map_lookup_and_delete_elem()
1706 if ((elem_map_flags & ~BPF_F_LOCK) || in __htab_map_lookup_and_delete_batch()
1707 ((elem_map_flags & BPF_F_LOCK) && !btf_record_has_field(map->record, BPF_SPIN_LOCK))) in __htab_map_lookup_and_delete_batch()
1830 if (elem_map_flags & BPF_F_LOCK) in __htab_map_lookup_and_delete_batch()
H A Dsyscall.c254 if (flags & BPF_F_LOCK) in bpf_map_copy_value()
1448 if (attr->flags & ~BPF_F_LOCK) in map_lookup_elem()
1460 if ((attr->flags & BPF_F_LOCK) && in map_lookup_elem()
1533 if ((attr->flags & BPF_F_LOCK) && in map_update_elem()
1693 if (attr->batch.elem_flags & ~BPF_F_LOCK) in generic_map_delete_batch()
1696 if ((attr->batch.elem_flags & BPF_F_LOCK) && in generic_map_delete_batch()
1751 if (attr->batch.elem_flags & ~BPF_F_LOCK) in generic_map_update_batch()
1754 if ((attr->batch.elem_flags & BPF_F_LOCK) && in generic_map_update_batch()
1815 if (attr->batch.elem_flags & ~BPF_F_LOCK) in generic_map_lookup_batch()
1919 if (attr->flags & ~BPF_F_LOCK) in map_lookup_and_delete_elem()
[all …]
H A Darraymap.c320 if (unlikely((map_flags & ~BPF_F_LOCK) > BPF_EXIST)) in array_map_update_elem()
332 if (unlikely((map_flags & BPF_F_LOCK) && in array_map_update_elem()
343 if (map_flags & BPF_F_LOCK) in array_map_update_elem()
/openbmc/linux/tools/include/uapi/linux/
H A Dbpf.h1283 BPF_F_LOCK = 4, /* spin_lock-ed map_lookup/map_update */ enumerator
/openbmc/linux/include/uapi/linux/
H A Dbpf.h1283 BPF_F_LOCK = 4, /* spin_lock-ed map_lookup/map_update */ enumerator