Home
last modified time | relevance | path

Searched refs:bpf_fd (Results 1 – 25 of 26) sorted by relevance

12

/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Draw_tp_writable_reject_nbd_invalid.c10 int bpf_fd = -1, tp_fd = -1; in test_raw_tp_writable_reject_nbd_invalid() local
29 bpf_fd = bpf_load_program_xattr(&load_attr, error, sizeof(error)); in test_raw_tp_writable_reject_nbd_invalid()
30 if (CHECK(bpf_fd < 0, "bpf_raw_tracepoint_writable load", in test_raw_tp_writable_reject_nbd_invalid()
31 "failed: %d errno %d\n", bpf_fd, errno)) in test_raw_tp_writable_reject_nbd_invalid()
34 tp_fd = bpf_raw_tracepoint_open("nbd_send_request", bpf_fd); in test_raw_tp_writable_reject_nbd_invalid()
41 close(bpf_fd); in test_raw_tp_writable_reject_nbd_invalid()
Draw_tp_writable_test_run.c27 int bpf_fd = bpf_load_program_xattr(&load_attr, error, sizeof(error)); in test_raw_tp_writable_test_run() local
28 if (CHECK(bpf_fd < 0, "bpf_raw_tracepoint_writable loaded", in test_raw_tp_writable_test_run()
29 "failed: %d errno %d\n", bpf_fd, errno)) in test_raw_tp_writable_test_run()
50 int tp_fd = bpf_raw_tracepoint_open("bpf_test_finish", bpf_fd); in test_raw_tp_writable_test_run()
79 close(bpf_fd); in test_raw_tp_writable_test_run()
/external/linux-kselftest/tools/testing/selftests/net/
Dreuseport_bpf_numa.c78 int bpf_fd; in attach_bpf() local
96 bpf_fd = syscall(__NR_bpf, BPF_PROG_LOAD, &attr, sizeof(attr)); in attach_bpf()
97 if (bpf_fd < 0) in attach_bpf()
100 if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_EBPF, &bpf_fd, in attach_bpf()
101 sizeof(bpf_fd))) in attach_bpf()
104 close(bpf_fd); in attach_bpf()
Dreuseport_bpf.c99 int bpf_fd; in attach_ebpf() local
122 bpf_fd = syscall(__NR_bpf, BPF_PROG_LOAD, &attr, sizeof(attr)); in attach_ebpf()
123 if (bpf_fd < 0) in attach_ebpf()
126 if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_EBPF, &bpf_fd, in attach_ebpf()
127 sizeof(bpf_fd))) in attach_ebpf()
130 close(bpf_fd); in attach_ebpf()
351 int fd, bpf_fd; in test_filter_no_reuseport() local
367 bpf_fd = syscall(__NR_bpf, BPF_PROG_LOAD, &eprog, sizeof(eprog)); in test_filter_no_reuseport()
368 if (bpf_fd < 0) in test_filter_no_reuseport()
378 if (!setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_EBPF, &bpf_fd, in test_filter_no_reuseport()
[all …]
/external/strace/
Dbpf.c339 PRINT_FIELD_FD(", ", attr, bpf_fd, tcp); in BEGIN_BPF_CMD_DECODER()
427 uint32_t bpf_fd,
443 print_bpf_map_info(struct tcb * const tcp, uint32_t bpf_fd, in print_bpf_map_info() argument
486 print_bpf_prog_info(struct tcb * const tcp, uint32_t bpf_fd, in print_bpf_prog_info() argument
590 print_bpf_obj_info(struct tcb * const tcp, uint32_t bpf_fd, uint64_t info, in print_bpf_obj_info() argument
609 if (getfdpath(tcp, bpf_fd, path, sizeof(path)) > 0) { in print_bpf_obj_info()
628 saved->print_fn(tcp, bpf_fd, info_buf, size, saved); in print_bpf_obj_info()
642 PRINT_FIELD_FD("{info={", attr, bpf_fd, tcp); in BEGIN_BPF_CMD_DECODER()
653 print_bpf_obj_info(tcp, attr.bpf_fd, attr.info, attr.info_len, saved); in BEGIN_BPF_CMD_DECODER()
Dbpf_attr_check.c267 static_assert(SoM(struct BPF_OBJ_PIN_struct, bpf_fd) == SoM(union bpf_attr, bpf_fd),
269 static_assert(offsetof(struct BPF_OBJ_PIN_struct, bpf_fd) == offsetof(union bpf_attr, bpf_fd),
470 …static_assert(SoM(struct BPF_OBJ_GET_INFO_BY_FD_struct, bpf_fd) == SoM(union bpf_attr, info.bpf_fd
472 …ssert(offsetof(struct BPF_OBJ_GET_INFO_BY_FD_struct, bpf_fd) == offsetof(union bpf_attr, info.bpf_…
Dbpf_attr.h135 uint32_t bpf_fd; member
216 uint32_t bpf_fd; member
Dconfig.h.in1447 /* Define to 1 if `bpf_fd' is a member of `union bpf_attr'. */
1462 /* Define to 1 if `info.bpf_fd' is a member of `union bpf_attr'. */
Dconfigure10975 ac_fn_c_check_member "$LINENO" "union bpf_attr" "bpf_fd" "ac_cv_member_union_bpf_attr_bpf_fd" "#inc…
11025 ac_fn_c_check_member "$LINENO" "union bpf_attr" "info.bpf_fd" "ac_cv_member_union_bpf_attr_info_bpf…
/external/kernel-headers/original/uapi/linux/
Dkcm.h20 int bpf_fd; member
Dbpf.h436 __u32 bpf_fd; member
480 __u32 bpf_fd; member
/external/strace/tests-mx32/
Dbpf.c692 .data = { .BPF_OBJ_PIN_data = { .bpf_fd = -1 } },
693 .size = offsetofend(struct BPF_OBJ_PIN_struct, bpf_fd),
699 .bpf_fd = -1,
878 .data = { .BPF_OBJ_GET_INFO_BY_FD_data = { .bpf_fd = -1 } },
879 .size = offsetofend(struct BPF_OBJ_GET_INFO_BY_FD_struct, bpf_fd),
884 .bpf_fd = -1,
Dbpf-obj_get_info_by_fd.c299 .bpf_fd = map_fd, in main()
357 .bpf_fd = prog_fd, in main()
/external/strace/tests-m32/
Dbpf.c692 .data = { .BPF_OBJ_PIN_data = { .bpf_fd = -1 } },
693 .size = offsetofend(struct BPF_OBJ_PIN_struct, bpf_fd),
699 .bpf_fd = -1,
878 .data = { .BPF_OBJ_GET_INFO_BY_FD_data = { .bpf_fd = -1 } },
879 .size = offsetofend(struct BPF_OBJ_GET_INFO_BY_FD_struct, bpf_fd),
884 .bpf_fd = -1,
Dbpf-obj_get_info_by_fd.c299 .bpf_fd = map_fd, in main()
357 .bpf_fd = prog_fd, in main()
/external/strace/tests/
Dbpf.c692 .data = { .BPF_OBJ_PIN_data = { .bpf_fd = -1 } },
693 .size = offsetofend(struct BPF_OBJ_PIN_struct, bpf_fd),
699 .bpf_fd = -1,
878 .data = { .BPF_OBJ_GET_INFO_BY_FD_data = { .bpf_fd = -1 } },
879 .size = offsetofend(struct BPF_OBJ_GET_INFO_BY_FD_struct, bpf_fd),
884 .bpf_fd = -1,
Dbpf-obj_get_info_by_fd.c299 .bpf_fd = map_fd, in main()
357 .bpf_fd = prog_fd, in main()
/external/strace/m4/
Dbpf_attr.m428 union bpf_attr.bpf_fd,
33 union bpf_attr.info.bpf_fd,
/external/iproute2/include/uapi/linux/
Dbpf.h218 __u32 bpf_fd; member
249 __u32 bpf_fd; member
/external/ltp/include/lapi/
Dbpf.h230 uint32_t bpf_fd; member
274 uint32_t bpf_fd; member
/external/iptables/extensions/
Dlibxt_bpf.c73 __u32 bpf_fd; in bpf_obj_get_readonly() member
/external/bcc/src/cc/includes/compat/linux/
Dbpf.h374 __u32 bpf_fd; member
411 __u32 bpf_fd; member
/external/bcc/src/cc/compat/linux/
Dbpf.h374 __u32 bpf_fd; member
411 __u32 bpf_fd; member
/external/bcc/src/cc/
Dlibbpf.c379 attr.info.bpf_fd = prog_map_fd; in bpf_obj_get_info()
1472 attr.bpf_fd = fd; in bpf_obj_pin()
/external/iproute2/lib/
Dbpf.c171 attr.info.bpf_fd = fd; in bpf_prog_info_by_fd()
1199 attr.bpf_fd = fd; in bpf_obj_pin()

12