/Linux-v6.1/tools/include/linux/ |
D | filter.h | 35 ((struct bpf_insn) { \ 43 ((struct bpf_insn) { \ 53 ((struct bpf_insn) { \ 61 ((struct bpf_insn) { \ 71 ((struct bpf_insn) { \ 81 ((struct bpf_insn) { \ 89 ((struct bpf_insn) { \ 99 ((struct bpf_insn) { \ 107 ((struct bpf_insn) { \ 117 ((struct bpf_insn) { \ [all …]
|
/Linux-v6.1/samples/bpf/ |
D | bpf_insn.h | 6 struct bpf_insn; 11 ((struct bpf_insn) { \ 19 ((struct bpf_insn) { \ 29 ((struct bpf_insn) { \ 37 ((struct bpf_insn) { \ 47 ((struct bpf_insn) { \ 55 ((struct bpf_insn) { \ 65 ((struct bpf_insn) { \ 73 ((struct bpf_insn) { \ 85 ((struct bpf_insn) { \ [all …]
|
D | test_cgrp2_sock.c | 33 struct bpf_insn prog_start[] = { in prog_load() 36 struct bpf_insn prog_end[] = { in prog_load() 42 struct bpf_insn prog_dev[] = { in prog_load() 49 struct bpf_insn prog_mark[] = { in prog_load() 67 struct bpf_insn prog_prio[] = { in prog_load() 78 struct bpf_insn *prog; in prog_load() 120 insns_cnt /= sizeof(struct bpf_insn); in prog_load()
|
/Linux-v6.1/tools/perf/util/ |
D | bpf-prologue.c | 27 struct bpf_insn *begin; 28 struct bpf_insn *end; 29 struct bpf_insn *pos; 39 append_insn(struct bpf_insn new_insn, struct bpf_insn_pos *pos) in append_insn() 325 prologue_relocate(struct bpf_insn_pos *pos, struct bpf_insn *error_code, in prologue_relocate() 326 struct bpf_insn *success_code, struct bpf_insn *user_code) in prologue_relocate() 328 struct bpf_insn *insn; in prologue_relocate() 334 struct bpf_insn *target; in prologue_relocate() 365 struct bpf_insn *new_prog, size_t *new_cnt, in bpf__gen_prologue() 368 struct bpf_insn *success_code = NULL; in bpf__gen_prologue() [all …]
|
D | bpf-prologue.h | 19 struct bpf_insn *new_prog, size_t *new_cnt, 27 struct bpf_insn *new_prog __maybe_unused, in bpf__gen_prologue()
|
/Linux-v6.1/tools/lib/bpf/ |
D | gen_loader.c | 96 static void emit(struct bpf_gen *gen, struct bpf_insn insn) in emit() 104 static void emit2(struct bpf_gen *gen, struct bpf_insn insn1, struct bpf_insn insn2) in emit2() 670 move_blob2blob(gen, insn + offsetof(struct bpf_insn, imm), 4, in emit_relo_kfunc_btf() 671 kdesc->insn + offsetof(struct bpf_insn, imm)); in emit_relo_kfunc_btf() 672 move_blob2blob(gen, insn + offsetof(struct bpf_insn, off), 2, in emit_relo_kfunc_btf() 673 kdesc->insn + offsetof(struct bpf_insn, off)); in emit_relo_kfunc_btf() 693 emit(gen, BPF_ST_MEM(BPF_W, BPF_REG_8, offsetof(struct bpf_insn, imm), 0)); in emit_relo_kfunc_btf() 694 emit(gen, BPF_ST_MEM(BPF_H, BPF_REG_8, offsetof(struct bpf_insn, off), 0)); in emit_relo_kfunc_btf() 698 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_8, BPF_REG_7, offsetof(struct bpf_insn, imm))); in emit_relo_kfunc_btf() 705 emit(gen, BPF_ST_MEM(BPF_H, BPF_REG_8, offsetof(struct bpf_insn, off), 0)); in emit_relo_kfunc_btf() [all …]
|
D | libbpf_probes.c | 21 const struct bpf_insn *insns, size_t insns_cnt, in probe_prog_load() 121 struct bpf_insn insns[] = { in libbpf_probe_bpf_prog_type() 319 struct bpf_insn insns[] = { in libbpf_probe_bpf_helper()
|
/Linux-v6.1/include/linux/ |
D | filter.h | 93 ((struct bpf_insn) { \ 101 ((struct bpf_insn) { \ 111 ((struct bpf_insn) { \ 119 ((struct bpf_insn) { \ 129 ((struct bpf_insn) { \ 139 ((struct bpf_insn) { \ 147 ((struct bpf_insn) { \ 157 ((struct bpf_insn) { \ 165 ((struct bpf_insn) { \ 174 ((struct bpf_insn) { \ [all …]
|
D | bpf.h | 63 const struct bpf_insn *); 106 int (*map_gen_lookup)(struct bpf_map *map, struct bpf_insn *insn_buf); 698 static inline bool bpf_pseudo_func(const struct bpf_insn *insn) in bpf_pseudo_func() 721 int (*gen_prologue)(struct bpf_insn *insn, bool direct_write, 723 int (*gen_ld_abs)(const struct bpf_insn *orig, 724 struct bpf_insn *insn_buf); 726 const struct bpf_insn *src, 727 struct bpf_insn *dst, 743 struct bpf_insn *insn); 965 const struct bpf_insn *insnsi, in bpf_dispatcher_nop_func() [all …]
|
/Linux-v6.1/tools/testing/selftests/bpf/ |
D | test_verifier.c | 92 struct bpf_insn insns[MAX_INSNS]; 93 struct bpf_insn *fill_insns; 105 struct bpf_insn expected_insns[MAX_EXPECTED_INSNS]; 110 struct bpf_insn unexpected_insns[MAX_UNEXPECTED_INSNS]; 198 struct bpf_insn *insn = self->fill_insns; in bpf_fill_ld_abs_vlan_push_pop() 241 struct bpf_insn *insn = self->fill_insns; in bpf_fill_jump_around_ld_abs() 263 struct bpf_insn *insn = self->fill_insns; in bpf_fill_rand_ld_dw() 270 struct bpf_insn tmp[2] = { BPF_LD_IMM64(BPF_REG_1, val) }; in bpf_fill_rand_ld_dw() 291 struct bpf_insn *insn = self->fill_insns; in bpf_fill_scale1() 317 struct bpf_insn *insn = self->fill_insns; in bpf_fill_scale2() [all …]
|
D | test_tag.c | 25 static struct bpf_insn prog[BPF_MAXINSNS]; 42 struct bpf_insn tmp[] = { in bpf_gen_map_prog() 133 insns *= sizeof(struct bpf_insn); in tag_from_alg()
|
D | test_verifier_log.c | 18 static const struct bpf_insn code_sample[] = { 52 attr.insn_cnt = (__u32)(sizeof(code_sample) / sizeof(struct bpf_insn)); in load()
|
/Linux-v6.1/tools/bpf/bpftool/ |
D | cfg.c | 20 struct bpf_insn *start; 21 struct bpf_insn *end; 30 struct bpf_insn *head; 31 struct bpf_insn *tail; 63 static struct func_node *cfg_append_func(struct cfg *cfg, struct bpf_insn *insn) in cfg_append_func() 89 struct bpf_insn *insn) in func_append_bb() 131 static bool cfg_partition_funcs(struct cfg *cfg, struct bpf_insn *cur, in cfg_partition_funcs() 132 struct bpf_insn *end) in cfg_partition_funcs() 167 struct bpf_insn *cur, *end; in func_partition_bb_head() 244 struct bpf_insn *insn) in func_search_bb_with_head() [all …]
|
D | xlated_dumper.c | 142 const struct bpf_insn *insn) in print_call_pcrel() 171 const struct bpf_insn *insn) in print_call() 189 const struct bpf_insn *insn, in print_imm() 223 struct bpf_insn *insn = buf; in dump_xlated_json() 308 struct bpf_insn *insn = buf; in dump_xlated_plain() 370 struct bpf_insn *insn_start = buf_start; in dump_xlated_for_graph() 371 struct bpf_insn *insn_end = buf_end; in dump_xlated_for_graph() 372 struct bpf_insn *cur = insn_start; in dump_xlated_for_graph()
|
D | feature.c | 518 const struct bpf_insn *insns, size_t insns_cnt, in probe_prog_load_ifindex() 541 struct bpf_insn insns[2] = { in probe_prog_type_ifindex() 662 struct bpf_insn insns[2] = { in probe_helper_ifindex() 784 probe_misc_feature(struct bpf_insn *insns, size_t len, in probe_misc_feature() 814 struct bpf_insn insns[BPF_MAXINSNS + 1]; in probe_large_insn_limit() 835 struct bpf_insn insns[4] = { in probe_bounded_loops() 856 struct bpf_insn insns[4] = { in probe_v2_isa_extension() 877 struct bpf_insn insns[4] = { in probe_v3_isa_extension()
|
/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/ |
D | raw_tp_writable_test_run.c | 12 const struct bpf_insn trace_program[] = { in serial_test_raw_tp_writable_test_run() 27 trace_program, sizeof(trace_program) / sizeof(struct bpf_insn), in serial_test_raw_tp_writable_test_run() 33 const struct bpf_insn skb_program[] = { in serial_test_raw_tp_writable_test_run() 44 skb_program, sizeof(skb_program) / sizeof(struct bpf_insn), in serial_test_raw_tp_writable_test_run()
|
D | raw_tp_writable_reject_nbd_invalid.c | 12 const struct bpf_insn program[] = { in test_raw_tp_writable_reject_nbd_invalid() 28 program, sizeof(program) / sizeof(struct bpf_insn), in test_raw_tp_writable_reject_nbd_invalid()
|
D | log_buf.c | 142 const struct bpf_insn good_prog_insns[] = { in bpf_prog_load_log_buf() 146 const size_t good_prog_insn_cnt = sizeof(good_prog_insns) / sizeof(struct bpf_insn); in bpf_prog_load_log_buf() 147 const struct bpf_insn bad_prog_insns[] = { in bpf_prog_load_log_buf() 150 size_t bad_prog_insn_cnt = sizeof(bad_prog_insns) / sizeof(struct bpf_insn); in bpf_prog_load_log_buf()
|
D | fexit_stress.c | 14 const struct bpf_insn trace_program[] = { in serial_test_fexit_stress() 34 sizeof(trace_program) / sizeof(struct bpf_insn), in serial_test_fexit_stress()
|
/Linux-v6.1/kernel/bpf/ |
D | disasm.h | 25 const struct bpf_insn *insn); 27 const struct bpf_insn *insn, 38 const struct bpf_insn *insn,
|
D | disasm.c | 17 const struct bpf_insn *insn, in __func_get_name() 44 const struct bpf_insn *insn, in __func_imm_name() 123 const struct bpf_insn *insn) in print_bpf_end_insn() 132 const struct bpf_insn *insn, in print_bpf_insn()
|
D | core.c | 280 struct bpf_insn *dst; in bpf_prog_calc_tag() 346 static int bpf_adj_delta_to_imm(struct bpf_insn *insn, u32 pos, s32 end_old, in bpf_adj_delta_to_imm() 364 static int bpf_adj_delta_to_off(struct bpf_insn *insn, u32 pos, s32 end_old, in bpf_adj_delta_to_off() 386 struct bpf_insn *insn = prog->insnsi; in bpf_adj_branches() 450 const struct bpf_insn *patch, u32 len) in bpf_patch_insn_single() 516 sizeof(struct bpf_insn) * (prog->len - off - cnt)); in bpf_remove_insns() 1180 const struct bpf_insn *insn, bool extra_pass, in bpf_jit_get_func_addr() 1213 static int bpf_jit_blind_insn(const struct bpf_insn *from, in bpf_jit_blind_insn() 1214 const struct bpf_insn *aux, in bpf_jit_blind_insn() 1215 struct bpf_insn *to_buff, in bpf_jit_blind_insn() [all …]
|
/Linux-v6.1/arch/loongarch/net/ |
D | bpf_jit.h | 45 static inline int bpf2la_offset(int bpf_insn, int off, const struct jit_ctx *ctx) in bpf2la_offset() argument 48 bpf_insn++; in bpf2la_offset() 54 return (ctx->offset[bpf_insn + off] - (ctx->offset[bpf_insn] - 1)); in bpf2la_offset()
|
/Linux-v6.1/drivers/net/ethernet/netronome/nfp/bpf/ |
D | main.h | 301 struct bpf_insn insn; 306 struct bpf_insn *paired_st; 462 struct bpf_insn insn = meta->insn; in is_mbpf_helper_call() 470 struct bpf_insn insn = meta->insn; in is_mbpf_pseudo_call() 571 struct bpf_insn *insn);
|
D | jit.c | 1297 const struct bpf_insn *insn = &meta->insn; in wrp_alu64_imm() 1328 const struct bpf_insn *insn = &meta->insn; in wrp_alu32_imm() 1361 const struct bpf_insn *insn = &meta->insn; in wrp_test_reg() 1402 const struct bpf_insn *insn = &meta->insn; in cmp_imm() 1439 const struct bpf_insn *insn = &meta->insn; in cmp_reg() 1505 const struct bpf_insn *insn = &meta->insn; in wrp_mul() 1838 const struct bpf_insn *insn = &meta->insn; in mov_reg64() 1901 const struct bpf_insn *insn = &meta->insn; in add_reg64() 1915 const struct bpf_insn *insn = &meta->insn; in add_imm64() 1926 const struct bpf_insn *insn = &meta->insn; in sub_reg64() [all …]
|