[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150903190411.GA24774@krava.redhat.com>
Date: Thu, 3 Sep 2015 21:04:11 +0200
From: Jiri Olsa <jolsa@...hat.com>
To: Adrian Hunter <adrian.hunter@...el.com>
Cc: Arnaldo Carvalho de Melo <acme@...hat.com>, kan.liang@...el.com,
mingo@...nel.org, jolsa@...nel.org, linux-kernel@...r.kernel.org
Subject: Re: [tip:perf/urgent] perf evlist: Open event on evsel cpus and
threads
On Thu, Sep 03, 2015 at 09:38:16PM +0300, Adrian Hunter wrote:
SNIP
> >
> >perf_evlist__propagate_maps is called from perf_evlist__create_maps,
> >so if evsel is added later it will not be affected, perhaps we need
> >something like below
>
> Yes but it would be nice to have a single function to do it that knows
> the rules for when the evsel->cpus should be retained. Say:
> int __perf_evlist__propagate_maps(struct perf_evlist *evlist, struct perf_evsel *evsel)
> then call it from perf_evlist__propagate_maps(), perf_evlist__add() and
> perf_evlist__splice_list_tail(). Probably need to add a member to perf_evlist
> to know when the evlist->cpus should replace the evsel->cpus
ook,
jirka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists