perf evlist: Fix add() not propagating maps
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 8 Sep 2015 07:58:59 +0000 (10:58 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 15 Sep 2015 14:01:25 +0000 (11:01 -0300)
commit44c42d71c659527c81bf169808959c9339116d85
treede9feccd72fe7f74e94476465ae34e093a0d58cc
parentadc0c3e87b0e1baeccabe09b6dba738f17d0e91d
perf evlist: Fix add() not propagating maps

If evsels are added after maps are created, then they won't have any
maps propagated to them.  Fix that.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@intel.com>
Link: http://lkml.kernel.org/r/1441699142-18905-12-git-send-email-adrian.hunter@intel.com
[ Moved the moving of propagate_maps() to the patch before, so that this
  one does _just_ the one lile fix calling in add()]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c