perf tools: Replace map->referenced & maps->removed_maps with map->refcnt
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 16 Jun 2015 02:29:51 +0000 (23:29 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 16 Jun 2015 13:34:38 +0000 (10:34 -0300)
commit5c24b67aae72f54c5d2a6898be4bae9726df63bb
tree14cf53530c0b85b7e1cb5599c62be9a059ab978b
parent35a23ff928b066b00a826d0a9ed9411b8ab479ef
perf tools: Replace map->referenced & maps->removed_maps with map->refcnt

Use just reference counts, so that when no more hist_entry instances
references a map and the thread instance goes away by processing a
PERF_RECORD_EXIT, we can delete the maps.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-oym7lfhcc7ss6xpz44h7nbxs@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/hist.c
tools/perf/util/map.c
tools/perf/util/map.h
This page took 0.025772 seconds and 5 git commands to generate.