Home | History | Annotate | Download | only in tc

Lines Matching defs:prog

1034 			   const struct bpf_elf_prog *prog, bool verbose)
1040 fd = bpf_prog_load(prog->type, prog->insns, prog->size,
1041 prog->license);
1043 bpf_dump_error("Prog section \'%s\' (type:%u insns:%zu "
1045 section, prog->type,
1046 prog->size / sizeof(struct bpf_insn),
1047 prog->license, fd < 0 ? "rejected: " :
1275 struct bpf_elf_prog prog;
1289 memset(&prog, 0, sizeof(prog));
1290 prog.type = ctx->type;
1291 prog.insns = data.sec_data->d_buf;
1292 prog.size = data.sec_data->d_size;
1293 prog.license = ctx->license;
1295 fd = bpf_prog_attach(section, &prog, ctx->verbose);
1339 fprintf(stderr, "Map \'%s\' (%d) injected into prog "
1354 struct bpf_elf_prog prog;
1374 memset(&prog, 0, sizeof(prog));
1375 prog.type = ctx->type;
1376 prog.insns = data_insn.sec_data->d_buf;
1377 prog.size = data_insn.sec_data->d_size;
1378 prog.license = ctx->license;
1380 fd = bpf_prog_attach(section, &prog, ctx->verbose);