Lines Matching refs:map_idx
342 int map_idx; member
4053 size_t map_idx, nr_maps = prog->obj->nr_maps; in bpf_program__record_reloc() local
4149 for (map_idx = 0; map_idx < nr_maps; map_idx++) { in bpf_program__record_reloc()
4150 map = &obj->maps[map_idx]; in bpf_program__record_reloc()
4156 prog->name, map_idx, map->name, map->sec_idx, in bpf_program__record_reloc()
4160 if (map_idx >= nr_maps) { in bpf_program__record_reloc()
4167 reloc_desc->map_idx = map_idx; in bpf_program__record_reloc()
4178 for (map_idx = 0; map_idx < nr_maps; map_idx++) { in bpf_program__record_reloc()
4179 map = &obj->maps[map_idx]; in bpf_program__record_reloc()
4183 prog->name, map_idx, map->name, map->sec_idx, in bpf_program__record_reloc()
4187 if (map_idx >= nr_maps) { in bpf_program__record_reloc()
4195 reloc_desc->map_idx = map_idx; in bpf_program__record_reloc()
5901 int map_idx, const struct bpf_map *map) in poison_map_ldimm64() argument
5906 prog->name, relo_idx, insn_idx, map_idx, map->name); in poison_map_ldimm64()
5919 insn->imm = POISON_LDIMM64_MAP_BASE + map_idx; in poison_map_ldimm64()
5967 map = &obj->maps[relo->map_idx]; in bpf_object__relocate_data()
5970 insn[0].imm = relo->map_idx; in bpf_object__relocate_data()
5976 relo->map_idx, map); in bpf_object__relocate_data()
5980 map = &obj->maps[relo->map_idx]; in bpf_object__relocate_data()
5984 insn[0].imm = relo->map_idx; in bpf_object__relocate_data()
5990 relo->map_idx, map); in bpf_object__relocate_data()
7151 int insn_idx, map_idx; in fixup_log_missing_map_load() local
7154 if (sscanf(line1, "%d: (%*d) call unknown#%d\n", &insn_idx, &map_idx) != 2) in fixup_log_missing_map_load()
7157 map_idx -= POISON_LDIMM64_MAP_BASE; in fixup_log_missing_map_load()
7158 if (map_idx < 0 || map_idx >= obj->nr_maps) in fixup_log_missing_map_load()
7160 map = &obj->maps[map_idx]; in fixup_log_missing_map_load()