Searched refs:BPF_F_LOCK (Results 1 – 11 of 11) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | htab_reuse.c | 31 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 D | map_lock.c | 27 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 D | bloom_filter_map.c | 52 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 D | sk_storage_map.c | 481 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 D | bpf_local_storage.c | 463 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 D | local_storage.c | 150 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 D | hashtab.c | 1084 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 D | syscall.c | 254 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 D | arraymap.c | 320 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 D | bpf.h | 1283 BPF_F_LOCK = 4, /* spin_lock-ed map_lookup/map_update */ enumerator
|
/openbmc/linux/include/uapi/linux/ |
H A D | bpf.h | 1283 BPF_F_LOCK = 4, /* spin_lock-ed map_lookup/map_update */ enumerator
|