Commit 097be0f5 authored by Jiri Olsa's avatar Jiri Olsa Committed by Arnaldo Carvalho de Melo

perf thread_map: Make new_by_tid_str constructor public

It will be used in following patch.
Signed-off-by: default avatarJiri 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.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 8cd91195
...@@ -260,7 +260,7 @@ struct thread_map *thread_map__new_dummy(void) ...@@ -260,7 +260,7 @@ struct thread_map *thread_map__new_dummy(void)
return threads; 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; struct thread_map *threads = NULL, *nt;
int ntasks = 0; int ntasks = 0;
......
...@@ -31,6 +31,8 @@ void thread_map__put(struct thread_map *map); ...@@ -31,6 +31,8 @@ void thread_map__put(struct thread_map *map);
struct thread_map *thread_map__new_str(const char *pid, struct thread_map *thread_map__new_str(const char *pid,
const char *tid, uid_t uid); 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); size_t thread_map__fprintf(struct thread_map *threads, FILE *fp);
static inline int thread_map__nr(struct thread_map *threads) static inline int thread_map__nr(struct thread_map *threads)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment