From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753618AbbJTHth (ORCPT ); Tue, 20 Oct 2015 03:49:37 -0400 Received: from terminus.zytor.com ([198.137.202.10]:48362 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753363AbbJTHte (ORCPT ); Tue, 20 Oct 2015 03:49:34 -0400 Date: Tue, 20 Oct 2015 00:49:19 -0700 From: tip-bot for Jiri Olsa Message-ID: Cc: kan.liang@intel.com, a.p.zijlstra@chello.nl, mingo@kernel.org, acme@redhat.com, dsahern@gmail.com, jolsa@kernel.org, namhyung@kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, hpa@zytor.com Reply-To: kan.liang@intel.com, a.p.zijlstra@chello.nl, mingo@kernel.org, acme@redhat.com, dsahern@gmail.com, jolsa@kernel.org, namhyung@kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, hpa@zytor.com In-Reply-To: <1444992092-17897-40-git-send-email-jolsa@kernel.org> References: <1444992092-17897-40-git-send-email-jolsa@kernel.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf cpu_map: Make cpu_map__build_map global Git-Commit-ID: f1cbb8f35719e36803f226d1bbf08ac12cedcd76 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: f1cbb8f35719e36803f226d1bbf08ac12cedcd76 Gitweb: http://git.kernel.org/tip/f1cbb8f35719e36803f226d1bbf08ac12cedcd76 Author: Jiri Olsa AuthorDate: Fri, 16 Oct 2015 12:41:14 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 19 Oct 2015 18:03:03 -0300 perf cpu_map: Make cpu_map__build_map global We'll need to call it from perf stat in the stat_script patchkit Signed-off-by: Jiri Olsa Tested-by: Kan Liang Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1444992092-17897-40-git-send-email-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/cpumap.c | 4 ++-- tools/perf/util/cpumap.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/cpumap.c b/tools/perf/util/cpumap.c index c51c29f..70ec8d0 100644 --- a/tools/perf/util/cpumap.c +++ b/tools/perf/util/cpumap.c @@ -258,8 +258,8 @@ static int cmp_ids(const void *a, const void *b) return *(int *)a - *(int *)b; } -static int cpu_map__build_map(struct cpu_map *cpus, struct cpu_map **res, - int (*f)(struct cpu_map *map, int cpu)) +int cpu_map__build_map(struct cpu_map *cpus, struct cpu_map **res, + int (*f)(struct cpu_map *map, int cpu)) { struct cpu_map *c; int nr = cpus->nr; diff --git a/tools/perf/util/cpumap.h b/tools/perf/util/cpumap.h index 8982d53..6e36fc3 100644 --- a/tools/perf/util/cpumap.h +++ b/tools/perf/util/cpumap.h @@ -87,4 +87,6 @@ static inline int cpu__get_node(int cpu) return cpunode_map[cpu]; } +int cpu_map__build_map(struct cpu_map *cpus, struct cpu_map **res, + int (*f)(struct cpu_map *map, int cpu)); #endif /* __PERF_CPUMAP_H */