Searched refs:ins (Results 1 – 11 of 11) sorted by relevance
| /dpdk/lib/bpf/ |
| H A D | bpf_exec.c | 15 #define BPF_JMP_UNC(ins) ((ins) += (ins)->off) argument 18 ((ins) += \ 23 ((ins) += \ 24 ((type)(reg)[(ins)->dst_reg] op (type)(ins)->imm) ? \ 31 ((reg)[(ins)->dst_reg] = (type)(reg)[(ins)->src_reg]) 38 ((reg)[(ins)->dst_reg] = (type)(ins)->imm) 42 (type)(reg)[(ins)->dst_reg] op (type)(ins)->imm) 49 (uintptr_t)(ins) - (uintptr_t)(bpf)->prm.ins); \ 83 uint32_t ofs = reg[ins->src_reg] + (ins)->imm; \ 151 for (ins = bpf->prm.ins; ; ins++) { in bpf_exec() [all …]
|
| H A D | bpf_dump.c | 72 ins->dst_reg, ins->imm); in rte_bpf_dump() 87 ins->dst_reg, ins->imm); in rte_bpf_dump() 90 ins->dst_reg, ins->imm); in rte_bpf_dump() 93 ins->dst_reg, ins->src_reg, ins->imm); in rte_bpf_dump() 96 ins->code); in rte_bpf_dump() 102 ins->src_reg, ins->off); in rte_bpf_dump() 109 ins->dst_reg, ins->off, ins->imm); in rte_bpf_dump() 112 ins->code); in rte_bpf_dump() 118 ins->dst_reg, ins->off, ins->src_reg); in rte_bpf_dump() 131 ins->imm, L(i, ins->off)); in rte_bpf_dump() [all …]
|
| H A D | bpf_load_elf.c | 63 if (ofs % sizeof(ins[0]) != 0 || ofs >= ins_sz) in resolve_xsym() 66 idx = ofs / sizeof(ins[0]); in resolve_xsym() 67 if (ins[idx].code == (BPF_JMP | EBPF_CALL)) in resolve_xsym() 70 ofs < ins_sz - sizeof(ins[idx])) in resolve_xsym() 86 if (ins[idx].src_reg == EBPF_PSEUDO_CALL) { in resolve_xsym() 90 ins[idx].src_reg = EBPF_REG_0; in resolve_xsym() 92 ins[idx].imm = fidx; in resolve_xsym() 95 ins[idx].imm = (uintptr_t)prm->xsym[fidx].var.val; in resolve_xsym() 96 ins[idx + 1].imm = in resolve_xsym() 217 rc = resolve_xsym(sn, ofs, ins, ins_sz, prm); in process_reloc() [all …]
|
| H A D | bpf_validate.c | 113 if (ins->imm != 16 && ins->imm != 32 && ins->imm != 64) in check_alu_bele() 121 RTE_SET_USED(ins); in eval_exit() 185 val = (uint32_t)ins[0].imm | (uint64_t)(uint32_t)ins[1].imm << 32; in eval_ld_imm64() 663 ins->src_reg == ins->dst_reg) { in eval_alu() 979 idx = ins->imm; in eval_call() 1740 op = ins->code; in check_syntax() 1751 off = ins->off; in check_syntax() 1925 ins = bvf->prm->ins + i; in log_unreachable() 1976 ins = bvf->prm->ins + i; in validate() 2198 ins->dst_reg, in log_eval_state() [all …]
|
| H A D | bpf_jit_x86.c | 111 uint8_t *ins; member 138 if (st->ins != NULL) { in emit_bytes() 140 st->ins[st->sz + i] = ins[i]; in emit_bytes() 1285 const struct ebpf_insn *ins; in emit() local 1299 ins = bpf->prm.ins + i; in emit() 1303 op = ins->code; in emit() 1407 emit_ld_imm64(st, dr, ins[0].imm, ins[1].imm); in emit() 1430 emit_st_imm(st, op, dr, ins->imm, ins->off); in emit() 1453 emit_jcc_imm(st, op, dr, ins->imm, ins->off + 1); in emit() 1525 if (st.ins == MAP_FAILED) in bpf_jit_x86() [all …]
|
| H A D | bpf_jit_arm64.c | 87 return (ctx->ins == NULL); in is_first_pass() 221 if (ctx->ins) in emit_insn() 1095 const struct ebpf_insn *ins; in check_program_has_call() local 1100 ins = bpf->prm.ins + i; in check_program_has_call() 1101 op = ins->code; in check_program_has_call() 1140 ins = bpf->prm.ins + i; in emit() 1141 op = ins->code; in emit() 1142 off = ins->off; in emit() 1143 imm = ins->imm; in emit() 1438 __builtin___clear_cache((char *)ctx.ins, (char *)(ctx.ins + ctx.idx)); in bpf_jit_arm64() [all …]
|
| H A D | bpf_load.c | 23 insz = prm->nb_ins * sizeof(prm->ins[0]); in bpf_load() 38 memcpy(buf + bsz + xsz, prm->ins, insz); in bpf_load() 41 bpf->prm.ins = (void *)(buf + bsz + xsz); in bpf_load() 88 if (prm == NULL || prm->ins == NULL || in rte_bpf_load()
|
| H A D | rte_bpf.h | 91 const struct ebpf_insn *ins; /**< array of eBPF instructions */ member
|
| H A D | bpf_convert.c | 567 prm->ins = ebpf; in rte_bpf_convert()
|
| /dpdk/app/test/ |
| H A D | test_bpf.c | 2924 .ins = test_load1_prog, 2952 .ins = test_mul1_prog, 2980 .ins = test_jump1_prog, 2994 .ins = test_jump2_prog, 3008 .ins = test_alu1_prog, 3022 .ins = test_bele1_prog, 3036 .ins = test_xadd1_prog, 3050 .ins = test_div1_prog, 3064 .ins = test_call1_prog, 3082 .ins = test_call2_prog, [all …]
|
| /dpdk/app/dumpcap/ |
| H A D | main.c | 295 rte_bpf_dump(stdout, bpf_prm->ins, bpf_prm->nb_ins); in compile_filter()
|