Searched refs:bpf_insn (Results 26 - 50 of 115) sorted by relevance

12345

/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dlog_buf.c142 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 Dcgroup_attach_autodetach.c13 struct bpf_insn prog[] = {
H A Dobj_name.c16 struct bpf_insn prog[] = {
H A Dctx_rewrite.c639 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 Dcgroup_attach_override.c15 struct bpf_insn prog[] = {
H A Dalign.c15 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 Dbpf.h72 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 Drelo_core.h89 int bpf_core_patch_insn(const char *prog_name, struct bpf_insn *insn,
H A Dbpf_gen_internal.h64 const char *license, struct bpf_insn *insns, size_t insn_cnt,
H A Dlibbpf_probes.c104 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 Dtesting_helpers.c259 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 Dtest_tag.c25 static struct bpf_insn prog[BPF_MAXINSNS];
42 struct bpf_insn tmp[] = {
133 insns *= sizeof(struct bpf_insn);
H A Dtest_sock.c28 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 Dtest_cgroup_storage.c19 struct bpf_insn prog[] = {
/linux-master/drivers/net/ethernet/netronome/nfp/bpf/
H A Dmain.h301 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 Djit.c1297 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 Dsock_example.c30 #include "bpf_insn.h"
48 struct bpf_insn prog[] = {
H A Dfds_example.c18 #include "bpf_insn.h"
52 static struct bpf_insn insns[] = {
H A Dtest_cgrp2_attach.c33 #include "bpf_insn.h"
45 struct bpf_insn prog[] = {
/linux-master/kernel/bpf/
H A Dcore.c295 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 Dnetif_receive_skb.c243 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 Dfeature.c514 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 Dfilter.c299 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 Dbpf_jit_comp.h233 int build_insn(const struct bpf_insn *insn, struct jit_context *ctx);
/linux-master/net/xdp/
H A Dxskmap.c121 static int xsk_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf)
124 struct bpf_insn *insn = insn_buf;

Completed in 243 milliseconds

12345