Home
last modified time | relevance | path

Searched refs:bpf_insn (Results 1 – 25 of 104) sorted by relevance

12345

/linux-6.3-rc2/tools/include/linux/
A Dfilter.h35 ((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.3-rc2/samples/bpf/
A Dbpf_insn.h6 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 …]
A Dtest_cgrp2_sock.c33 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-6.3-rc2/tools/perf/util/
A Dbpf-prologue.c27 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()
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()
369 struct bpf_insn *error_code = NULL; in bpf__gen_prologue()
[all …]
A Dbpf-prologue.h10 struct bpf_insn;
18 struct bpf_insn *new_prog, size_t *new_cnt,
27 struct bpf_insn *new_prog __maybe_unused, in bpf__gen_prologue()
/linux-6.3-rc2/tools/lib/bpf/
A Dgen_loader.c104 static void emit2(struct bpf_gen *gen, struct bpf_insn insn1, struct bpf_insn insn2) in emit2()
719 offsetof(struct bpf_insn, imm))); in emit_relo_kfunc_btf()
721 offsetof(struct bpf_insn, off))); in emit_relo_kfunc_btf()
762 move_blob2blob(gen, insn + sizeof(struct bpf_insn) + offsetof(struct bpf_insn, imm), 4, in emit_relo_ksym_typeless()
763 kdesc->insn + sizeof(struct bpf_insn) + offsetof(struct bpf_insn, imm)); in emit_relo_ksym_typeless()
778 sizeof(struct bpf_insn) + offsetof(struct bpf_insn, imm))); in emit_relo_ksym_typeless()
809 move_blob2blob(gen, insn + sizeof(struct bpf_insn) + offsetof(struct bpf_insn, imm), 4, in emit_relo_ksym_btf()
810 kdesc->insn + sizeof(struct bpf_insn) + offsetof(struct bpf_insn, imm)); in emit_relo_ksym_btf()
824 …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()
832 sizeof(struct bpf_insn) + offsetof(struct bpf_insn, imm))); in emit_relo_ksym_btf()
[all …]
A Dlibbpf_probes.c104 const struct bpf_insn *insns, size_t insns_cnt, in probe_prog_load()
204 struct bpf_insn insns[] = { in libbpf_probe_bpf_prog_type()
403 struct bpf_insn insns[] = { in libbpf_probe_bpf_helper()
/linux-6.3-rc2/include/linux/
A Dfilter.h94 ((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 …]
A Dbpf.h66 const struct bpf_insn *);
875 struct bpf_insn *insn_buf);
877 const struct bpf_insn *src,
878 struct bpf_insn *dst,
893 struct bpf_insn *insn);
1121 const struct bpf_insn *insnsi, in bpf_dispatcher_nop_func()
1640 const struct bpf_insn *src,
1641 struct bpf_insn *dst,
2476 const struct bpf_insn *insn) in bpf_jit_find_kfunc_model()
2800 const struct bpf_insn *si,
[all …]
/linux-6.3-rc2/tools/testing/selftests/bpf/
A Dtest_verifier.c92 struct bpf_insn insns[MAX_INSNS];
93 struct bpf_insn *fill_insns;
583 struct bpf_insn prog[] = { in create_prog_dummy_simple()
594 struct bpf_insn prog[] = { in create_prog_dummy_loop()
1278 struct bpf_insn null_insn = {}; in is_null_insn()
1301 static bool compare_masked_insn(struct bpf_insn *orig, struct bpf_insn *masked) in compare_masked_insn()
1303 struct bpf_insn orig_masked; in compare_masked_insn()
1314 static int find_insn_subseq(struct bpf_insn *seq, struct bpf_insn *subseq, in find_insn_subseq()
1353 static bool find_all_insn_subseqs(struct bpf_insn *seq, struct bpf_insn *subseqs, in find_all_insn_subseqs()
1381 struct bpf_insn *insn = &buf[i]; in print_insn()
[all …]
A Dtest_tag.c25 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()
A Dtest_verifier_log.c18 static const struct bpf_insn code_sample[] = {
52 attr.insn_cnt = (__u32)(sizeof(code_sample) / sizeof(struct bpf_insn)); in load()
/linux-6.3-rc2/tools/bpf/bpftool/
A Dcfg.c20 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 …]
A Dxlated_dumper.c144 const struct bpf_insn *insn) in print_call_pcrel()
173 const struct bpf_insn *insn) in print_call()
191 const struct bpf_insn *insn, in print_imm()
225 struct bpf_insn *insn = buf; in dump_xlated_json()
310 struct bpf_insn *insn = buf; in dump_xlated_plain()
372 struct bpf_insn *insn_start = buf_start; in dump_xlated_for_graph()
373 struct bpf_insn *insn_end = buf_end; in dump_xlated_for_graph()
374 struct bpf_insn *cur = insn_start; in dump_xlated_for_graph()
A Dfeature.c518 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-6.3-rc2/tools/testing/selftests/bpf/prog_tests/
A Draw_tp_writable_test_run.c12 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()
A Draw_tp_writable_reject_nbd_invalid.c12 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()
A Dlog_buf.c142 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()
A Dfexit_stress.c19 const struct bpf_insn trace_program[] = { in serial_test_fexit_stress()
39 sizeof(trace_program) / sizeof(struct bpf_insn), in serial_test_fexit_stress()
/linux-6.3-rc2/kernel/bpf/
A Ddisasm.h25 const struct bpf_insn *insn);
27 const struct bpf_insn *insn,
38 const struct bpf_insn *insn,
A Ddisasm.c17 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()
A Dcore.c286 struct bpf_insn *dst; in bpf_prog_calc_tag()
392 struct bpf_insn *insn = prog->insnsi; in bpf_adj_branches()
1218 const struct bpf_insn *aux, in bpf_jit_blind_insn()
1219 struct bpf_insn *to_buff, in bpf_jit_blind_insn()
1222 struct bpf_insn *to = to_buff; in bpf_jit_blind_insn()
1397 struct bpf_insn insn_buff[16], aux[2]; in bpf_jit_blind_constants()
1400 struct bpf_insn *insn; in bpf_jit_blind_constants()
2022 const struct bpf_insn *insn) \
2062 const struct bpf_insn *insn) = {
2080 const struct bpf_insn *insn) in __bpf_prog_ret0_warn()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/netronome/nfp/bpf/
A Dmain.h301 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);
A Djit.c3893 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.3-rc2/arch/loongarch/net/
A Dbpf_jit.h47 static inline int bpf2la_offset(int bpf_insn, int off, const struct jit_ctx *ctx) in bpf2la_offset() argument
50 bpf_insn++; in bpf2la_offset()
56 return (ctx->offset[bpf_insn + off] - (ctx->offset[bpf_insn] - 1)); in bpf2la_offset()

Completed in 73 milliseconds

12345