aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2016-04-12 09:29:28 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-04-13 09:11:51 -0400
commit097be0f5034fc9edaf84253b773b14bc2af9a708 (patch)
tree2f29c9758e1715ebcd2c521dd5ae042075f8cc0c
parent8cd91195e5efc5166fc48eec6cf83ef93133b7b6 (diff)
perf thread_map: Make new_by_tid_str constructor public
It will be used in following patch. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: David Ahern <dsahern@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1460467771-26532-6-git-send-email-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--tools/perf/util/thread_map.c2
-rw-r--r--tools/perf/util/thread_map.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/util/thread_map.c b/tools/perf/util/thread_map.c
index 878ac0687b0a..5654fe15e036 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)
260 return threads; 260 return threads;
261} 261}
262 262
263static struct thread_map *thread_map__new_by_tid_str(const char *tid_str) 263struct thread_map *thread_map__new_by_tid_str(const char *tid_str)
264{ 264{
265 struct thread_map *threads = NULL, *nt; 265 struct thread_map *threads = NULL, *nt;
266 int ntasks = 0; 266 int ntasks = 0;
diff --git a/tools/perf/util/thread_map.h b/tools/perf/util/thread_map.h
index 9a065ea69ff1..bd3b971588da 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);
31struct thread_map *thread_map__new_str(const char *pid, 31struct thread_map *thread_map__new_str(const char *pid,
32 const char *tid, uid_t uid); 32 const char *tid, uid_t uid);
33 33
34struct thread_map *thread_map__new_by_tid_str(const char *tid_str);
35
34size_t thread_map__fprintf(struct thread_map *threads, FILE *fp); 36size_t thread_map__fprintf(struct thread_map *threads, FILE *fp);
35 37
36static inline int thread_map__nr(struct thread_map *threads) 38static inline int thread_map__nr(struct thread_map *threads)