/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | log_buf.c | 142 const struct bpf_insn good_prog_insns[] = { 146 const size_t good_prog_insn_cnt = sizeof(good_prog_insns) / sizeof(struct bpf_insn); 147 const struct bpf_insn bad_prog_insns[] = { 150 size_t bad_prog_insn_cnt = sizeof(bad_prog_insns) / sizeof(struct bpf_insn);
|
H A D | cgroup_attach_autodetach.c | 13 struct bpf_insn prog[] = {
|
H A D | obj_name.c | 16 struct bpf_insn prog[] = {
|
H A D | ctx_rewrite.c | 639 static void print_xlated(FILE *out, struct bpf_insn *insn, __u32 len) 690 struct bpf_insn *prog; 700 struct bpf_insn *buf = NULL; 787 struct bpf_insn ldx_prog[] = { 805 struct bpf_insn stx_prog[] = { 816 struct bpf_insn st_prog[] = {
|
H A D | cgroup_attach_override.c | 15 struct bpf_insn prog[] = {
|
H A D | align.c | 15 struct bpf_insn insns[MAX_INSNS]; 590 static int probe_filter_length(const struct bpf_insn *fp) 604 struct bpf_insn *prog = test->insns;
|
/linux-master/include/linux/ |
H A D | bpf.h | 72 const struct bpf_insn *); 120 int (*map_gen_lookup)(struct bpf_map *map, struct bpf_insn *insn_buf); 928 static bool bpf_is_ldimm64(const struct bpf_insn *insn) 933 static inline bool bpf_pseudo_func(const struct bpf_insn *insn) 956 int (*gen_prologue)(struct bpf_insn *insn, bool direct_write, 958 int (*gen_ld_abs)(const struct bpf_insn *orig, 959 struct bpf_insn *insn_buf); 961 const struct bpf_insn *src, 962 struct bpf_insn *dst, 976 struct bpf_insn *ins [all...] |
/linux-master/tools/lib/bpf/ |
H A D | relo_core.h | 89 int bpf_core_patch_insn(const char *prog_name, struct bpf_insn *insn,
|
H A D | bpf_gen_internal.h | 64 const char *license, struct bpf_insn *insns, size_t insn_cnt,
|
H A D | libbpf_probes.c | 104 const struct bpf_insn *insns, size_t insns_cnt, 207 struct bpf_insn insns[] = { 419 struct bpf_insn insns[] = {
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | testing_helpers.c | 259 static struct bpf_insn insns[] = { 323 int bpf_test_load_program(enum bpf_prog_type type, const struct bpf_insn *insns, 419 int get_xlated_program(int fd_prog, struct bpf_insn **buf, __u32 *cnt) 421 __u32 buf_element_size = sizeof(struct bpf_insn);
|
H A D | test_tag.c | 25 static struct bpf_insn prog[BPF_MAXINSNS]; 42 struct bpf_insn tmp[] = { 133 insns *= sizeof(struct bpf_insn);
|
H A D | test_sock.c | 28 struct bpf_insn insns[MAX_INSNS]; 377 static size_t probe_prog_length(const struct bpf_insn *fp) 387 static int load_sock_prog(const struct bpf_insn *prog,
|
H A D | test_cgroup_storage.c | 19 struct bpf_insn prog[] = {
|
/linux-master/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; 470 struct bpf_insn insn = meta->insn; 571 struct bpf_insn *insn);
|
H A D | jit.c | 1297 const struct bpf_insn *insn = &meta->insn; 1328 const struct bpf_insn *insn = &meta->insn; 1361 const struct bpf_insn *insn = &meta->insn; 1402 const struct bpf_insn *insn = &meta->insn; 1439 const struct bpf_insn *insn = &meta->insn; 1505 const struct bpf_insn *insn = &meta->insn; 1838 const struct bpf_insn *insn = &meta->insn; 1901 const struct bpf_insn *insn = &meta->insn; 1915 const struct bpf_insn *insn = &meta->insn; 1926 const struct bpf_insn *ins [all...] |
/linux-master/samples/bpf/ |
H A D | sock_example.c | 30 #include "bpf_insn.h" 48 struct bpf_insn prog[] = {
|
H A D | fds_example.c | 18 #include "bpf_insn.h" 52 static struct bpf_insn insns[] = {
|
H A D | test_cgrp2_attach.c | 33 #include "bpf_insn.h" 45 struct bpf_insn prog[] = {
|
/linux-master/kernel/bpf/ |
H A D | core.c | 295 struct bpf_insn *dst; 361 static int bpf_adj_delta_to_imm(struct bpf_insn *insn, u32 pos, s32 end_old, 379 static int bpf_adj_delta_to_off(struct bpf_insn *insn, u32 pos, s32 end_old, 414 struct bpf_insn *insn = prog->insnsi; 478 const struct bpf_insn *patch, u32 len) 544 sizeof(struct bpf_insn) * (prog->len - off - cnt)); 1236 const struct bpf_insn *insn, bool extra_pass, 1275 static int bpf_jit_blind_insn(const struct bpf_insn *from, 1276 const struct bpf_insn *aux, 1277 struct bpf_insn *to_buf [all...] |
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | netif_receive_skb.c | 243 TEST_BTF_C(str, struct bpf_insn, 0, 245 TEST_BTF(str, struct bpf_insn, BTF_F_NONAME, "{1,0x2,0x3,4,5,}",
|
/linux-master/tools/bpf/bpftool/ |
H A D | feature.c | 514 const struct bpf_insn *insns, size_t insns_cnt, 537 struct bpf_insn insns[2] = { 658 struct bpf_insn insns[2] = { 780 probe_misc_feature(struct bpf_insn *insns, size_t len, 810 struct bpf_insn insns[BPF_MAXINSNS + 1]; 831 struct bpf_insn insns[4] = { 852 struct bpf_insn insns[4] = { 873 struct bpf_insn insns[4] = {
|
/linux-master/net/core/ |
H A D | filter.c | 299 struct bpf_insn *insn_buf) 301 struct bpf_insn *insn = insn_buf; 346 struct bpf_insn **insnp) 348 struct bpf_insn *insn = *insnp; 475 static bool convert_bpf_ld_abs(struct sock_filter *fp, struct bpf_insn **insnp) 483 struct bpf_insn *insn = *insnp; 553 * Remap 'sock_filter' style classic BPF (cBPF) instruction set to 'bpf_insn' 569 struct bpf_insn *new_insn, *first_insn = NULL; 625 struct bpf_insn tmp_insns[32] = { }; 626 struct bpf_insn *ins [all...] |
/linux-master/arch/mips/net/ |
H A D | bpf_jit_comp.h | 233 int build_insn(const struct bpf_insn *insn, struct jit_context *ctx);
|
/linux-master/net/xdp/ |
H A D | xskmap.c | 121 static int xsk_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) 124 struct bpf_insn *insn = insn_buf;
|