]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite34b17da096ca217660a8719b88cda7184f284be
tree14cf53530c0b85b7e1cb5599c62be9a059ab978b
parentd687df19d2015c5bf420d8212820e15590cb5bac
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