perf tools: Protect accesses the map rbtrees with a rw lock
authorArnaldo Carvalho de Melo <[email protected]>
Fri, 22 May 2015 16:45:24 +0000 (13:45 -0300)
committerArnaldo Carvalho de Melo <[email protected]>
Wed, 27 May 2015 23:25:16 +0000 (20:25 -0300)
commit6a2ffcddad22ead7ce75c5773e87895b91e7cca7
tree21507892d91c16d26e475dc61536454f5a5c8654
parent1eee78aea9252fabcd333805d5d9fa42a1bf9427
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 <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Don Zickus <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/map.c
tools/perf/util/map.h
tools/perf/util/symbol.c