tools: rename bitmap_alloc() to bitmap_zalloc()
[linux-2.6-microblaze.git] / tools / perf / util / python.c
index 412f8e7..8feef3a 100644 (file)
@@ -1032,7 +1032,7 @@ static PyObject *pyrf_evlist__add(struct pyrf_evlist *pevlist,
 
        Py_INCREF(pevsel);
        evsel = &((struct pyrf_evsel *)pevsel)->evsel;
-       evsel->idx = evlist->core.nr_entries;
+       evsel->core.idx = evlist->core.nr_entries;
        evlist__add(evlist, evsel);
 
        return Py_BuildValue("i", evlist->core.nr_entries);