perf evlist: Make set_maps() more resilient
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 8 Sep 2015 07:58:56 +0000 (10:58 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 15 Sep 2015 13:44:22 +0000 (10:44 -0300)
commit934e0f2053ce299893ca48a411bf7fdc8ac6254f
tree1e30f1d040c4cd5392d6eb6b4e46b2735d11a291
parentfce4d296b405b03fba033a55017348bf55b10db6
perf evlist: Make set_maps() more resilient

Make perf_evlist__set_maps() more resilient by allowing for the
possibility that one or another of the maps isn't being changed and
therefore should not be "put".

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-9-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c