Home
last modified time | relevance | path

Searched refs:bpf_insn (Results 1 - 25 of 194) sorted by relevance

12345678

/kernel/linux/linux-5.10/tools/include/linux/
H 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...]
/kernel/linux/linux-6.6/tools/include/linux/
H 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...]
/kernel/linux/linux-5.10/samples/bpf/
H 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...]
H A Dtest_cgrp2_sock.c26 #include "bpf_insn.h"
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()
/kernel/linux/linux-6.6/samples/bpf/
H 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...]
H A Dtest_cgrp2_sock.c26 #include "bpf_insn.h"
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()
78 struct bpf_insn *prog; in prog_load()
120 insns_cnt /= sizeof(struct bpf_insn); in prog_load()
/kernel/linux/linux-6.6/tools/lib/bpf/
H A Dgen_loader.c96 static void emit(struct bpf_gen *gen, struct bpf_insn insn) in emit()
104 static void emit2(struct bpf_gen *gen, struct bpf_insn insn1, struct bpf_insn insn2) in emit2()
672 /* try to copy from existing bpf_insn */ in emit_relo_kfunc_btf()
674 move_blob2blob(gen, insn + offsetof(struct bpf_insn, imm), 4, in emit_relo_kfunc_btf()
675 kdesc->insn + offsetof(struct bpf_insn, imm)); in emit_relo_kfunc_btf()
676 move_blob2blob(gen, insn + offsetof(struct bpf_insn, off), 2, in emit_relo_kfunc_btf()
677 kdesc->insn + offsetof(struct bpf_insn, off)); in emit_relo_kfunc_btf()
697 emit(gen, BPF_ST_MEM(BPF_W, BPF_REG_8, offsetof(struct bpf_insn, imm), 0)); in emit_relo_kfunc_btf()
698 emit(gen, BPF_ST_MEM(BPF_H, BPF_REG_8, offsetof(struct bpf_insn, of in emit_relo_kfunc_btf()
[all...]
/kernel/linux/linux-5.10/tools/perf/util/
H 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()
325 prologue_relocate(struct bpf_insn_pos *pos, struct bpf_insn *error_code, in prologue_relocate()
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_pro in bpf__gen_prologue()
[all...]
H 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()
/kernel/linux/linux-5.10/include/linux/
H 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...]
H A Dbpf.h90 int (*map_gen_lookup)(struct bpf_map *map, struct bpf_insn *insn_buf);
513 int (*gen_prologue)(struct bpf_insn *insn, bool direct_write,
515 int (*gen_ld_abs)(const struct bpf_insn *orig,
516 struct bpf_insn *insn_buf);
518 const struct bpf_insn *src,
519 struct bpf_insn *dst,
534 struct bpf_insn *insn);
720 const struct bpf_insn *insnsi, in bpf_dispatcher_nop_func()
722 const struct bpf_insn *)) in bpf_dispatcher_nop_func()
749 const struct bpf_insn *insns
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dfilter.h97 ((struct bpf_insn) { \
108 ((struct bpf_insn) { \
121 ((struct bpf_insn) { \
129 ((struct bpf_insn) { \
139 ((struct bpf_insn) { \
149 ((struct bpf_insn) { \
157 ((struct bpf_insn) { \
167 ((struct bpf_insn) { \
175 ((struct bpf_insn) { \
184 ((struct bpf_insn) { \
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Draw_tp_writable_test_run.c11 const struct bpf_insn trace_program[] = { in test_raw_tp_writable_test_run()
23 .insns_cnt = sizeof(trace_program) / sizeof(struct bpf_insn), in test_raw_tp_writable_test_run()
32 const struct bpf_insn skb_program[] = { in test_raw_tp_writable_test_run()
41 .insns_cnt = sizeof(skb_program) / sizeof(struct bpf_insn), in test_raw_tp_writable_test_run()
H 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()
H 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()
/kernel/linux/linux-5.10/tools/bpf/bpftool/
H A Dcfg.c20 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 *ins in func_search_bb_with_head()
[all...]
H 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()
216 struct bpf_insn *insn = buf; in dump_xlated_json()
301 struct bpf_insn *insn = buf; in dump_xlated_plain()
363 struct bpf_insn *insn_start = buf_start; in dump_xlated_for_graph()
364 struct bpf_insn *insn_end = buf_end; in dump_xlated_for_graph()
365 struct bpf_insn *cur = insn_start; in dump_xlated_for_graph()
/kernel/linux/linux-6.6/tools/bpf/bpftool/
H A Dcfg.c20 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 *ins in func_search_bb_with_head()
[all...]
H A Dxlated_dumper.c148 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()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H 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()
/kernel/linux/linux-5.10/kernel/bpf/
H A Ddisasm.h25 const struct bpf_insn *insn);
27 const struct bpf_insn *insn,
38 const struct bpf_insn *insn,
/kernel/linux/linux-6.6/kernel/bpf/
H A Ddisasm.h25 const struct bpf_insn *insn);
27 const struct bpf_insn *insn,
38 const struct bpf_insn *insn,
/kernel/linux/linux-6.6/tools/perf/util/
H 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()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Ddisasm.h25 const struct bpf_insn *insn);
27 const struct bpf_insn *insn,
38 const struct bpf_insn *insn,
H A Dtest_verifier.c88 struct bpf_insn insns[MAX_INSNS];
89 struct bpf_insn *fill_insns;
101 struct bpf_insn expected_insns[MAX_EXPECTED_INSNS];
106 struct bpf_insn unexpected_insns[MAX_UNEXPECTED_INSNS];
194 struct bpf_insn *insn = self->fill_insns; in bpf_fill_ld_abs_vlan_push_pop()
237 struct bpf_insn *insn = self->fill_insns; in bpf_fill_jump_around_ld_abs()
259 struct bpf_insn *insn = self->fill_insns; in bpf_fill_rand_ld_dw()
266 struct bpf_insn tmp[2] = { BPF_LD_IMM64(BPF_REG_1, val) }; in bpf_fill_rand_ld_dw()
287 struct bpf_insn *insn = self->fill_insns; in bpf_fill_scale1()
313 struct bpf_insn *ins in bpf_fill_scale2()
[all...]

Completed in 23 milliseconds

12345678