Lines Matching refs:map_idx
172 int map_idx; member
1750 size_t map_idx; in bpf_program__collect_reloc() local
1823 for (map_idx = 0; map_idx < nr_maps; map_idx++) { in bpf_program__collect_reloc()
1824 if (maps[map_idx].libbpf_type != type) in bpf_program__collect_reloc()
1827 (maps[map_idx].sec_idx == sym.st_shndx && in bpf_program__collect_reloc()
1828 maps[map_idx].sec_offset == sym.st_value)) { in bpf_program__collect_reloc()
1830 map_idx, maps[map_idx].name, in bpf_program__collect_reloc()
1831 maps[map_idx].sec_idx, in bpf_program__collect_reloc()
1832 maps[map_idx].sec_offset, in bpf_program__collect_reloc()
1838 if (map_idx >= nr_maps) { in bpf_program__collect_reloc()
1840 (int)map_idx, (int)nr_maps - 1); in bpf_program__collect_reloc()
1847 prog->reloc_desc[i].map_idx = map_idx; in bpf_program__collect_reloc()
3276 int insn_idx, map_idx; in bpf_program__relocate() local
3279 map_idx = prog->reloc_desc[i].map_idx; in bpf_program__relocate()
3293 insns[insn_idx].imm = obj->maps[map_idx].fd; in bpf_program__relocate()