mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
perf hists: Rename add_hist_entry to hists__findnew_entry
To match the convention used elsewhere. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Borislav Petkov <bp@suse.de> Cc: David Ahern <dsahern@gmail.com> Cc: Don Zickus <dzickus@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-66oo6yn8upssfeuprwy0il1q@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
063bd9363b
commit
e7e0efcdb8
1 changed files with 8 additions and 8 deletions
|
@ -362,10 +362,10 @@ static u8 symbol__parent_filter(const struct symbol *parent)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct hist_entry *add_hist_entry(struct hists *hists,
|
static struct hist_entry *hists__findnew_entry(struct hists *hists,
|
||||||
struct hist_entry *entry,
|
struct hist_entry *entry,
|
||||||
struct addr_location *al,
|
struct addr_location *al,
|
||||||
bool sample_self)
|
bool sample_self)
|
||||||
{
|
{
|
||||||
struct rb_node **p;
|
struct rb_node **p;
|
||||||
struct rb_node *parent = NULL;
|
struct rb_node *parent = NULL;
|
||||||
|
@ -468,7 +468,7 @@ struct hist_entry *__hists__add_entry(struct hists *hists,
|
||||||
.transaction = transaction,
|
.transaction = transaction,
|
||||||
};
|
};
|
||||||
|
|
||||||
return add_hist_entry(hists, &entry, al, sample_self);
|
return hists__findnew_entry(hists, &entry, al, sample_self);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -548,9 +548,9 @@ iter_finish_mem_entry(struct hist_entry_iter *iter,
|
||||||
|
|
||||||
out:
|
out:
|
||||||
/*
|
/*
|
||||||
* We don't need to free iter->priv (mem_info) here since
|
* We don't need to free iter->priv (mem_info) here since the mem info
|
||||||
* the mem info was either already freed in add_hist_entry() or
|
* was either already freed in hists__findnew_entry() or passed to a
|
||||||
* passed to a new hist entry by hist_entry__new().
|
* new hist entry by hist_entry__new().
|
||||||
*/
|
*/
|
||||||
iter->priv = NULL;
|
iter->priv = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue