diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2015-08-18 18:19:50 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2015-08-21 15:39:30 +0000 |
| commit | 66671d001aeb525b9101e0ccb9062627539de555 (patch) | |
| tree | 03813a786b503317b6b06dc93f2b53c1ac715ef5 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
| parent | perf tools: Add example call-graph script (diff) | |
| download | kernel-66671d001aeb525b9101e0ccb9062627539de555.tar.gz kernel-66671d001aeb525b9101e0ccb9062627539de555.zip | |
perf tools: Initialize reference counts in map__clone()
Map clone was written before we introduced reference counts for
maps and dsos, so all that was needed was just a copy and then we
would insert it into the new map_groups instance.
Fix it by, after copying, initializing the map->refcnt, grabbing
a struct dso refcount and resetting pointers that may be used
to determine if a map, when deleted, is in a rb_tree.
Cc: Adrian Hunter <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: David Ahern <[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]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions
