Home
last modified time | relevance | path

Searched refs:nb_fds (Results 1 – 3 of 3) sorted by relevance

/linux-6.6.21/tools/bpf/bpftool/
Dcommon.c738 int fd, nb_fds = 0; in prog_fd_by_nametag() local
752 return nb_fds; in prog_fd_by_nametag()
783 if (nb_fds > 0) { in prog_fd_by_nametag()
784 tmp = realloc(*fds, (nb_fds + 1) * sizeof(int)); in prog_fd_by_nametag()
791 (*fds)[nb_fds++] = fd; in prog_fd_by_nametag()
797 while (--nb_fds >= 0) in prog_fd_by_nametag()
798 close((*fds)[nb_fds]); in prog_fd_by_nametag()
871 int nb_fds, fd; in prog_parse_fd() local
878 nb_fds = prog_parse_fds(argc, argv, &fds); in prog_parse_fd()
879 if (nb_fds != 1) { in prog_parse_fd()
[all …]
Dmap.c634 int nb_fds, i; in do_show_subset() local
642 nb_fds = map_parse_fds(&argc, &argv, &fds); in do_show_subset()
643 if (nb_fds < 1) in do_show_subset()
646 if (json_output && nb_fds > 1) in do_show_subset()
648 for (i = 0; i < nb_fds; i++) { in do_show_subset()
653 for (; i < nb_fds; i++) in do_show_subset()
665 if (json_output && nb_fds > 1) in do_show_subset()
768 static int maps_have_btf(int *fds, int nb_fds) in maps_have_btf() argument
774 for (i = 0; i < nb_fds; i++) { in maps_have_btf()
899 int nb_fds, i = 0; in do_dump() local
[all …]
Dprog.c600 int nb_fds, i; in do_show_subset() local
608 nb_fds = prog_parse_fds(&argc, &argv, &fds); in do_show_subset()
609 if (nb_fds < 1) in do_show_subset()
612 if (json_output && nb_fds > 1) in do_show_subset()
614 for (i = 0; i < nb_fds; i++) { in do_show_subset()
617 for (; i < nb_fds; i++) in do_show_subset()
623 if (json_output && nb_fds > 1) in do_show_subset()
880 int nb_fds, i = 0; in do_dump() local
904 nb_fds = prog_parse_fds(&argc, &argv, &fds); in do_dump()
905 if (nb_fds < 1) in do_dump()
[all …]