/tools/testing/selftests/bpf/prog_tests/ |
D | bpf_obj_id.c | 24 __u32 i, next_id, info_len, nr_id_found, duration = 0; in test_bpf_obj_id() local 64 info_len = sizeof(struct bpf_map_info) * 2; in test_bpf_obj_id() 65 bzero(&map_infos[i], info_len); in test_bpf_obj_id() 67 &info_len); in test_bpf_obj_id() 74 info_len != sizeof(struct bpf_map_info) || in test_bpf_obj_id() 80 info_len, sizeof(struct bpf_map_info), in test_bpf_obj_id() 89 info_len = sizeof(struct bpf_prog_info) * 2; in test_bpf_obj_id() 90 bzero(&prog_infos[i], info_len); in test_bpf_obj_id() 106 &info_len); in test_bpf_obj_id() 111 info_len != sizeof(struct bpf_prog_info) || in test_bpf_obj_id() [all …]
|
D | tp_attach_query.c | 8 __u32 duration = 0, info_len, saved_prog_ids[num_progs]; in test_tp_attach_query() local 47 info_len = sizeof(prog_info); in test_tp_attach_query() 48 err = bpf_obj_get_info_by_fd(prog_fd[i], &prog_info, &info_len); in test_tp_attach_query()
|
/tools/testing/selftests/bpf/ |
D | test_skb_cgroup_id_user.c | 83 __u32 info_len = sizeof(info); in get_map_fd_by_prog_id() local 97 if (bpf_obj_get_info_by_fd(prog_fd, &info, &info_len)) { in get_map_fd_by_prog_id()
|
D | test_tcp_check_syncookie_user.c | 84 __u32 info_len = sizeof(info); in get_map_fd_by_prog_id() local 98 if (bpf_obj_get_info_by_fd(prog_fd, &info, &info_len)) { in get_map_fd_by_prog_id()
|
D | test_btf.c | 3791 uint32_t info_len; in test_big_btf_info() local 3825 info_len = sizeof(info_garbage); in test_big_btf_info() 3829 err = bpf_obj_get_info_by_fd(btf_fd, info, &info_len); in test_big_btf_info() 3842 err = bpf_obj_get_info_by_fd(btf_fd, info, &info_len); in test_big_btf_info() 3843 if (CHECK(err || info_len != sizeof(*info), in test_big_btf_info() 3845 err, errno, info_len, sizeof(*info))) { in test_big_btf_info() 3874 uint32_t info_len; in test_btf_id() local 3907 info_len = sizeof(info[0]); in test_btf_id() 3908 err = bpf_obj_get_info_by_fd(btf_fd[0], &info[0], &info_len); in test_btf_id() 3921 err = bpf_obj_get_info_by_fd(btf_fd[1], &info[1], &info_len); in test_btf_id() [all …]
|
/tools/lib/bpf/ |
D | bpf.c | 192 __u64 info_len = (__u64)actual_rec_size * cnt; in alloc_zero_tailing_info() local 196 info = malloc(info_len); in alloc_zero_tailing_info() 631 int bpf_obj_get_info_by_fd(int prog_fd, void *info, __u32 *info_len) in bpf_obj_get_info_by_fd() argument 638 attr.info.info_len = *info_len; in bpf_obj_get_info_by_fd() 643 *info_len = attr.info.info_len; in bpf_obj_get_info_by_fd()
|
D | bpf.h | 163 LIBBPF_API int bpf_obj_get_info_by_fd(int prog_fd, void *info, __u32 *info_len);
|
D | libbpf.h | 510 __u32 info_len; member
|
D | libbpf.c | 5758 __u32 info_len = sizeof(info); in bpf_program__get_prog_info_linear() local 5767 err = bpf_obj_get_info_by_fd(fd, &info, &info_len); in bpf_program__get_prog_info_linear() 5782 if (info_len < desc->array_offset + sizeof(__u32) || in bpf_program__get_prog_info_linear() 5783 info_len < desc->count_offset + sizeof(__u32) || in bpf_program__get_prog_info_linear() 5784 (desc->size_offset > 0 && info_len < desc->size_offset)) in bpf_program__get_prog_info_linear() 5830 err = bpf_obj_get_info_by_fd(fd, &info_linear->info, &info_len); in bpf_program__get_prog_info_linear() 5860 info_linear->info_len = sizeof(struct bpf_prog_info); in bpf_program__get_prog_info_linear()
|
/tools/bpf/bpftool/ |
D | cgroup.c | 74 __u32 info_len = sizeof(info); in show_bpf_prog() local 81 if (bpf_obj_get_info_by_fd(prog_fd, &info, &info_len)) { in show_bpf_prog()
|
D | main.h | 162 int map_parse_fd_and_info(int *argc, char ***argv, void *info, __u32 *info_len);
|
D | map.c | 130 int map_parse_fd_and_info(int *argc, char ***argv, void *info, __u32 *info_len) in map_parse_fd_and_info() argument 139 err = bpf_obj_get_info_by_fd(fd, info, info_len); in map_parse_fd_and_info()
|
/tools/perf/util/ |
D | header.c | 2689 u32 info_len, data_len; in process_bpf_prog_info() local 2693 if (do_read_u32(ff, &info_len)) in process_bpf_prog_info() 2698 if (info_len > sizeof(struct bpf_prog_info)) { in process_bpf_prog_info() 2707 info_linear->info_len = sizeof(struct bpf_prog_info); in process_bpf_prog_info() 2711 if (__do_read(ff, &info_linear->info, info_len)) in process_bpf_prog_info() 2713 if (info_len < sizeof(struct bpf_prog_info)) in process_bpf_prog_info() 2714 memset(((void *)(&info_linear->info)) + info_len, 0, in process_bpf_prog_info() 2715 sizeof(struct bpf_prog_info) - info_len); in process_bpf_prog_info()
|
D | bpf-event.c | 197 if (info_linear->info_len < offsetof(struct bpf_prog_info, prog_tags)) { in perf_event__synthesize_one_bpf_prog()
|
/tools/include/uapi/linux/ |
D | bpf.h | 472 __u32 info_len; member
|