Searched refs:prog_fd (Results 151 - 160 of 160) sorted by path
1234567
/linux-master/tools/testing/selftests/bpf/ |
H A D | testing_helpers.c | 284 struct bpf_object **pobj, int *prog_fd) 315 *prog_fd = bpf_program__fd(prog); 283 bpf_prog_test_load(const char *file, enum bpf_prog_type type, struct bpf_object **pobj, int *prog_fd) argument
|
H A D | testing_helpers.h | 18 struct bpf_object **pobj, int *prog_fd);
|
H A D | xdp_redirect_multi.c | 85 int prog_fd, group_all, mac_map; local 153 prog_fd = bpf_program__fd(bpf_object__next_program(obj, NULL)); 174 prog_fd = bpf_program__fd(ingress_prog); 176 if (prog_fd < 0 || egress_prog_fd < 0) { 211 /* bind prog_fd to each interface */ 212 ret = bpf_xdp_attach(ifindex, prog_fd, xdp_flags, NULL);
|
H A D | xdp_synproxy.c | 26 int prog_fd; local 46 prog_fd = bpf_prog_get_fd_by_id(attached_prog_id); 47 if (prog_fd < 0) { 48 fprintf(stderr, "Error: bpf_prog_get_fd_by_id: %s\n", strerror(-prog_fd)); 56 opts.old_prog_fd = prog_fd; 58 close(prog_fd); 195 int prog_fd; local 218 prog_fd = bpf_program__fd(prog); 220 err = bpf_prog_get_info_by_fd(prog_fd, &info, &info_len); 237 .prog_fd 277 int prog_fd; local [all...] |
H A D | xdping.c | 95 int prog_fd = -1, map_fd = -1; local 173 if (bpf_prog_test_load(filename, BPF_PROG_TYPE_XDP, &obj, &prog_fd)) { 181 prog_fd = bpf_program__fd(main_prog); 182 if (!main_prog || prog_fd < 0) { 202 if (bpf_xdp_attach(ifindex, prog_fd, xdp_flags, NULL) < 0) { 208 close(prog_fd); 248 if (prog_fd > 0) 249 close(prog_fd);
|
H A D | xsk.c | 428 int prog_fd; local 430 prog_fd = bpf_program__fd(prog); 431 return bpf_xdp_attach(ifindex, prog_fd, xdp_flags, NULL);
|
H A D | xskxceiver.c | 2519 int prog_fd, insn_cnt = ARRAY_SIZE(insns); local 2522 prog_fd = bpf_prog_load(BPF_PROG_TYPE_XDP, NULL, "GPL", insns, insn_cnt, NULL); 2523 if (prog_fd < 0) 2526 err = bpf_xdp_attach(ifindex, prog_fd, flags, NULL); 2528 close(prog_fd); 2533 close(prog_fd);
|
/linux-master/tools/testing/selftests/hid/ |
H A D | hid_bpf.c | 93 int prog_fd; member in struct:attach_prog_args 569 args.prog_fd = bpf_program__fd(prog); 767 int err, prog_fd; local 776 prog_fd = bpf_program__fd(self->skel->progs.hid_user_input_report); 783 err = bpf_prog_test_run_opts(prog_fd, &tattrs); 812 int err, cond_err, prog_fd; local 822 prog_fd = bpf_program__fd(self->skel->progs.hid_user_output_report); 830 err = bpf_prog_test_run_opts(prog_fd, &tattrs); 861 int err, prog_fd; local 868 prog_fd [all...] |
/linux-master/tools/testing/selftests/hid/progs/ |
H A D | hid.c | 8 int prog_fd; member in struct:attach_prog_args 62 ctx->prog_fd,
|
H A D | hid_bpf_helpers.h | 89 extern int hid_bpf_attach_prog(unsigned int hid_id, int prog_fd, u32 flags) __ksym;
|
Completed in 228 milliseconds
1234567