]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Protect accesses the map rbtrees with a rw lock
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 22 May 2015 16:45:24 +0000 (13:45 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 27 May 2015 23:25:16 +0000 (20:25 -0300)
commit44712db532c5bd37a09699d33f41c6c1473f74c0
tree21507892d91c16d26e475dc61536454f5a5c8654
parentb481e641d961bdc60f6a46d72134d4b1787b1253
perf tools: Protect accesses the map rbtrees with a rw lock

To allow concurrent access, next step: refcount struct map instances, so
that we can ditch maps->removed_maps and stop leaking threads, maps,
then struct DSO needs the same treatment.

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-o45w2w5dzrza38nzqxnqzhyf@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/map.c
tools/perf/util/map.h
tools/perf/util/symbol.c