Lines Matching full:ifindex
144 static int get_vendor_id(int ifindex) in get_vendor_id() argument
150 if (!if_indextoname(ifindex, ifname)) in get_vendor_id()
516 __u32 ifindex) in probe_prog_load_ifindex() argument
522 .prog_ifindex = ifindex, in probe_prog_load_ifindex()
534 static bool probe_prog_type_ifindex(enum bpf_prog_type prog_type, __u32 ifindex) in probe_prog_type_ifindex() argument
543 NULL, 0, ifindex); in probe_prog_type_ifindex()
548 bool *supported_types, const char *define_prefix, __u32 ifindex) in probe_prog_type() argument
555 if (ifindex) { in probe_prog_type()
564 res = probe_prog_type_ifindex(prog_type, ifindex); in probe_prog_type()
593 static bool probe_map_type_ifindex(enum bpf_map_type map_type, __u32 ifindex) in probe_map_type_ifindex() argument
599 opts.map_ifindex = ifindex; in probe_map_type_ifindex()
615 const char *define_prefix, __u32 ifindex) in probe_map_type() argument
622 if (ifindex) { in probe_map_type()
631 res = probe_map_type_ifindex(map_type, ifindex); in probe_map_type()
656 __u32 ifindex) in probe_helper_ifindex() argument
666 sizeof(buf), ifindex); in probe_helper_ifindex()
669 switch (get_vendor_id(ifindex)) { in probe_helper_ifindex()
684 const char *ptype_name, __u32 ifindex) in probe_helper_for_progtype() argument
689 if (ifindex) in probe_helper_for_progtype()
690 res = probe_helper_ifindex(id, prog_type, ifindex); in probe_helper_for_progtype()
721 const char *define_prefix, __u32 ifindex) in probe_helpers_for_progtype() argument
727 if (ifindex) in probe_helpers_for_progtype()
760 ifindex); in probe_helpers_for_progtype()
781 const char *define_prefix, __u32 ifindex, in probe_misc_feature() argument
786 .prog_ifindex = ifindex, in probe_misc_feature()
808 static void probe_large_insn_limit(const char *define_prefix, __u32 ifindex) in probe_large_insn_limit() argument
818 define_prefix, ifindex, in probe_large_insn_limit()
829 probe_bounded_loops(const char *define_prefix, __u32 ifindex) in probe_bounded_loops() argument
839 define_prefix, ifindex, in probe_bounded_loops()
850 probe_v2_isa_extension(const char *define_prefix, __u32 ifindex) in probe_v2_isa_extension() argument
860 define_prefix, ifindex, in probe_v2_isa_extension()
871 probe_v3_isa_extension(const char *define_prefix, __u32 ifindex) in probe_v3_isa_extension() argument
881 define_prefix, ifindex, in probe_v3_isa_extension()
932 __u32 ifindex) in section_program_types() argument
950 ifindex); in section_program_types()
956 static void section_map_types(const char *define_prefix, __u32 ifindex) in section_map_types() argument
973 probe_map_type(map_type, map_type_str, define_prefix, ifindex); in section_map_types()
980 section_helpers(bool *supported_types, const char *define_prefix, __u32 ifindex) in section_helpers() argument
1015 ifindex); in section_helpers()
1021 static void section_misc(const char *define_prefix, __u32 ifindex) in section_misc() argument
1027 probe_large_insn_limit(define_prefix, ifindex); in section_misc()
1028 probe_bounded_loops(define_prefix, ifindex); in section_misc()
1029 probe_v2_isa_extension(define_prefix, ifindex); in section_misc()
1030 probe_v3_isa_extension(define_prefix, ifindex); in section_misc()
1163 __u32 ifindex = 0; in do_probe() local
1179 if (target != COMPONENT_UNSPEC || ifindex) { in do_probe()
1188 ifindex = if_nametoindex(ifname); in do_probe()
1189 if (!ifindex) { in do_probe()
1244 section_program_types(supported_types, define_prefix, ifindex); in do_probe()
1245 section_map_types(define_prefix, ifindex); in do_probe()
1246 section_helpers(supported_types, define_prefix, ifindex); in do_probe()
1247 section_misc(define_prefix, ifindex); in do_probe()