Searched refs:bpf_insn (Results 51 - 75 of 115) sorted by last modified time

12345

/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dlog_buf.c142 const struct bpf_insn good_prog_insns[] = {
146 const size_t good_prog_insn_cnt = sizeof(good_prog_insns) / sizeof(struct bpf_insn);
147 const struct bpf_insn bad_prog_insns[] = {
150 size_t bad_prog_insn_cnt = sizeof(bad_prog_insns) / sizeof(struct bpf_insn);
H A Dfexit_bpf2bpf.c466 struct bpf_insn insns[] = {
H A Dalign.c15 struct bpf_insn insns[MAX_INSNS];
590 static int probe_filter_length(const struct bpf_insn *fp)
604 struct bpf_insn *prog = test->insns;
H A Dsockopt.c26 const struct bpf_insn insns[64];
933 static int load_prog(const struct bpf_insn *insns,
H A Dmodule_fentry_shadow.c73 const struct bpf_insn trace_program[] = {
103 sizeof(trace_program) / sizeof(struct bpf_insn),
H A Dxdp_dev_bound_only.c10 struct bpf_insn insns[] = { BPF_MOV64_IMM(BPF_REG_0, 0), BPF_EXIT_INSN() };
H A Dunpriv_bpf_disabled.c145 const struct bpf_insn prog_insns[] = {
149 const size_t prog_insn_cnt = sizeof(prog_insns) / sizeof(struct bpf_insn);
H A Dverifier_log.c33 static const struct bpf_insn *insns;
/linux-master/tools/bpf/bpftool/
H A Dfeature.c514 const struct bpf_insn *insns, size_t insns_cnt,
537 struct bpf_insn insns[2] = {
658 struct bpf_insn insns[2] = {
780 probe_misc_feature(struct bpf_insn *insns, size_t len,
810 struct bpf_insn insns[BPF_MAXINSNS + 1];
831 struct bpf_insn insns[4] = {
852 struct bpf_insn insns[4] = {
873 struct bpf_insn insns[4] = {
H A Dxlated_dumper.c148 const struct bpf_insn *insn)
177 const struct bpf_insn *insn)
195 const struct bpf_insn *insn,
229 struct bpf_insn *insn = buf;
314 struct bpf_insn *insn = buf;
380 struct bpf_insn *insn_start = buf_start;
381 struct bpf_insn *insn_end = buf_end;
382 struct bpf_insn *cur = insn_start;
H A Dcommon.c101 struct bpf_insn insns[] = {
/linux-master/lib/
H A Dtest_bpf.c69 struct bpf_insn insns_int[MAX_INSNS];
272 struct bpf_insn *insn;
298 struct bpf_insn *insn;
434 struct bpf_insn *insn;
467 static int __bpf_ld_imm64(struct bpf_insn insns[2], u8 reg, s64 imm64)
469 struct bpf_insn tmp[] = {BPF_LD_IMM64(reg, imm64)};
483 struct bpf_insn *insns;
605 struct bpf_insn *insn;
738 struct bpf_insn *insn;
824 struct bpf_insn*, s6
821 __bpf_fill_pattern(struct bpf_test *self, void *arg, int dbits, int sbits, int block1, int block2, int (*emit)(struct bpf_test*, void*, struct bpf_insn*, s64, s64)) argument
[all...]
/linux-master/arch/powerpc/net/
H A Dbpf_jit_comp64.c368 const struct bpf_insn *insn = fp->insnsi;
952 * 16 byte instruction that uses two 'struct bpf_insn'
H A Dbpf_jit_comp32.c285 const struct bpf_insn *insn = fp->insnsi;
1010 * 16 byte instruction that uses two 'struct bpf_insn'
/linux-master/kernel/bpf/
H A Doffload.c348 struct bpf_insn *insn)
417 const struct bpf_insn *insn)
/linux-master/tools/lib/bpf/
H A Drelo_core.c16 static bool is_ldimm64_insn(struct bpf_insn *insn)
809 /* by default, always check expected value in bpf_insn */
822 /* type ID, embedded in bpf_insn, might change during linking,
970 int insn_idx, struct bpf_insn *insn)
985 static int insn_bpf_size_to_bytes(struct bpf_insn *insn)
1024 int bpf_core_patch_insn(const char *prog_name, struct bpf_insn *insn,
1321 /* bpf_insn's imm value could get out of sync during linking */
H A Dgen_loader.c96 static void emit(struct bpf_gen *gen, struct bpf_insn insn)
104 static void emit2(struct bpf_gen *gen, struct bpf_insn insn1, struct bpf_insn insn2)
672 /* try to copy from existing bpf_insn */
674 move_blob2blob(gen, insn + offsetof(struct bpf_insn, imm), 4,
675 kdesc->insn + offsetof(struct bpf_insn, imm));
676 move_blob2blob(gen, insn + offsetof(struct bpf_insn, off), 2,
677 kdesc->insn + offsetof(struct bpf_insn, off));
697 emit(gen, BPF_ST_MEM(BPF_W, BPF_REG_8, offsetof(struct bpf_insn, imm), 0));
698 emit(gen, BPF_ST_MEM(BPF_H, BPF_REG_8, offsetof(struct bpf_insn, of
[all...]
H A Dbpf_gen_internal.h64 const char *license, struct bpf_insn *insns, size_t insn_cnt,
/linux-master/arch/parisc/net/
H A Dbpf_jit_comp64.c407 static void init_regs(u8 *rd, u8 *rs, const struct bpf_insn *insn,
592 int bpf_jit_emit_insn(const struct bpf_insn *insn, struct hppa_jit_context *ctx,
1001 struct bpf_insn insn1 = insn[1];
H A Dbpf_jit_core.c23 const struct bpf_insn *insn = &prog->insnsi[i];
H A Dbpf_jit_comp32.c1116 int bpf_jit_emit_insn(const struct bpf_insn *insn, struct hppa_jit_context *ctx,
1403 struct bpf_insn insn1 = insn[1];
H A Dbpf_jit.h476 int bpf_jit_emit_insn(const struct bpf_insn *insn, struct hppa_jit_context *ctx,
/linux-master/arch/loongarch/net/
H A Dbpf_jit.h47 static inline int bpf2la_offset(int bpf_insn, int off, const struct jit_ctx *ctx) argument
50 bpf_insn++;
56 return (ctx->offset[bpf_insn + off] - (ctx->offset[bpf_insn] - 1));
/linux-master/net/xdp/
H A Dxskmap.c121 static int xsk_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf)
124 struct bpf_insn *insn = insn_buf;
/linux-master/tools/testing/selftests/bpf/progs/
H A Dnetif_receive_skb.c243 TEST_BTF_C(str, struct bpf_insn, 0,
245 TEST_BTF(str, struct bpf_insn, BTF_F_NONAME, "{1,0x2,0x3,4,5,}",

Completed in 312 milliseconds

12345