Home
last modified time | relevance | path

Searched refs:bpf_size (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.15/include/linux/
Dfilter.h416 int bpf_size = -EINVAL; \
419 bpf_size = BPF_B; \
421 bpf_size = BPF_H; \
423 bpf_size = BPF_W; \
425 bpf_size = BPF_DW; \
427 bpf_size; \
430 #define bpf_size_to_bytes(bpf_size) \ argument
434 if (bpf_size == BPF_B) \
436 else if (bpf_size == BPF_H) \
438 else if (bpf_size == BPF_W) \
[all …]
/Linux-v5.15/net/sched/
Dact_bpf.c189 u16 bpf_size, bpf_num_ops; in tcf_bpf_init_from_ops() local
196 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in tcf_bpf_init_from_ops()
197 if (bpf_size != nla_len(tb[TCA_ACT_BPF_OPS])) in tcf_bpf_init_from_ops()
200 bpf_ops = kmemdup(nla_data(tb[TCA_ACT_BPF_OPS]), bpf_size, GFP_KERNEL); in tcf_bpf_init_from_ops()
Dcls_bpf.c340 u16 bpf_size, bpf_num_ops; in cls_bpf_prog_from_ops() local
347 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in cls_bpf_prog_from_ops()
348 if (bpf_size != nla_len(tb[TCA_BPF_OPS])) in cls_bpf_prog_from_ops()
351 bpf_ops = kmemdup(nla_data(tb[TCA_BPF_OPS]), bpf_size, GFP_KERNEL); in cls_bpf_prog_from_ops()
/Linux-v5.15/arch/x86/net/
Dbpf_jit_comp.c72 static int bpf_size_to_x86_bytes(int bpf_size) in bpf_size_to_x86_bytes() argument
74 if (bpf_size == BPF_W) in bpf_size_to_x86_bytes()
76 else if (bpf_size == BPF_H) in bpf_size_to_x86_bytes()
78 else if (bpf_size == BPF_B) in bpf_size_to_x86_bytes()
80 else if (bpf_size == BPF_DW) in bpf_size_to_x86_bytes()
789 u32 dst_reg, u32 src_reg, s16 off, u8 bpf_size) in emit_atomic() argument
795 maybe_emit_mod(&prog, dst_reg, src_reg, bpf_size == BPF_DW); in emit_atomic()
Dbpf_jit_comp32.c1171 static int bpf_size_to_x86_bytes(int bpf_size) in bpf_size_to_x86_bytes() argument
1173 if (bpf_size == BPF_W) in bpf_size_to_x86_bytes()
1175 else if (bpf_size == BPF_H) in bpf_size_to_x86_bytes()
1177 else if (bpf_size == BPF_B) in bpf_size_to_x86_bytes()
1179 else if (bpf_size == BPF_DW) in bpf_size_to_x86_bytes()
/Linux-v5.15/tools/perf/util/
Ddso.c765 static int bpf_size(struct dso *dso) in bpf_size() function
1036 return bpf_size(dso); in dso__data_file_size()
/Linux-v5.15/kernel/bpf/
Dverifier.c4118 int off, int bpf_size, enum bpf_access_type t, in check_mem_access() argument
4126 size = bpf_size_to_bytes(bpf_size); in check_mem_access()