Home
last modified time | relevance | path

Searched refs:BPF_F_RDONLY_PROG (Results 1 – 12 of 12) sorted by relevance

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_mmap.c12 __uint(map_flags, BPF_F_MMAPABLE | BPF_F_RDONLY_PROG);
H A Dverifier_array_access.c20 __uint(map_flags, BPF_F_RDONLY_PROG);
/openbmc/linux/include/linux/
H A Dbpf.h1780 BPF_F_RDONLY_PROG | \
1794 u32 access_flags = map->map_flags & (BPF_F_RDONLY_PROG | BPF_F_WRONLY_PROG); in bpf_map_flags_to_cap()
1799 if (access_flags & BPF_F_RDONLY_PROG) in bpf_map_flags_to_cap()
1809 return (access_flags & (BPF_F_RDONLY_PROG | BPF_F_WRONLY_PROG)) != in bpf_map_flags_access_ok()
1810 (BPF_F_RDONLY_PROG | BPF_F_WRONLY_PROG); in bpf_map_flags_access_ok()
/openbmc/linux/kernel/bpf/
H A Ddevmap.c127 attr->map_flags |= BPF_F_RDONLY_PROG; in dev_map_init_map()
H A Darraymap.c802 if (attr->map_flags & (BPF_F_RDONLY_PROG | BPF_F_WRONLY_PROG)) in fd_array_map_alloc_check()
H A Dsyscall.c905 if (map->map_flags & BPF_F_RDONLY_PROG) { in bpf_map_mmap()
1047 if (map->map_flags & (BPF_F_RDONLY_PROG | BPF_F_WRONLY_PROG)) { in map_check_btf()
H A Dverifier.c6238 return (map->map_flags & BPF_F_RDONLY_PROG) && in bpf_map_is_rdonly()
9775 if ((map->map_flags & BPF_F_RDONLY_PROG) && in record_func_map()
/openbmc/linux/tools/bpf/bpftool/
H A Dgen.c768 if (bpf_map__map_flags(map) & BPF_F_RDONLY_PROG) in gen_trace()
/openbmc/linux/tools/include/uapi/linux/
H A Dbpf.h1310 BPF_F_RDONLY_PROG = (1U << 7), enumerator
/openbmc/linux/include/uapi/linux/
H A Dbpf.h1310 BPF_F_RDONLY_PROG = (1U << 7), enumerator
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_verifier.c1163 BPF_F_RDONLY_PROG); in do_test_fixup()
/openbmc/linux/tools/lib/bpf/
H A Dlibbpf.c1665 ? BPF_F_RDONLY_PROG : 0; in bpf_object__init_internal_map()
13134 if (map->def.map_flags & BPF_F_RDONLY_PROG) in bpf_object__load_skeleton()