Searched refs:nb_fds (Results 1 – 3 of 3) sorted by relevance
/tools/bpf/bpftool/ |
D | common.c | 810 int fd, nb_fds = 0; in prog_fd_by_nametag() local 824 return nb_fds; in prog_fd_by_nametag() 855 if (nb_fds > 0) { in prog_fd_by_nametag() 856 tmp = realloc(*fds, (nb_fds + 1) * sizeof(int)); in prog_fd_by_nametag() 863 (*fds)[nb_fds++] = fd; in prog_fd_by_nametag() 869 while (--nb_fds >= 0) in prog_fd_by_nametag() 870 close((*fds)[nb_fds]); in prog_fd_by_nametag() 943 int nb_fds, fd; in prog_parse_fd() local 950 nb_fds = prog_parse_fds(argc, argv, &fds); in prog_parse_fd() 951 if (nb_fds != 1) { in prog_parse_fd() [all …]
|
D | map.c | 634 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 …]
|
D | prog.c | 600 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 …]
|