/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/ |
D | raw_tp_writable_reject_nbd_invalid.c | 10 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()
|
D | raw_tp_writable_test_run.c | 27 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/ |
D | reuseport_bpf_numa.c | 78 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()
|
D | reuseport_bpf.c | 99 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/ |
D | bpf.c | 339 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()
|
D | bpf_attr_check.c | 267 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_…
|
D | bpf_attr.h | 135 uint32_t bpf_fd; member 216 uint32_t bpf_fd; member
|
D | config.h.in | 1447 /* 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'. */
|
D | configure | 10975 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/ |
D | kcm.h | 20 int bpf_fd; member
|
D | bpf.h | 436 __u32 bpf_fd; member 480 __u32 bpf_fd; member
|
/external/strace/tests-mx32/ |
D | bpf.c | 692 .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,
|
D | bpf-obj_get_info_by_fd.c | 299 .bpf_fd = map_fd, in main() 357 .bpf_fd = prog_fd, in main()
|
/external/strace/tests-m32/ |
D | bpf.c | 692 .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,
|
D | bpf-obj_get_info_by_fd.c | 299 .bpf_fd = map_fd, in main() 357 .bpf_fd = prog_fd, in main()
|
/external/strace/tests/ |
D | bpf.c | 692 .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,
|
D | bpf-obj_get_info_by_fd.c | 299 .bpf_fd = map_fd, in main() 357 .bpf_fd = prog_fd, in main()
|
/external/strace/m4/ |
D | bpf_attr.m4 | 28 union bpf_attr.bpf_fd, 33 union bpf_attr.info.bpf_fd,
|
/external/iproute2/include/uapi/linux/ |
D | bpf.h | 218 __u32 bpf_fd; member 249 __u32 bpf_fd; member
|
/external/ltp/include/lapi/ |
D | bpf.h | 230 uint32_t bpf_fd; member 274 uint32_t bpf_fd; member
|
/external/iptables/extensions/ |
D | libxt_bpf.c | 73 __u32 bpf_fd; in bpf_obj_get_readonly() member
|
/external/bcc/src/cc/includes/compat/linux/ |
D | bpf.h | 374 __u32 bpf_fd; member 411 __u32 bpf_fd; member
|
/external/bcc/src/cc/compat/linux/ |
D | bpf.h | 374 __u32 bpf_fd; member 411 __u32 bpf_fd; member
|
/external/bcc/src/cc/ |
D | libbpf.c | 379 attr.info.bpf_fd = prog_map_fd; in bpf_obj_get_info() 1472 attr.bpf_fd = fd; in bpf_obj_pin()
|
/external/iproute2/lib/ |
D | bpf.c | 171 attr.info.bpf_fd = fd; in bpf_prog_info_by_fd() 1199 attr.bpf_fd = fd; in bpf_obj_pin()
|