libperf: Add 'cpu' to struct perf_mmap
Move 'cpu' from tools/perf's mmap to libperf's perf_mmap struct. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Michael Petlan <mpetlan@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lore.kernel.org/lkml/20190913132355.21634-14-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:

committed by
Arnaldo Carvalho de Melo

parent
2cf07b294a
commit
56a94706cd
@@ -991,7 +991,7 @@ static struct mmap *get_md(struct evlist *evlist, int cpu)
|
||||
for (i = 0; i < evlist->nr_mmaps; i++) {
|
||||
struct mmap *md = &evlist->mmap[i];
|
||||
|
||||
if (md->cpu == cpu)
|
||||
if (md->core.cpu == cpu)
|
||||
return md;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user