| /linux-6.15/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-6.15/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-6.15/tools/lib/bpf/ |
| H A D | gen_loader.c | 105 static void emit2(struct bpf_gen *gen, struct bpf_insn insn1, struct bpf_insn insn2) in emit2() 408 struct bpf_insn *insn = (struct bpf_insn *)opts->insns; in bpf_gen__finish() 757 offsetof(struct bpf_insn, imm))); in emit_relo_kfunc_btf() 800 move_blob2blob(gen, insn + sizeof(struct bpf_insn) + offsetof(struct bpf_insn, imm), 4, in emit_relo_ksym_typeless() 801 kdesc->insn + sizeof(struct bpf_insn) + offsetof(struct bpf_insn, imm)); in emit_relo_ksym_typeless() 816 sizeof(struct bpf_insn) + offsetof(struct bpf_insn, imm))); in emit_relo_ksym_typeless() 845 move_blob2blob(gen, insn + sizeof(struct bpf_insn) + offsetof(struct bpf_insn, imm), 4, in emit_relo_ksym_btf() 846 kdesc->insn + sizeof(struct bpf_insn) + offsetof(struct bpf_insn, imm)); in emit_relo_ksym_btf() 864 …emit(gen, BPF_ST_MEM(BPF_W, BPF_REG_8, sizeof(struct bpf_insn) + offsetof(struct bpf_insn, imm), 0… in emit_relo_ksym_btf() 872 sizeof(struct bpf_insn) + offsetof(struct bpf_insn, imm))); in emit_relo_ksym_btf() [all …]
|
| H A D | features.c | 26 struct bpf_insn insns[] = { in probe_kern_prog_name() 50 struct bpf_insn insns[] = { in probe_kern_global_data() 231 struct bpf_insn insns[] = { in probe_kern_exp_attach_type() 252 struct bpf_insn insns[] = { in probe_kern_probe_read_kernel() 268 struct bpf_insn insns[] = { in probe_prog_bind_map() 335 struct bpf_insn insns[] = { in probe_perf_link() 371 struct bpf_insn insns[] = { in probe_uprobe_multi_link() 430 struct bpf_insn insns[] = { in probe_kern_bpf_cookie() 476 const struct bpf_insn insns[] = { in probe_kern_arg_ctx_tag()
|
| /linux-6.15/include/linux/ |
| H A D | filter.h | 103 ((struct bpf_insn) { \ 114 ((struct bpf_insn) { \ 127 ((struct bpf_insn) { \ 137 ((struct bpf_insn) { \ 149 ((struct bpf_insn) { \ 159 ((struct bpf_insn) { \ 169 ((struct bpf_insn) { \ 177 ((struct bpf_insn) { \ 191 ((struct bpf_insn) { \ 206 ((struct bpf_insn) { \ [all …]
|
| H A D | bpf.h | 73 const struct bpf_insn *); 1042 struct bpf_insn *insn_buf); 1044 const struct bpf_insn *src, 1045 struct bpf_insn *dst, 1059 struct bpf_insn *insn); 1313 const struct bpf_insn *insnsi, in bpf_dispatcher_nop_func() 2079 const struct bpf_insn *src, 2080 struct bpf_insn *dst, 3025 const struct bpf_insn *insn) in bpf_jit_find_kfunc_model() 3411 const struct bpf_insn *si, [all …]
|
| /linux-6.15/tools/testing/selftests/bpf/ |
| H A D | test_verifier.c | 86 struct bpf_insn insns[MAX_INSNS]; 87 struct bpf_insn *fill_insns; 577 struct bpf_insn prog[] = { in create_prog_dummy_simple() 588 struct bpf_insn prog[] = { in create_prog_dummy_loop() 1339 struct bpf_insn null_insn = {}; in is_null_insn() 1362 static bool compare_masked_insn(struct bpf_insn *orig, struct bpf_insn *masked) in compare_masked_insn() 1364 struct bpf_insn orig_masked; in compare_masked_insn() 1375 static int find_insn_subseq(struct bpf_insn *seq, struct bpf_insn *subseq, in find_insn_subseq() 1414 static bool find_all_insn_subseqs(struct bpf_insn *seq, struct bpf_insn *subseqs, in find_all_insn_subseqs() 1442 struct bpf_insn *insn = &buf[i]; in print_insn() [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, 53 struct bpf_insn; 57 int get_xlated_program(int fd_prog, struct bpf_insn **buf, __u32 *cnt);
|
| 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 | 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 | 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()
|
| /linux-6.15/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; 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() 279 struct bpf_insn *insn; in func_add_bb_edges() [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()
|
| H A D | feature.c | 514 const struct bpf_insn *insns, size_t insns_cnt, in probe_prog_load_ifindex() 537 struct bpf_insn insns[2] = { in probe_prog_type_ifindex() 658 struct bpf_insn insns[2] = { in probe_helper_ifindex() 781 probe_misc_feature(struct bpf_insn *insns, size_t len, in probe_misc_feature() 811 struct bpf_insn insns[BPF_MAXINSNS + 1]; in probe_large_insn_limit() 832 struct bpf_insn insns[4] = { in probe_bounded_loops() 853 struct bpf_insn insns[4] = { in probe_v2_isa_extension() 874 struct bpf_insn insns[4] = { in probe_v3_isa_extension() 895 struct bpf_insn insns[5] = { in probe_v4_isa_extension()
|
| /linux-6.15/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 | 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()
|
| /linux-6.15/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()
|
| /linux-6.15/arch/arc/net/ |
| H A D | bpf_jit_core.c | 252 const struct bpf_insn *insn = ctx->prog->insnsi; in analyze_reg_usage() 331 const struct bpf_insn *insn) in get_index_for_insn() 369 const struct bpf_insn *insn) in get_target_index_for_insn() 488 const struct bpf_insn *insn) in check_bpf_jump() 518 const struct bpf_insn *insn) in get_curr_jit_off() 535 const struct bpf_insn *insn) in get_targ_jit_off() 582 const struct bpf_insn *insn, in handle_jumps() 643 const struct bpf_insn *insn, u8 *len) in handle_jmp_epilogue() 667 const struct bpf_insn *insn, in handle_call() 704 const struct bpf_insn *insn, in handle_ld_imm64() [all …]
|
| /linux-6.15/arch/riscv/kernel/ |
| H A D | cfi.c | 80 struct bpf_insn; 84 const struct bpf_insn *insn);
|
| /linux-6.15/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);
|
| H A D | jit.c | 3893 struct bpf_insn insn = meta->insn; in nfp_bpf_opt_reg_init() 3919 struct bpf_insn insn = meta->insn; in nfp_bpf_opt_neg_add_sub() 3968 struct bpf_insn insn, next; in nfp_bpf_opt_ld_mask() 4002 struct bpf_insn insn, next1, next2; in nfp_bpf_opt_ld_shift() 4088 struct bpf_insn *prev_ld, in curr_pair_chain_with_previous() 4089 struct bpf_insn *prev_st) in curr_pair_chain_with_previous() 4191 struct bpf_insn *prev_ld = NULL; in nfp_bpf_opt_ldst_gather() 4192 struct bpf_insn *prev_st = NULL; in nfp_bpf_opt_ldst_gather() 4196 struct bpf_insn *ld = &meta1->insn; in nfp_bpf_opt_ldst_gather() 4197 struct bpf_insn *st = &meta2->insn; in nfp_bpf_opt_ldst_gather() [all …]
|
| /linux-6.15/arch/loongarch/net/ |
| H A D | bpf_jit.h | 52 static inline int bpf2la_offset(int bpf_insn, int off, const struct jit_ctx *ctx) in bpf2la_offset() argument 55 bpf_insn++; in bpf2la_offset() 61 return (ctx->offset[bpf_insn + off] - (ctx->offset[bpf_insn] - 1)); in bpf2la_offset()
|