perf machine: Fix machine.vmlinux_maps to make sure to clear the old one
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Wed, 9 Dec 2015 02:11:33 +0000 (11:11 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 9 Dec 2015 16:42:00 +0000 (13:42 -0300)
commitcc1121ab9687d660cc02f50b1a4974112f87a8e6
tree05c4bf982d132ad6834f2b31ca0a2dc334cc3f12
parentd91130e90a005876b488b6d52b743149d95b4a59
perf machine: Fix machine.vmlinux_maps to make sure to clear the old one

Fix machine.vmlinux_maps to make sure to clear the old one if it is
renewal. This can leak the previous maps on the vmlinux_maps because
those are just overwritten.

Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20151209021133.10245.93730.stgit@localhost.localdomain
[ Simplified the memset, same end result ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/machine.c