From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752900AbbE0Qrx (ORCPT ); Wed, 27 May 2015 12:47:53 -0400 Received: from terminus.zytor.com ([198.137.202.10]:38906 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752720AbbE0Qrr (ORCPT ); Wed, 27 May 2015 12:47:47 -0400 Date: Wed, 27 May 2015 09:47:27 -0700 From: tip-bot for Arnaldo Carvalho de Melo Message-ID: Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org, hpa@zytor.com, eranian@google.com, dsahern@gmail.com, acme@redhat.com, fweisbec@gmail.com, bp@suse.de, adrian.hunter@intel.com, namhyung@kernel.org, jolsa@redhat.com, dzickus@redhat.com, mingo@kernel.org Reply-To: linux-kernel@vger.kernel.org, hpa@zytor.com, eranian@google.com, dsahern@gmail.com, tglx@linutronix.de, bp@suse.de, acme@redhat.com, fweisbec@gmail.com, jolsa@redhat.com, mingo@kernel.org, dzickus@redhat.com, adrian.hunter@intel.com, namhyung@kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf hists: Rename add_hist_entry to hists__findnew_entry Git-Commit-ID: e7e0efcdb807a570b11f240e2608d7aed5ccdfb1 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: e7e0efcdb807a570b11f240e2608d7aed5ccdfb1 Gitweb: http://git.kernel.org/tip/e7e0efcdb807a570b11f240e2608d7aed5ccdfb1 Author: Arnaldo Carvalho de Melo AuthorDate: Tue, 19 May 2015 11:31:22 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 27 May 2015 12:21:43 -0300 perf hists: Rename add_hist_entry to hists__findnew_entry To match the convention used elsewhere. Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Don Zickus Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Namhyung Kim Cc: Stephane Eranian Link: http://lkml.kernel.org/n/tip-66oo6yn8upssfeuprwy0il1q@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/hist.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c index 2504b5b..f53d017 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) return 0; } -static struct hist_entry *add_hist_entry(struct hists *hists, - struct hist_entry *entry, - struct addr_location *al, - bool sample_self) +static struct hist_entry *hists__findnew_entry(struct hists *hists, + struct hist_entry *entry, + struct addr_location *al, + bool sample_self) { struct rb_node **p; struct rb_node *parent = NULL; @@ -468,7 +468,7 @@ struct hist_entry *__hists__add_entry(struct hists *hists, .transaction = transaction, }; - return add_hist_entry(hists, &entry, al, sample_self); + return hists__findnew_entry(hists, &entry, al, sample_self); } static int @@ -548,9 +548,9 @@ iter_finish_mem_entry(struct hist_entry_iter *iter, out: /* - * We don't need to free iter->priv (mem_info) here since - * the mem info was either already freed in add_hist_entry() or - * passed to a new hist entry by hist_entry__new(). + * We don't need to free iter->priv (mem_info) here since the mem info + * was either already freed in hists__findnew_entry() or passed to a + * new hist entry by hist_entry__new(). */ iter->priv = NULL;