Home
last modified time | relevance | path

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

/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…
DChangeLog2631 (BEGIN_BPF_CMD_DECODER(BPF_OBJ_GET_INFO_BY_FD)): Print bpf_fd and info_len
5725 end of the bpf_fd field, print file_flags field otherwise.
19520 * configure.ac: Check for union bpf_attr.bpf_fd and union
/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/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-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/m4/
Dbpf_attr.m428 union bpf_attr.bpf_fd,
33 union bpf_attr.info.bpf_fd,
/external/kernel-headers/original/uapi/linux/
Dkcm.h20 int bpf_fd; member
Dbpf.h374 __u32 bpf_fd; member
411 __u32 bpf_fd; member
/external/iproute2/include/uapi/linux/
Dbpf.h218 __u32 bpf_fd; member
249 __u32 bpf_fd; member
/external/syzkaller/sys/linux/
Dsocket_kcm.txt24 bpf_fd fd_bpf_prog
/external/bcc/src/cc/includes/compat/linux/
Dbpf.h342 __u32 bpf_fd; member
376 __u32 bpf_fd; member
/external/bcc/src/cc/compat/linux/
Dbpf.h342 __u32 bpf_fd; member
376 __u32 bpf_fd; member
/external/bcc/src/cc/
Dlibbpf.c369 attr.info.bpf_fd = prog_map_fd; in bpf_obj_get_info()
1422 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()