Lines Matching refs:fds
650 int *fds = NULL; in do_show_subset() local
654 fds = malloc(sizeof(int)); in do_show_subset()
655 if (!fds) { in do_show_subset()
659 nb_fds = map_parse_fds(&argc, &argv, &fds); in do_show_subset()
666 err = bpf_obj_get_info_by_fd(fds[i], &info, &len); in do_show_subset()
671 close(fds[i]); in do_show_subset()
676 show_map_close_json(fds[i], &info); in do_show_subset()
678 show_map_close_plain(fds[i], &info); in do_show_subset()
680 close(fds[i]); in do_show_subset()
686 free(fds); in do_show_subset()
785 static int maps_have_btf(int *fds, int nb_fds) in maps_have_btf() argument
792 err = bpf_obj_get_info_by_fd(fds[i], &info, &len); in maps_have_btf()
920 int *fds = NULL; in do_dump() local
926 fds = malloc(sizeof(int)); in do_dump()
927 if (!fds) { in do_dump()
931 nb_fds = map_parse_fds(&argc, &argv, &fds); in do_dump()
940 do_plain_btf = maps_have_btf(fds, nb_fds); in do_dump()
955 if (bpf_obj_get_info_by_fd(fds[i], &info, &len)) { in do_dump()
959 err = map_dump(fds[i], &info, wtr, nb_fds > 1); in do_dump()
965 close(fds[i]); in do_dump()
974 close(fds[i]); in do_dump()
976 free(fds); in do_dump()