/Linux-v4.19/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-v4.19/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 | test_cgrp2_attach2.c | 45 struct bpf_insn prog[] = { in prog_load() 49 size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); in prog_load() 228 struct bpf_insn prog[] = { in prog_load_cnt() 246 size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); in prog_load_cnt()
|
D | bpf_load.c | 58 static int load_and_attach(const char *event, struct bpf_insn *prog, int size) in load_and_attach() 72 size_t insns_cnt = size / sizeof(struct bpf_insn); in load_and_attach() 324 GElf_Shdr *shdr, struct bpf_insn *insn, in parse_relo_and_apply() 340 insn_idx = rel.r_offset / sizeof(struct bpf_insn); in parse_relo_and_apply() 591 struct bpf_insn *insns; in do_load_bpf_file() 602 insns = (struct bpf_insn *) data_prog->d_buf; in do_load_bpf_file()
|
D | test_cgrp2_attach.c | 44 struct bpf_insn prog[] = { in prog_load() 72 size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); in prog_load()
|
D | fds_example.c | 55 static struct bpf_insn insns[] = { in bpf_prog_create() 59 size_t insns_cnt = sizeof(insns) / sizeof(struct bpf_insn); in bpf_prog_create()
|
/Linux-v4.19/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() 319 prologue_relocate(struct bpf_insn_pos *pos, struct bpf_insn *error_code, in prologue_relocate() 320 struct bpf_insn *success_code, struct bpf_insn *user_code) in prologue_relocate() 322 struct bpf_insn *insn; in prologue_relocate() 328 struct bpf_insn *target; in prologue_relocate() 359 struct bpf_insn *new_prog, size_t *new_cnt, in bpf__gen_prologue() 362 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-v4.19/include/linux/ |
D | filter.h | 85 ((struct bpf_insn) { \ 93 ((struct bpf_insn) { \ 103 ((struct bpf_insn) { \ 111 ((struct bpf_insn) { \ 121 ((struct bpf_insn) { \ 131 ((struct bpf_insn) { \ 139 ((struct bpf_insn) { \ 149 ((struct bpf_insn) { \ 157 ((struct bpf_insn) { \ 169 ((struct bpf_insn) { \ [all …]
|
D | bpf.h | 47 u32 (*map_gen_lookup)(struct bpf_map *map, struct bpf_insn *insn_buf); 248 int (*gen_prologue)(struct bpf_insn *insn, bool direct_write, 250 int (*gen_ld_abs)(const struct bpf_insn *orig, 251 struct bpf_insn *insn_buf); 253 const struct bpf_insn *src, 254 struct bpf_insn *dst, 504 void bpf_patch_call_args(struct bpf_insn *insn, u32 stack_depth);
|
/Linux-v4.19/tools/bpf/bpftool/ |
D | cfg.c | 54 struct bpf_insn *start; 55 struct bpf_insn *end; 64 struct bpf_insn *head; 65 struct bpf_insn *tail; 97 static struct func_node *cfg_append_func(struct cfg *cfg, struct bpf_insn *insn) in cfg_append_func() 123 struct bpf_insn *insn) in func_append_bb() 165 static bool cfg_partition_funcs(struct cfg *cfg, struct bpf_insn *cur, in cfg_partition_funcs() 166 struct bpf_insn *end) in cfg_partition_funcs() 196 struct bpf_insn *cur, *end; in func_partition_bb_head() 273 struct bpf_insn *insn) in func_search_bb_with_head() [all …]
|
D | xlated_dumper.c | 175 const struct bpf_insn *insn) in print_call_pcrel() 204 const struct bpf_insn *insn) in print_call() 222 const struct bpf_insn *insn, in print_imm() 245 struct bpf_insn *insn = buf; in dump_xlated_json() 300 struct bpf_insn *insn = buf; in dump_xlated_plain() 336 struct bpf_insn *insn_start = buf_start; in dump_xlated_for_graph() 337 struct bpf_insn *insn_end = buf_end; in dump_xlated_for_graph() 338 struct bpf_insn *cur = insn_start; in dump_xlated_for_graph()
|
/Linux-v4.19/kernel/bpf/ |
D | disasm.h | 33 const struct bpf_insn *insn); 35 const struct bpf_insn *insn, 46 const struct bpf_insn *insn,
|
D | core.c | 157 struct bpf_insn *dst; in bpf_prog_calc_tag() 222 static int bpf_adj_delta_to_imm(struct bpf_insn *insn, u32 pos, u32 delta, in bpf_adj_delta_to_imm() 239 static int bpf_adj_delta_to_off(struct bpf_insn *insn, u32 pos, u32 delta, in bpf_adj_delta_to_off() 260 struct bpf_insn *insn = prog->insnsi; in bpf_adj_branches() 296 const struct bpf_insn *patch, u32 len) in bpf_patch_insn_single() 634 static int bpf_jit_blind_insn(const struct bpf_insn *from, in bpf_jit_blind_insn() 635 const struct bpf_insn *aux, in bpf_jit_blind_insn() 636 struct bpf_insn *to_buff) in bpf_jit_blind_insn() 638 struct bpf_insn *to = to_buff; in bpf_jit_blind_insn() 768 struct bpf_insn insn_buff[16], aux[2]; in bpf_jit_blind_constants() [all …]
|
D | disasm.c | 25 const struct bpf_insn *insn, in __func_get_name() 45 const struct bpf_insn *insn, in __func_imm_name() 117 const struct bpf_insn *insn) in print_bpf_end_insn() 126 const struct bpf_insn *insn, in print_bpf_insn()
|
/Linux-v4.19/tools/lib/bpf/ |
D | bpf.h | 65 const struct bpf_insn *insns; 76 int bpf_load_program(enum bpf_prog_type type, const struct bpf_insn *insns, 80 int bpf_verify_program(enum bpf_prog_type type, const struct bpf_insn *insns,
|
D | libbpf.h | 133 struct bpf_insn; 169 struct bpf_insn *new_insn_ptr; 189 struct bpf_insn *insns, int insns_cnt,
|
/Linux-v4.19/tools/testing/selftests/bpf/ |
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_sock_addr.c | 520 const struct bpf_insn *insns, size_t insns_cnt) in load_insns() 571 struct bpf_insn insns[] = { in bind4_prog_load() 618 return load_insns(test, insns, sizeof(insns) / sizeof(struct bpf_insn)); in bind4_prog_load() 636 struct bpf_insn insns[] = { in bind6_prog_load() 684 return load_insns(test, insns, sizeof(insns) / sizeof(struct bpf_insn)); in bind6_prog_load() 719 struct bpf_insn insns[] = { in sendmsg_deny_prog_load() 724 return load_insns(test, insns, sizeof(insns) / sizeof(struct bpf_insn)); in sendmsg_deny_prog_load() 742 struct bpf_insn insns[] = { in sendmsg4_rw_asm_prog_load() 776 return load_insns(test, insns, sizeof(insns) / sizeof(struct bpf_insn)); in sendmsg4_rw_asm_prog_load() 800 struct bpf_insn insns[] = { in sendmsg6_rw_dst_asm_prog_load() [all …]
|
D | test_cgroup_storage.c | 17 struct bpf_insn prog[] = { in main() 29 size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); in main()
|
D | test_sock.c | 27 struct bpf_insn insns[MAX_INSNS]; 314 static size_t probe_prog_length(const struct bpf_insn *fp) in probe_prog_length() 324 static int load_sock_prog(const struct bpf_insn *prog, in load_sock_prog()
|
D | test_verifier_log.c | 20 static const struct bpf_insn code_sample[] = { 54 attr.insn_cnt = (__u32)(sizeof(code_sample) / sizeof(struct bpf_insn)); in load()
|
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/bpf/ |
D | jit.c | 1262 const struct bpf_insn *insn = &meta->insn; in wrp_alu64_imm() 1293 const struct bpf_insn *insn = &meta->insn; in wrp_alu32_imm() 1330 const struct bpf_insn *insn = &meta->insn; in wrp_test_reg() 1370 const struct bpf_insn *insn = &meta->insn; in cmp_imm() 1405 const struct bpf_insn *insn = &meta->insn; in cmp_reg() 1470 const struct bpf_insn *insn = &meta->insn; in wrp_mul() 1803 const struct bpf_insn *insn = &meta->insn; in mov_reg64() 1866 const struct bpf_insn *insn = &meta->insn; in add_reg64() 1880 const struct bpf_insn *insn = &meta->insn; in add_imm64() 1891 const struct bpf_insn *insn = &meta->insn; in sub_reg64() [all …]
|