From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753387AbcDNFpJ (ORCPT ); Thu, 14 Apr 2016 01:45:09 -0400 Received: from terminus.zytor.com ([198.137.202.10]:47598 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753180AbcDNFpH (ORCPT ); Thu, 14 Apr 2016 01:45:07 -0400 Date: Wed, 13 Apr 2016 22:44:52 -0700 From: tip-bot for Jiri Olsa Message-ID: Cc: tglx@linutronix.de, a.p.zijlstra@chello.nl, acme@redhat.com, linux-kernel@vger.kernel.org, namhyung@kernel.org, mingo@kernel.org, dsahern@gmail.com, jolsa@kernel.org, hpa@zytor.com Reply-To: hpa@zytor.com, mingo@kernel.org, jolsa@kernel.org, dsahern@gmail.com, namhyung@kernel.org, linux-kernel@vger.kernel.org, acme@redhat.com, tglx@linutronix.de, a.p.zijlstra@chello.nl In-Reply-To: <1460467771-26532-6-git-send-email-jolsa@kernel.org> References: <1460467771-26532-6-git-send-email-jolsa@kernel.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf thread_map: Make new_by_tid_str constructor public Git-Commit-ID: 097be0f5034fc9edaf84253b773b14bc2af9a708 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: 097be0f5034fc9edaf84253b773b14bc2af9a708 Gitweb: http://git.kernel.org/tip/097be0f5034fc9edaf84253b773b14bc2af9a708 Author: Jiri Olsa AuthorDate: Tue, 12 Apr 2016 15:29:28 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 13 Apr 2016 10:11:51 -0300 perf thread_map: Make new_by_tid_str constructor public It will be used in following patch. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1460467771-26532-6-git-send-email-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/thread_map.c | 2 +- tools/perf/util/thread_map.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/thread_map.c b/tools/perf/util/thread_map.c index 878ac06..5654fe1 100644 --- a/tools/perf/util/thread_map.c +++ b/tools/perf/util/thread_map.c @@ -260,7 +260,7 @@ struct thread_map *thread_map__new_dummy(void) return threads; } -static struct thread_map *thread_map__new_by_tid_str(const char *tid_str) +struct thread_map *thread_map__new_by_tid_str(const char *tid_str) { struct thread_map *threads = NULL, *nt; int ntasks = 0; diff --git a/tools/perf/util/thread_map.h b/tools/perf/util/thread_map.h index 9a065ea..bd3b971 100644 --- a/tools/perf/util/thread_map.h +++ b/tools/perf/util/thread_map.h @@ -31,6 +31,8 @@ void thread_map__put(struct thread_map *map); struct thread_map *thread_map__new_str(const char *pid, const char *tid, uid_t uid); +struct thread_map *thread_map__new_by_tid_str(const char *tid_str); + size_t thread_map__fprintf(struct thread_map *threads, FILE *fp); static inline int thread_map__nr(struct thread_map *threads)