From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758563AbcIWFaI (ORCPT ); Fri, 23 Sep 2016 01:30:08 -0400 Received: from terminus.zytor.com ([198.137.202.10]:49082 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754778AbcIWFaG (ORCPT ); Fri, 23 Sep 2016 01:30:06 -0400 Date: Thu, 22 Sep 2016 22:29:50 -0700 From: tip-bot for Jiri Olsa Message-ID: Cc: namhyung@kernel.org, dzickus@redhat.com, jmario@redhat.com, a.p.zijlstra@chello.nl, tglx@linutronix.de, dsahern@gmail.com, hpa@zytor.com, linux-kernel@vger.kernel.org, acme@redhat.com, andi@firstfloor.org, jolsa@kernel.org, mingo@kernel.org Reply-To: mingo@kernel.org, andi@firstfloor.org, jolsa@kernel.org, tglx@linutronix.de, a.p.zijlstra@chello.nl, dsahern@gmail.com, linux-kernel@vger.kernel.org, hpa@zytor.com, acme@redhat.com, namhyung@kernel.org, dzickus@redhat.com, jmario@redhat.com In-Reply-To: <1474558645-19956-7-git-send-email-jolsa@kernel.org> References: <1474558645-19956-7-git-send-email-jolsa@kernel.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf tools: Make several sorting functions global Git-Commit-ID: 5fe7b9b47c646dbe8501378eb3684ccd802d6d25 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: 5fe7b9b47c646dbe8501378eb3684ccd802d6d25 Gitweb: http://git.kernel.org/tip/5fe7b9b47c646dbe8501378eb3684ccd802d6d25 Author: Jiri Olsa AuthorDate: Thu, 22 Sep 2016 17:36:34 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 22 Sep 2016 13:08:57 -0300 perf tools: Make several sorting functions global Will be used from external places in the upcoming c2c patch series. Signed-off-by: Jiri Olsa Cc: Andi Kleen Cc: David Ahern Cc: Don Zickus Cc: Joe Mario Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1474558645-19956-7-git-send-email-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/sort.c | 6 +++--- tools/perf/util/sort.h | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c index 9f7c1ea..452e15a 100644 --- a/tools/perf/util/sort.c +++ b/tools/perf/util/sort.c @@ -867,7 +867,7 @@ struct sort_entry sort_cycles = { }; /* --sort daddr_sym */ -static int64_t +int64_t sort__daddr_cmp(struct hist_entry *left, struct hist_entry *right) { uint64_t l = 0, r = 0; @@ -896,7 +896,7 @@ static int hist_entry__daddr_snprintf(struct hist_entry *he, char *bf, width); } -static int64_t +int64_t sort__iaddr_cmp(struct hist_entry *left, struct hist_entry *right) { uint64_t l = 0, r = 0; @@ -1062,7 +1062,7 @@ static int hist_entry__snoop_snprintf(struct hist_entry *he, char *bf, return repsep_snprintf(bf, size, "%-*s", width, out); } -static int64_t +int64_t sort__dcacheline_cmp(struct hist_entry *left, struct hist_entry *right) { u64 l, r; diff --git a/tools/perf/util/sort.h b/tools/perf/util/sort.h index e93b0fa..099c975 100644 --- a/tools/perf/util/sort.h +++ b/tools/perf/util/sort.h @@ -274,4 +274,10 @@ int sort_dimension__add(struct perf_hpp_list *list, const char *tok, struct perf_evlist *evlist, int level); int output_field_add(struct perf_hpp_list *list, char *tok); +int64_t +sort__iaddr_cmp(struct hist_entry *left, struct hist_entry *right); +int64_t +sort__daddr_cmp(struct hist_entry *left, struct hist_entry *right); +int64_t +sort__dcacheline_cmp(struct hist_entry *left, struct hist_entry *right); #endif /* __PERF_SORT_H */