Searched refs:map_idx (Results 1 – 2 of 2) sorted by relevance
181 int map_idx; member567 int i, map_idx, nr_maps = 0; in bpf_object__init_maps() local628 for (i = 0, map_idx = 0; i < symbols->d_size / sizeof(GElf_Sym); i++) { in bpf_object__init_maps()641 obj->maps[map_idx].offset = sym.st_value; in bpf_object__init_maps()648 obj->maps[map_idx].name = strdup(map_name); in bpf_object__init_maps()649 if (!obj->maps[map_idx].name) { in bpf_object__init_maps()653 pr_debug("map %d is \"%s\"\n", map_idx, in bpf_object__init_maps()654 obj->maps[map_idx].name); in bpf_object__init_maps()656 obj->maps[map_idx].def = *def; in bpf_object__init_maps()657 map_idx++; in bpf_object__init_maps()[all …]
1837 int err, mmap_prot, mmap_flags, map_idx = 0; in __perf_session__process_events() local1881 mmaps[map_idx] = buf; in __perf_session__process_events()1882 map_idx = (map_idx + 1) & (ARRAY_SIZE(mmaps) - 1); in __perf_session__process_events()1892 if (mmaps[map_idx]) { in __perf_session__process_events()1893 munmap(mmaps[map_idx], mmap_size); in __perf_session__process_events()1894 mmaps[map_idx] = NULL; in __perf_session__process_events()