Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299233
b: refs/heads/master
c: 63fa471
h: refs/heads/master
i:
  299231: e2a6d69
v: v3
  • Loading branch information
David Miller authored and Arnaldo Carvalho de Melo committed Apr 5, 2012
1 parent 7913979 commit f8c3f0e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8b84a568117fde9b77575f2060274eddab424c32
refs/heads/master: 63fa471dd49e9c9ce029d910d1024330d9b1b145
12 changes: 12 additions & 0 deletions trunk/tools/perf/util/hist.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,18 @@ static struct hist_entry *add_hist_entry(struct hists *hists,
if (!cmp) {
he->period += period;
++he->nr_events;

/* If the map of an existing hist_entry has
* become out-of-date due to an exec() or
* similar, update it. Otherwise we will
* mis-adjust symbol addresses when computing
* the history counter to increment.
*/
if (he->ms.map != entry->ms.map) {
he->ms.map = entry->ms.map;
if (he->ms.map)
he->ms.map->referenced = true;
}
goto out;
}

Expand Down

0 comments on commit f8c3f0e

Please sign in to comment.