|
@@ -223,7 +223,7 @@ static struct hist_entry *hist_entry__new(struct hist_entry *template)
|
|
|
|
|
|
if (he != NULL) {
|
|
|
*he = *template;
|
|
|
- he->stat.nr_events = 1;
|
|
|
+
|
|
|
if (he->ms.map)
|
|
|
he->ms.map->referenced = true;
|
|
|
if (symbol_conf.use_callchain)
|
|
@@ -323,6 +323,7 @@ struct hist_entry *__hists__add_branch_entry(struct hists *self,
|
|
|
.level = al->level,
|
|
|
.stat = {
|
|
|
.period = period,
|
|
|
+ .nr_events = 1,
|
|
|
},
|
|
|
.parent = sym_parent,
|
|
|
.filtered = symbol__parent_filter(sym_parent),
|
|
@@ -348,6 +349,7 @@ struct hist_entry *__hists__add_entry(struct hists *self,
|
|
|
.level = al->level,
|
|
|
.stat = {
|
|
|
.period = period,
|
|
|
+ .nr_events = 1,
|
|
|
},
|
|
|
.parent = sym_parent,
|
|
|
.filtered = symbol__parent_filter(sym_parent),
|