diff options
| author | Jiri Olsa <[email protected]> | 2019-07-27 20:33:20 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2019-09-25 12:51:45 +0000 |
| commit | 56a94706cd7233b158ab13e5ac93f5a97ca88941 (patch) | |
| tree | dfe317dbe4a035428285fc0adeea2f62e6859b7f /tools/perf/util/python.c | |
| parent | libperf: Add 'fd' to struct perf_mmap (diff) | |
| download | kernel-56a94706cd7233b158ab13e5ac93f5a97ca88941.tar.gz kernel-56a94706cd7233b158ab13e5ac93f5a97ca88941.zip | |
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 <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Michael Petlan <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/python.c')
| -rw-r--r-- | tools/perf/util/python.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/python.c b/tools/perf/util/python.c index 60a6b6e8e176..ba4085d7ae9f 100644 --- a/tools/perf/util/python.c +++ b/tools/perf/util/python.c @@ -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; } |
