perf tools: Check if a map is still in use when deleting it
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 25 May 2015 18:30:09 +0000 (15:30 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 27 May 2015 23:27:16 +0000 (20:27 -0300)
commitfacf3f0621b2e11957af1aae9085730ea78ccf85
treed898cea7cc764ce699c7da383310ed9c28b0bf3b
parent6a2ffcddad22ead7ce75c5773e87895b91e7cca7
perf tools: Check if a map is still in use when deleting it

I.e. match RB_CLEAR_NODE() with RB_EMPTY_NODE(), to check that it isn't
in a rb tree at the time of its deletion.

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