Home
last modified time | relevance | path

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

1234

/linux/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/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()
74 struct bpf_insn *prog; in prog_load()
116 insns_cnt /= sizeof(struct bpf_insn); in prog_load()
A Dsock_example.c47 struct bpf_insn prog[] = { in test_sock()
61 size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); in test_sock()
A Dtest_cgrp2_attach.c44 struct bpf_insn prog[] = { in prog_load()
73 size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); in prog_load()
/linux/tools/lib/bpf/
A Dgen_loader.c104 static void emit2(struct bpf_gen *gen, struct bpf_insn insn1, struct bpf_insn insn2) in emit2()
730 offsetof(struct bpf_insn, imm))); in emit_relo_kfunc_btf()
732 offsetof(struct bpf_insn, off))); in emit_relo_kfunc_btf()
773 move_blob2blob(gen, insn + sizeof(struct bpf_insn) + offsetof(struct bpf_insn, imm), 4, in emit_relo_ksym_typeless()
774 kdesc->insn + sizeof(struct bpf_insn) + offsetof(struct bpf_insn, imm)); in emit_relo_ksym_typeless()
789 sizeof(struct bpf_insn) + offsetof(struct bpf_insn, imm))); in emit_relo_ksym_typeless()
820 move_blob2blob(gen, insn + sizeof(struct bpf_insn) + offsetof(struct bpf_insn, imm), 4, in emit_relo_ksym_btf()
821 kdesc->insn + sizeof(struct bpf_insn) + offsetof(struct bpf_insn, imm)); in emit_relo_ksym_btf()
834 …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()
842 sizeof(struct bpf_insn) + offsetof(struct bpf_insn, imm))); in emit_relo_ksym_btf()
[all …]
A Dlibbpf_probes.c68 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()
316 struct bpf_insn insns[2] = { in bpf_probe_helper()
348 struct bpf_insn insns[BPF_MAXINSNS + 1]; in bpf_probe_large_insn_limit()
/linux/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.h19 struct bpf_insn *new_prog, size_t *new_cnt,
27 struct bpf_insn *new_prog __maybe_unused, in bpf__gen_prologue()
/linux/include/linux/
A Dfilter.h93 ((struct bpf_insn) { \
101 ((struct bpf_insn) { \
111 ((struct bpf_insn) { \
119 ((struct bpf_insn) { \
129 ((struct bpf_insn) { \
139 ((struct bpf_insn) { \
147 ((struct bpf_insn) { \
157 ((struct bpf_insn) { \
165 ((struct bpf_insn) { \
174 ((struct bpf_insn) { \
[all …]
A Dbpf.h513 struct bpf_insn *insn_buf);
515 const struct bpf_insn *src,
516 struct bpf_insn *dst,
533 struct bpf_insn *insn);
723 const struct bpf_insn *insnsi, in bpf_dispatcher_nop_func() argument
725 const struct bpf_insn *)) in bpf_dispatcher_nop_func()
754 const struct bpf_insn *)) \
1132 const struct bpf_insn *src,
1133 struct bpf_insn *dst,
2172 const struct bpf_insn *si,
[all …]
/linux/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.c141 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()
222 struct bpf_insn *insn = buf; in dump_xlated_json()
307 struct bpf_insn *insn = buf; in dump_xlated_plain()
369 struct bpf_insn *insn_start = buf_start; in dump_xlated_for_graph()
370 struct bpf_insn *insn_end = buf_end; in dump_xlated_for_graph()
371 struct bpf_insn *cur = insn_start; in dump_xlated_for_graph()
/linux/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()
24 .insns_cnt = 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()
42 .insns_cnt = sizeof(skb_program) / sizeof(struct bpf_insn), in serial_test_raw_tp_writable_test_run()
A Dfexit_stress.c18 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()
A Draw_tp_writable_reject_nbd_invalid.c12 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()
A Dcgroup_attach_autodetach.c13 struct bpf_insn prog[] = { in prog_load()
17 size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); in prog_load()
A Dcgroup_attach_override.c15 struct bpf_insn prog[] = { in prog_load()
19 size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); in prog_load()
/linux/kernel/bpf/
A Ddisasm.h25 const struct bpf_insn *insn);
27 const struct bpf_insn *insn,
38 const struct bpf_insn *insn,
A Dcore.c273 struct bpf_insn *dst; in bpf_prog_calc_tag()
379 struct bpf_insn *insn = prog->insnsi; in bpf_adj_branches()
964 const struct bpf_insn *aux, in bpf_jit_blind_insn()
965 struct bpf_insn *to_buff, in bpf_jit_blind_insn()
968 struct bpf_insn *to = to_buff; in bpf_jit_blind_insn()
1143 struct bpf_insn insn_buff[16], aux[2]; in bpf_jit_blind_constants()
1146 struct bpf_insn *insn; in bpf_jit_blind_constants()
1763 const struct bpf_insn *insn) \
1803 const struct bpf_insn *insn) = {
1821 const struct bpf_insn *insn) in __bpf_prog_ret0_warn()
[all …]
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()
/linux/tools/testing/selftests/bpf/
A Dtest_verifier.c72 struct bpf_insn insns[MAX_INSNS];
73 struct bpf_insn *fill_insns;
151 struct bpf_insn *insn = self->fill_insns; in bpf_fill_ld_abs_vlan_push_pop()
194 struct bpf_insn *insn = self->fill_insns; in bpf_fill_jump_around_ld_abs()
216 struct bpf_insn *insn = self->fill_insns; in bpf_fill_rand_ld_dw()
244 struct bpf_insn *insn = self->fill_insns; in bpf_fill_scale1()
270 struct bpf_insn *insn = self->fill_insns; in bpf_fill_scale2()
349 struct bpf_insn *insn = self->fill_insns; in bpf_fill_torturous_jumps()
497 struct bpf_insn prog[] = { in create_prog_dummy_simple()
509 struct bpf_insn prog[] = { in create_prog_dummy_loop()
[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()
/linux/drivers/net/ethernet/netronome/nfp/bpf/
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 …]
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);

Completed in 50 milliseconds

1234