Home
last modified time | relevance | path

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

/linux-6.1.9/tools/bpf/bpftool/
Dcommon.c731 int fd, nb_fds = 0; in prog_fd_by_nametag() local
745 return nb_fds; in prog_fd_by_nametag()
776 if (nb_fds > 0) { in prog_fd_by_nametag()
777 tmp = realloc(*fds, (nb_fds + 1) * sizeof(int)); in prog_fd_by_nametag()
784 (*fds)[nb_fds++] = fd; in prog_fd_by_nametag()
790 while (--nb_fds >= 0) in prog_fd_by_nametag()
791 close((*fds)[nb_fds]); in prog_fd_by_nametag()
864 int nb_fds, fd; in prog_parse_fd() local
871 nb_fds = prog_parse_fds(argc, argv, &fds); in prog_parse_fd()
872 if (nb_fds != 1) { in prog_parse_fd()
[all …]
Dmap.c629 int nb_fds, i; in do_show_subset() local
637 nb_fds = map_parse_fds(&argc, &argv, &fds); in do_show_subset()
638 if (nb_fds < 1) in do_show_subset()
641 if (json_output && nb_fds > 1) in do_show_subset()
643 for (i = 0; i < nb_fds; i++) { in do_show_subset()
648 for (; i < nb_fds; i++) in do_show_subset()
660 if (json_output && nb_fds > 1) in do_show_subset()
763 static int maps_have_btf(int *fds, int nb_fds) in maps_have_btf() argument
769 for (i = 0; i < nb_fds; i++) { in maps_have_btf()
900 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()
884 int nb_fds, i = 0; in do_dump() local
908 nb_fds = prog_parse_fds(&argc, &argv, &fds); in do_dump()
909 if (nb_fds < 1) in do_dump()
[all …]