|author||David Miller <email@example.com>||2012-03-27 03:14:18 -0400|
|committer||Arnaldo Carvalho de Melo <firstname.lastname@example.org>||2012-04-05 18:53:47 -0300|
|parent||perf annotate: Fix hist decay (diff)|
perf hists: Catch and handle out-of-date hist entry maps.
When a process exec()'s, all the maps are retired, but we keep the hist entries around which hold references to those outdated maps. If the same library gets mapped in for which we have hist entries, a new map will be created. But when we take a perf entry hit within that map, we'll find the existing hist entry with the older map. This causes symbol translations to be done incorrectly. For example, the perf entry processing will lookup the correct uptodate map entry and use that to calculate the symbol and DSO relative address. But later when we update the histogram we'll translate the address using the outdated map file instead leading to conditions such as out-of-range offsets in symbol__inc_addr_samples(). Therefore, update the map of the hist_entry dynamically at lookup/ creation time. Signed-off-by: David S. Miller <email@example.com> Cc: firstname.lastname@example.org Link: http://email@example.com Signed-off-by: Arnaldo Carvalho de Melo <firstname.lastname@example.org>
Diffstat (limited to 'tools/perf/util/ui')
0 files changed, 0 insertions, 0 deletions