aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/util/hist.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c
index 2504b5b1a308..f53d017c7c22 100644
--- a/tools/perf/util/hist.c
+++ b/tools/perf/util/hist.c
@@ -362,10 +362,10 @@ static u8 symbol__parent_filter(const struct symbol *parent)
362 return 0; 362 return 0;
363} 363}
364 364
365static struct hist_entry *add_hist_entry(struct hists *hists, 365static struct hist_entry *hists__findnew_entry(struct hists *hists,
366 struct hist_entry *entry, 366 struct hist_entry *entry,
367 struct addr_location *al, 367 struct addr_location *al,
368 bool sample_self) 368 bool sample_self)
369{ 369{
370 struct rb_node **p; 370 struct rb_node **p;
371 struct rb_node *parent = NULL; 371 struct rb_node *parent = NULL;
@@ -468,7 +468,7 @@ struct hist_entry *__hists__add_entry(struct hists *hists,
468 .transaction = transaction, 468 .transaction = transaction,
469 }; 469 };
470 470
471 return add_hist_entry(hists, &entry, al, sample_self); 471 return hists__findnew_entry(hists, &entry, al, sample_self);
472} 472}
473 473
474static int 474static int
@@ -548,9 +548,9 @@ iter_finish_mem_entry(struct hist_entry_iter *iter,
548 548
549out: 549out:
550 /* 550 /*
551 * We don't need to free iter->priv (mem_info) here since 551 * We don't need to free iter->priv (mem_info) here since the mem info
552 * the mem info was either already freed in add_hist_entry() or 552 * was either already freed in hists__findnew_entry() or passed to a
553 * passed to a new hist entry by hist_entry__new(). 553 * new hist entry by hist_entry__new().
554 */ 554 */
555 iter->priv = NULL; 555 iter->priv = NULL;
556 556