/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | unpriv_bpf_disabled.c | 145 const struct bpf_insn prog_insns[] = { 149 const size_t prog_insn_cnt = sizeof(prog_insns) / sizeof(struct bpf_insn);
|
H A D | btf_dump.c | 723 TEST_BTF_DUMP_DATA_C(btf, d, "struct", str, struct bpf_insn, BTF_F_COMPACT, 725 TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct bpf_insn, 730 TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct bpf_insn, 0, 731 "(struct bpf_insn){\n" 741 TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct bpf_insn, BTF_F_COMPACT, 742 "(struct bpf_insn){.dst_reg = (__u8)0x1,}",
|
H A D | cgroup_attach_multi.c | 39 struct bpf_insn prog[] = {
|
H A D | verifier_log.c | 33 static const struct bpf_insn *insns;
|
/linux-master/lib/ |
H A D | test_bpf.c | 69 struct bpf_insn insns_int[MAX_INSNS]; 272 struct bpf_insn *insn; 298 struct bpf_insn *insn; 434 struct bpf_insn *insn; 467 static int __bpf_ld_imm64(struct bpf_insn insns[2], u8 reg, s64 imm64) 469 struct bpf_insn tmp[] = {BPF_LD_IMM64(reg, imm64)}; 483 struct bpf_insn *insns; 605 struct bpf_insn *insn; 738 struct bpf_insn *insn; 824 struct bpf_insn*, s6 821 __bpf_fill_pattern(struct bpf_test *self, void *arg, int dbits, int sbits, int block1, int block2, int (*emit)(struct bpf_test*, void*, struct bpf_insn*, s64, s64)) argument [all...] |
/linux-master/include/linux/ |
H A D | bpf-cgroup.h | 27 const struct bpf_insn *insn); 29 const struct bpf_insn *insn); 31 const struct bpf_insn *insn);
|
/linux-master/arch/arm64/net/ |
H A D | bpf_jit_comp.c | 188 static inline int bpf2a64_offset(int bpf_insn, int off, argument 192 bpf_insn++; 198 return ctx->offset[bpf_insn + off] - (ctx->offset[bpf_insn] - 1); 485 static int emit_lse_atomic(const struct bpf_insn *insn, struct jit_ctx *ctx) 549 static inline int emit_lse_atomic(const struct bpf_insn *insn, struct jit_ctx *ctx) 555 static int emit_ll_sc_atomic(const struct bpf_insn *insn, struct jit_ctx *ctx) 754 static int add_exception_handler(const struct bpf_insn *insn, 828 static int build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx, 1212 const struct bpf_insn insn [all...] |
/linux-master/kernel/bpf/ |
H A D | verifier.c | 252 static bool bpf_helper_call(const struct bpf_insn *insn) 258 static bool bpf_pseudo_call(const struct bpf_insn *insn) 264 static bool bpf_pseudo_kfunc_call(const struct bpf_insn *insn) 504 static bool is_bpf_throw_kfunc(struct bpf_insn *insn); 525 static bool is_sync_callback_calling_insn(struct bpf_insn *insn) 531 static bool is_async_callback_calling_insn(struct bpf_insn *insn) 536 static bool is_may_goto_insn(struct bpf_insn *insn) 569 static bool is_cmpxchg_insn(const struct bpf_insn *insn) 2578 * verification. JITs do lookups by bpf_insn, where func_id may not be 2879 const struct bpf_insn *ins [all...] |
H A D | cgroup.c | 67 const struct bpf_insn *insn) 89 const struct bpf_insn *insn) 111 const struct bpf_insn *insn) 2223 const struct bpf_insn *si, 2224 struct bpf_insn *insn_buf, 2227 struct bpf_insn *insn = insn_buf; 2427 const struct bpf_insn *si, 2428 struct bpf_insn *insn_buf, 2432 struct bpf_insn *insn = insn_buf; 2504 static int cg_sockopt_get_prologue(struct bpf_insn *insn_bu [all...] |
H A D | arraymap.c | 205 static int array_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) 208 struct bpf_insn *insn = insn_buf; 1334 struct bpf_insn *insn_buf) 1338 struct bpf_insn *insn = insn_buf;
|
H A D | hashtab.c | 717 static int htab_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) 719 struct bpf_insn *insn = insn_buf; 757 struct bpf_insn *insn_buf) 759 struct bpf_insn *insn = insn_buf; 2574 struct bpf_insn *insn_buf) 2576 struct bpf_insn *insn = insn_buf;
|
/linux-master/samples/bpf/ |
H A D | cookie_uid_helper_example.c | 54 #include "bpf_insn.h" 80 struct bpf_insn prog[] = {
|
/linux-master/tools/testing/selftests/net/ |
H A D | reuseport_bpf_numa.c | 79 const struct bpf_insn prog[] = {
|
H A D | reuseport_bpf.c | 98 const struct bpf_insn prog[] = { 342 struct bpf_insn ecode[] = {
|
H A D | psock_fanout.c | 149 struct bpf_insn prog[] = {
|
/linux-master/arch/parisc/net/ |
H A D | bpf_jit_core.c | 23 const struct bpf_insn *insn = &prog->insnsi[i];
|
H A D | bpf_jit_comp64.c | 407 static void init_regs(u8 *rd, u8 *rs, const struct bpf_insn *insn, 592 int bpf_jit_emit_insn(const struct bpf_insn *insn, struct hppa_jit_context *ctx, 1001 struct bpf_insn insn1 = insn[1];
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | syscall.c | 101 static struct bpf_insn insns[] = {
|
/linux-master/arch/riscv/net/ |
H A D | bpf_jit_core.c | 25 const struct bpf_insn *insn = &prog->insnsi[i];
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_sock_addr.c | 646 const struct bpf_insn *insns, size_t insns_cnt) 721 struct bpf_insn insns[] = { 764 struct bpf_insn insns[] = { 827 struct bpf_insn insns[] = {
|
H A D | test_sysctl.c | 30 struct bpf_insn insns[MAX_INSNS]; 1400 static size_t probe_prog_length(const struct bpf_insn *fp) 1411 struct bpf_insn *prog, size_t insn_num) 1437 struct bpf_insn *prog = test->insns;
|
/linux-master/tools/lib/bpf/ |
H A D | skel_internal.h | 333 attr.insn_cnt = opts->insns_sz / sizeof(struct bpf_insn);
|
H A D | relo_core.c | 16 static bool is_ldimm64_insn(struct bpf_insn *insn) 809 /* by default, always check expected value in bpf_insn */ 822 /* type ID, embedded in bpf_insn, might change during linking, 970 int insn_idx, struct bpf_insn *insn) 985 static int insn_bpf_size_to_bytes(struct bpf_insn *insn) 1024 int bpf_core_patch_insn(const char *prog_name, struct bpf_insn *insn, 1321 /* bpf_insn's imm value could get out of sync during linking */
|
H A D | libbpf.h | 334 struct bpf_insn; 343 * Returned pointer is always valid and not NULL. Number of `struct bpf_insn` 356 LIBBPF_API const struct bpf_insn *bpf_program__insns(const struct bpf_program *prog); 368 * @param new_insn_cnt number of `struct bpf_insn`'s that form 373 struct bpf_insn *new_insns, size_t new_insn_cnt); 376 * @brief **bpf_program__insn_cnt()** returns number of `struct bpf_insn`'s
|
/linux-master/arch/loongarch/net/ |
H A D | bpf_jit.c | 282 static void emit_atomic(const struct bpf_insn *insn, struct jit_ctx *ctx) 411 static int add_exception_handler(const struct bpf_insn *insn, 458 static int build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx, bool extra_pass) 1130 const struct bpf_insn *insn = &prog->insnsi[i];
|