/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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() 74 struct bpf_insn *prog; in prog_load() 116 insns_cnt /= sizeof(struct bpf_insn); in prog_load()
|
D | sock_example.c | 47 struct bpf_insn prog[] = { in test_sock() 61 size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); in test_sock()
|
D | bpf_load.c | 76 static int load_and_attach(const char *event, struct bpf_insn *prog, int size) in load_and_attach() 90 size_t insns_cnt = size / sizeof(struct bpf_insn); in load_and_attach() 340 GElf_Shdr *shdr, struct bpf_insn *insn, in parse_relo_and_apply() 356 insn_idx = rel.r_offset / sizeof(struct bpf_insn); in parse_relo_and_apply() 607 struct bpf_insn *insns; in do_load_bpf_file() 618 insns = (struct bpf_insn *) data_prog->d_buf; in do_load_bpf_file()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/include/linux/ |
D | filter.h | 94 ((struct bpf_insn) { \ 102 ((struct bpf_insn) { \ 112 ((struct bpf_insn) { \ 120 ((struct bpf_insn) { \ 130 ((struct bpf_insn) { \ 140 ((struct bpf_insn) { \ 148 ((struct bpf_insn) { \ 158 ((struct bpf_insn) { \ 166 ((struct bpf_insn) { \ 175 ((struct bpf_insn) { \ [all …]
|
D | bpf.h | 86 int (*map_gen_lookup)(struct bpf_map *map, struct bpf_insn *insn_buf); 509 int (*gen_prologue)(struct bpf_insn *insn, bool direct_write, 511 int (*gen_ld_abs)(const struct bpf_insn *orig, 512 struct bpf_insn *insn_buf); 514 const struct bpf_insn *src, 515 struct bpf_insn *dst, 530 struct bpf_insn *insn); 716 const struct bpf_insn *insnsi, in bpf_dispatcher_nop_func() argument 718 const struct bpf_insn *)) in bpf_dispatcher_nop_func() 745 const struct bpf_insn *insnsi, \ [all …]
|
/kernel/linux/linux-5.10/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 | 141 const struct bpf_insn *insn) in print_call_pcrel() 170 const struct bpf_insn *insn) in print_call() 188 const struct bpf_insn *insn, in print_imm() 216 struct bpf_insn *insn = buf; in dump_xlated_json() 301 struct bpf_insn *insn = buf; in dump_xlated_plain() 363 struct bpf_insn *insn_start = buf_start; in dump_xlated_for_graph() 364 struct bpf_insn *insn_end = buf_end; in dump_xlated_for_graph() 365 struct bpf_insn *cur = insn_start; in dump_xlated_for_graph()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
D | raw_tp_writable_test_run.c | 11 const struct bpf_insn trace_program[] = { in test_raw_tp_writable_test_run() 23 .insns_cnt = sizeof(trace_program) / sizeof(struct bpf_insn), in test_raw_tp_writable_test_run() 32 const struct bpf_insn skb_program[] = { in test_raw_tp_writable_test_run() 41 .insns_cnt = sizeof(skb_program) / sizeof(struct bpf_insn), in test_raw_tp_writable_test_run()
|
D | fexit_stress.c | 18 const struct bpf_insn trace_program[] = { in test_fexit_stress() 27 .insns_cnt = sizeof(trace_program) / sizeof(struct bpf_insn), in test_fexit_stress() 31 const struct bpf_insn skb_program[] = { in test_fexit_stress() 40 .insns_cnt = sizeof(skb_program) / sizeof(struct bpf_insn), in test_fexit_stress()
|
D | raw_tp_writable_reject_nbd_invalid.c | 12 const struct bpf_insn program[] = { in test_raw_tp_writable_reject_nbd_invalid() 25 .insns_cnt = sizeof(program) / sizeof(struct bpf_insn), in test_raw_tp_writable_reject_nbd_invalid()
|
D | cgroup_attach_autodetach.c | 13 struct bpf_insn prog[] = { in prog_load() 17 size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); in prog_load()
|
D | cgroup_attach_override.c | 15 struct bpf_insn prog[] = { in prog_load() 19 size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); in prog_load()
|
/kernel/linux/linux-5.10/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() 37 const struct bpf_insn *insn, in __func_imm_name() 109 const struct bpf_insn *insn) in print_bpf_end_insn() 118 const struct bpf_insn *insn, in print_bpf_insn()
|
D | core.c | 279 struct bpf_insn *dst; in bpf_prog_calc_tag() 345 static int bpf_adj_delta_to_imm(struct bpf_insn *insn, u32 pos, s32 end_old, in bpf_adj_delta_to_imm() 363 static int bpf_adj_delta_to_off(struct bpf_insn *insn, u32 pos, s32 end_old, in bpf_adj_delta_to_off() 385 struct bpf_insn *insn = prog->insnsi; in bpf_adj_branches() 442 const struct bpf_insn *patch, u32 len) in bpf_patch_insn_single() 508 sizeof(struct bpf_insn) * (prog->len - off - cnt)); in bpf_remove_insns() 929 const struct bpf_insn *insn, bool extra_pass, in bpf_jit_get_func_addr() 962 static int bpf_jit_blind_insn(const struct bpf_insn *from, in bpf_jit_blind_insn() 963 const struct bpf_insn *aux, in bpf_jit_blind_insn() 964 struct bpf_insn *to_buff, in bpf_jit_blind_insn() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
D | test_verifier.c | 68 struct bpf_insn insns[MAX_INSNS]; 69 struct bpf_insn *fill_insns; 142 struct bpf_insn *insn = self->fill_insns; in bpf_fill_ld_abs_vlan_push_pop() 185 struct bpf_insn *insn = self->fill_insns; in bpf_fill_jump_around_ld_abs() 207 struct bpf_insn *insn = self->fill_insns; in bpf_fill_rand_ld_dw() 214 struct bpf_insn tmp[2] = { BPF_LD_IMM64(BPF_REG_1, val) }; in bpf_fill_rand_ld_dw() 235 struct bpf_insn *insn = self->fill_insns; in bpf_fill_scale1() 261 struct bpf_insn *insn = self->fill_insns; in bpf_fill_scale2() 360 static int probe_filter_length(const struct bpf_insn *fp) in probe_filter_length() 416 struct bpf_insn prog[] = { in create_prog_dummy_simple() [all …]
|
D | test_sock_addr.c | 642 const struct bpf_insn *insns, size_t insns_cnt) in load_insns() 695 struct bpf_insn insns[] = { in bind4_prog_load() 778 return load_insns(test, insns, sizeof(insns) / sizeof(struct bpf_insn)); in bind4_prog_load() 796 struct bpf_insn insns[] = { in bind6_prog_load() 844 return load_insns(test, insns, sizeof(insns) / sizeof(struct bpf_insn)); in bind6_prog_load() 881 struct bpf_insn insns[] = { in xmsg_ret_only_prog_load() 886 return load_insns(test, insns, sizeof(insns) / sizeof(struct bpf_insn)); in xmsg_ret_only_prog_load() 924 struct bpf_insn insns[] = { in sendmsg4_rw_asm_prog_load() 958 return load_insns(test, insns, sizeof(insns) / sizeof(struct bpf_insn)); in sendmsg4_rw_asm_prog_load() 970 struct bpf_insn insns[] = { in recvmsg4_rw_asm_prog_load() [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()
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/tools/lib/bpf/ |
D | libbpf_probes.c | 68 probe_load(enum bpf_prog_type prog_type, const struct bpf_insn *insns, in probe_load() 131 struct bpf_insn insns[2] = { in bpf_probe_prog_type() 315 struct bpf_insn insns[2] = { in bpf_probe_helper() 347 struct bpf_insn insns[BPF_MAXINSNS + 1]; in bpf_probe_large_insn_limit()
|