Re: [PATCH 08/30] perf tools: Propagate cpu maps through the evlist

Jiri Olsa
2015-06-15T21:29:58Z

On Mon, Jun 15, 2015 at 04:34:18PM -0300, Arnaldo Carvalho de Melo wrote:
> Em Sun, Jun 14, 2015 at 10:19:23AM +0200, Jiri Olsa escreveu:
> > Propagate evlist's cpu_map object through all the evsel objects,
> > while keeping already configured evsel->cpus.
> >
> > It'll be handy to access evsel's cpus directly
> > in following patches.
> >
> > Link: http://lkml.kernel.org/n/tip-myadl53clbkjvzeqolwp95w0@git.kernel.org
> > Signed-off-by: Jiri Olsa <jolsa@kernel.org>
> > ---
> > tools/perf/util/evlist.c | 24 +++++++++++++++++++++++-
> > 1 file changed, 23 insertions(+), 1 deletion(-)
> >
> > diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c
> > index f7d80ca58136..c0d3058c1868 100644
> > --- a/tools/perf/util/evlist.c
> > +++ b/tools/perf/util/evlist.c
> > @@ -1085,6 +1085,28 @@ int perf_evlist__mmap(struct perf_evlist *evlist, unsigned int pages,
> > return perf_evlist__mmap_ex(evlist, pages, overwrite, 0, false);
> > }
> >
> > +static int propagate_maps(struct perf_evlist *evlist, struct target *target)
>
> Please rename this to perf_evlist__set_maps()

we already have this one.. how about perf_evlist__ropagate_maps ?

jirka