Masami Hiramatsu
bae32b50ea
perf tools: Fix map_groups__clone to put cloned map
Fix map_groups__clone to put cloned map after inserting it to the
map_groups.
Refcnt debugger shows:
----
==== [0] ====
Unreclaimed map: 0x2a27ee0
Refcount +1 => 1 at
./perf(map_groups__clone+0x8d) [0x4bb7ed]
./perf(thread__fork+0xbe) [0x4c1f9e]
./perf(machine__process_fork_event+0x216) [0x4b79a6]
./perf(perf_event__synthesize_threads+0x38b) [0x48135b]
./perf(cmd_top+0xdc6) [0x43cb76]
./perf() [0x477223]
./perf(main+0x617) [0x422077]
/lib64/libc.so.6(__libc_start_main+0xf0) [0x7ff806af8fe0]
./perf() [0x4221ed]
Refcount +1 => 2 at
./perf(map_groups__clone+0x128) [0x4bb888]
./perf(thread__fork+0xbe) [0x4c1f9e]
./perf(machine__process_fork_event+0x216) [0x4b79a6]
./perf(perf_event__synthesize_threads+0x38b) [0x48135b]
./perf(cmd_top+0xdc6) [0x43cb76]
./perf() [0x477223]
./perf(main+0x617) [0x422077]
/lib64/libc.so.6(__libc_start_main+0xf0) [0x7ff806af8fe0]
./perf() [0x4221ed]
Refcount -1 => 1 at
./perf(map_groups__exit+0x87) [0x4ba757]
./perf(map_groups__put+0x68) [0x4ba9a8]
./perf(thread__put+0x8b) [0x4c1aeb]
./perf(machine__delete_threads+0x81) [0x4b48f1]
./perf(perf_session__delete+0x4f) [0x4be63f]
./perf(cmd_top+0x1094) [0x43ce44]
./perf() [0x477223]
./perf(main+0x617) [0x422077]
/lib64/libc.so.6(__libc_start_main+0xf0) [0x7ff806af8fe0]
./perf() [0x4221ed]
----
This shows map_groups__clone get the map twice and put it when
map_groups__exit.
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/20151209021120.10245.95388.stgit@localhost.localdomain
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-12-09 13:41:58 -03:00
..
2015-11-19 13:19:15 -03:00
2015-10-19 18:17:25 -03:00
2015-11-18 17:51:03 -03:00
2015-11-23 18:31:25 -03:00
2015-10-07 19:41:50 -03:00
2015-09-28 16:53:07 -03:00
2015-12-07 18:12:56 -03:00
2015-09-04 13:22:06 -03:00
2015-12-09 13:41:55 -03:00
2015-12-09 13:41:58 -03:00
2015-08-17 11:11:36 -03:00
2015-11-23 18:31:24 -03:00
2015-09-14 12:50:20 -03:00
2015-10-19 16:10:25 -03:00
2015-08-28 14:53:50 -03:00
2015-12-07 12:02:10 -03:00
2015-11-23 18:31:24 -03:00
2015-04-02 13:18:52 -03:00
2015-08-12 13:20:28 -03:00
2015-10-27 09:28:44 -03:00
2015-10-19 16:51:44 -03:00
2015-11-13 12:23:12 -03:00
2015-09-30 18:34:29 -03:00
2015-09-14 12:50:15 -03:00
2015-10-01 12:12:22 -03:00
2015-05-08 16:19:27 -03:00
2015-07-01 17:53:49 -03:00
2015-10-27 09:28:44 -03:00
2015-10-29 17:16:22 -03:00
2015-11-27 16:56:32 -03:00
2015-11-05 12:51:00 -03:00
2015-11-26 16:06:16 -03:00
2015-12-07 18:12:59 -03:00
2015-05-18 10:17:33 -03:00
2015-10-22 16:23:19 -03:00
2015-10-29 11:48:18 -03:00
2015-11-23 18:31:24 -03:00
2015-11-23 18:31:24 -03:00
2014-03-18 18:17:06 -03:00
2015-11-05 11:39:54 -03:00
2015-11-26 13:35:38 -03:00
2015-11-18 17:51:02 -03:00
2015-03-19 13:53:27 -03:00
2014-10-29 10:32:48 -02:00
2015-05-08 16:05:08 -03:00
2015-08-06 16:48:27 -03:00
2015-11-23 18:31:24 -03:00
2015-08-31 18:01:33 -03:00