| /linux/tools/include/linux/ |
| H A 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/samples/bpf/ |
| H A 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 …]
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_verifier.c | 86 struct bpf_insn insns[MAX_INSNS]; 87 struct bpf_insn *fill_insns; 99 struct bpf_insn expected_insns[MAX_EXPECTED_INSNS]; 104 struct bpf_insn unexpected_insns[MAX_UNEXPECTED_INSNS]; 192 struct bpf_insn *insn = self->fill_insns; in bpf_fill_ld_abs_vlan_push_pop() 235 struct bpf_insn *insn = self->fill_insns; in bpf_fill_jump_around_ld_abs() 257 struct bpf_insn *insn = self->fill_insns; in bpf_fill_rand_ld_dw() 264 struct bpf_insn tmp[2] = { BPF_LD_IMM64(BPF_REG_1, val) }; in bpf_fill_rand_ld_dw() 285 struct bpf_insn *insn = self->fill_insns; in bpf_fill_scale1() 311 struct bpf_insn *insn = self->fill_insns; in bpf_fill_scale2() [all …]
|
| H A D | disasm_helpers.h | 8 struct bpf_insn; 10 struct bpf_insn *disasm_insn(struct bpf_insn *insn, char *buf, size_t buf_sz);
|
| H A D | disasm.h | 25 const struct bpf_insn *insn); 27 const struct bpf_insn *insn, 38 const struct bpf_insn *insn,
|
| H A D | testing_helpers.h | 19 int bpf_test_load_program(enum bpf_prog_type type, const struct bpf_insn *insns, 55 struct bpf_insn; 59 int get_xlated_program(int fd_prog, struct bpf_insn **buf, __u32 *cnt);
|
| H A D | disasm.c | 17 const struct bpf_insn *insn, in __func_get_name() 44 const struct bpf_insn *insn, in __func_imm_name() 140 const struct bpf_insn *insn) in print_bpf_end_insn() 150 const struct bpf_insn *insn) in print_bpf_bswap_insn() 157 static bool is_sdiv_smod(const struct bpf_insn *insn) in is_sdiv_smod() 163 static bool is_movsx(const struct bpf_insn *insn) in is_movsx() 169 static bool is_addr_space_cast(const struct bpf_insn *insn) in is_addr_space_cast() 181 static inline bool is_mov_percpu_addr(const struct bpf_insn *insn) in is_mov_percpu_addr() 187 const struct bpf_insn *insn, in print_bpf_insn()
|
| H A D | disasm_helpers.c | 22 static const char *print_call_cb(void *private_data, const struct bpf_insn *insn) in print_call_cb() 38 struct bpf_insn *disasm_insn(struct bpf_insn *insn, char *buf, size_t buf_sz) in disasm_insn()
|
| H A 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()
|
| H A D | testing_helpers.c | 261 static struct bpf_insn insns[] = { in testing_prog_flags() 325 int bpf_test_load_program(enum bpf_prog_type type, const struct bpf_insn *insns, in bpf_test_load_program() 460 int get_xlated_program(int fd_prog, struct bpf_insn **buf, __u32 *cnt) in get_xlated_program() 462 __u32 buf_element_size = sizeof(struct bpf_insn); in get_xlated_program()
|
| /linux/tools/bpf/bpftool/ |
| H A 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 …]
|
| H A D | xlated_dumper.c | 148 const struct bpf_insn *insn) in print_call_pcrel() 177 const struct bpf_insn *insn) in print_call() 195 const struct bpf_insn *insn, in print_imm() 229 struct bpf_insn *insn = buf; in dump_xlated_json() 314 struct bpf_insn *insn = buf; in dump_xlated_plain() 380 struct bpf_insn *insn_start = buf_start; in dump_xlated_for_graph() 381 struct bpf_insn *insn_end = buf_end; in dump_xlated_for_graph() 382 struct bpf_insn *cur = insn_start; in dump_xlated_for_graph()
|
| /linux/kernel/bpf/ |
| H A D | disasm.h | 25 const struct bpf_insn *insn); 27 const struct bpf_insn *insn, 38 const struct bpf_insn *insn,
|
| H A D | liveness.c | 201 int bpf_jmp_offset(struct bpf_insn *insn) in bpf_jmp_offset() 246 struct bpf_insn *insn = &prog->insnsi[idx]; in bpf_insn_successors() 481 struct bpf_insn *insns = env->prog->insnsi; in print_instance() 882 static struct arg_track fill_from_stack(struct bpf_insn *insn, in fill_from_stack() 922 static void spill_to_stack(struct bpf_insn *insn, struct arg_track *at_out, in spill_to_stack() 988 static void clear_stack_for_all_offs(struct bpf_insn *insn, in clear_stack_for_all_offs() 1014 static void arg_track_log(struct bpf_verifier_env *env, struct bpf_insn *insn, int idx, in arg_track_log() 1062 static void arg_track_xfer(struct bpf_verifier_env *env, struct bpf_insn *insn, in arg_track_xfer() 1293 struct bpf_insn *insn = &env->prog->insnsi[insn_idx]; in record_load_store_access() 1352 struct bpf_insn *insn = &env->prog->insnsi[insn_idx]; in record_call_access() [all …]
|
| H A D | core.c | 303 struct bpf_insn *dst; in bpf_prog_calc_tag() 338 static int bpf_adj_delta_to_imm(struct bpf_insn *insn, u32 pos, s32 end_old, in bpf_adj_delta_to_imm() 356 static int bpf_adj_delta_to_off(struct bpf_insn *insn, u32 pos, s32 end_old, in bpf_adj_delta_to_off() 391 struct bpf_insn *insn = prog->insnsi; in bpf_adj_branches() 455 const struct bpf_insn *patch, u32 len) in bpf_patch_insn_single() 523 sizeof(struct bpf_insn) * (prog->len - off - cnt)); in bpf_remove_insns() 1247 const struct bpf_insn *insn, bool extra_pass, in bpf_jit_get_func_addr() 1293 static int bpf_jit_blind_insn(const struct bpf_insn *from, in bpf_jit_blind_insn() 1294 const struct bpf_insn *aux, in bpf_jit_blind_insn() 1295 struct bpf_insn *to_buff, in bpf_jit_blind_insn() [all …]
|
| /linux/tools/lib/bpf/ |
| H A D | features.c | 25 struct bpf_insn insns[] = { in probe_kern_prog_name() 49 struct bpf_insn insns[] = { in probe_kern_global_data() 230 struct bpf_insn insns[] = { in probe_kern_exp_attach_type() 251 struct bpf_insn insns[] = { in probe_kern_probe_read_kernel() 267 struct bpf_insn insns[] = { in probe_prog_bind_map() 334 struct bpf_insn insns[] = { in probe_perf_link() 370 struct bpf_insn insns[] = { in probe_uprobe_multi_link() 429 struct bpf_insn insns[] = { in probe_kern_bpf_cookie() 475 const struct bpf_insn insns[] = { in probe_kern_arg_ctx_tag() 524 struct bpf_insn insn in probe_ldimm64_full_range_off() [all...] |
| H A D | libbpf_probes.c | 104 const struct bpf_insn *insns, size_t insns_cnt, in probe_prog_load() 207 struct bpf_insn insns[] = { in libbpf_probe_bpf_prog_type() 433 struct bpf_insn insns[] = { in libbpf_probe_bpf_helper()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | kptr_xchg_inline.c | 11 struct bpf_insn *insn = NULL; in test_kptr_xchg_inline() 12 struct bpf_insn exp; in test_kptr_xchg_inline()
|
| H A D | raw_tp_writable_test_run.c | 13 const struct bpf_insn trace_program[] = { in serial_test_raw_tp_writable_test_run() 34 const struct bpf_insn skb_program[] = { in serial_test_raw_tp_writable_test_run()
|
| H A D | ctx_rewrite.c | 638 struct bpf_insn *prog; 648 struct bpf_insn *buf = NULL, *insn, *insn_end; in match_program() 737 struct bpf_insn ldx_prog[] = { in run_one_testcase() 755 struct bpf_insn stx_prog[] = { in run_one_testcase() 766 struct bpf_insn st_prog[] = { in run_one_testcase()
|
| /linux/drivers/net/ethernet/netronome/nfp/bpf/ |
| H A 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);
|
| /linux/include/linux/ |
| H A D | bpf.h | 74 const struct bpf_insn *); 123 int (*map_gen_lookup)(struct bpf_map *map, struct bpf_insn *insn_buf); 1067 static bool bpf_is_ldimm64(const struct bpf_insn *insn) in bpf_is_ldimm64() 1072 static inline bool bpf_pseudo_func(const struct bpf_insn *insn) in bpf_pseudo_func() 1081 bpf_atomic_is_load_store(const struct bpf_insn *atomic_insn) in bpf_atomic_is_load_store() 1110 int (*gen_prologue)(struct bpf_insn *insn, bool direct_write, 1112 int (*gen_epilogue)(struct bpf_insn *insn, const struct bpf_prog *prog, 1114 int (*gen_ld_abs)(const struct bpf_insn *orig, 1115 struct bpf_insn *insn_buf); 1117 const struct bpf_insn *src, [all …]
|
| /linux/arch/loongarch/net/ |
| H A D | bpf_jit.h | 55 static inline int bpf2la_offset(int bpf_insn, int off, const struct jit_ctx *ctx) in bpf2la_offset() argument 58 bpf_insn++; in bpf2la_offset() 64 return (ctx->offset[bpf_insn + off] - (ctx->offset[bpf_insn] - 1)); in bpf2la_offset()
|
| /linux/net/sched/ |
| H A D | bpf_qdisc.c | 135 static int bpf_qdisc_gen_prologue(struct bpf_insn *insn_buf, bool direct_write, in BTF_ID_LIST_SINGLE() 138 struct bpf_insn *insn = insn_buf; in BTF_ID_LIST_SINGLE() 165 static int bpf_qdisc_gen_epilogue(struct bpf_insn *insn_buf, const struct bpf_prog *prog, in BTF_ID_LIST_SINGLE() 168 struct bpf_insn *insn = insn_buf; in BTF_ID_LIST_SINGLE()
|
| /linux/lib/ |
| H A D | test_bpf.c | 69 struct bpf_insn insns_int[MAX_INSNS]; 272 struct bpf_insn *insn; in bpf_fill_maxinsns9() 298 struct bpf_insn *insn; in bpf_fill_maxinsns10() 434 struct bpf_insn *insn; in __bpf_fill_stxdw() 467 static int __bpf_ld_imm64(struct bpf_insn insns[2], u8 reg, s64 imm64) in __bpf_ld_imm64() 469 struct bpf_insn tmp[] = {BPF_LD_IMM64(reg, imm64)}; in __bpf_ld_imm64() 483 struct bpf_insn *insns; in __bpf_fill_max_jmp() 625 struct bpf_insn *insn; in __bpf_fill_alu_shift() 758 struct bpf_insn *insn; in __bpf_fill_alu_shift_same_reg() 844 struct bpf_insn*, s64, s64)) in __bpf_fill_pattern() argument [all …]
|