Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jiri Olsa and committed by
Arnaldo Carvalho de Melo
097be0f5 8cd91195

+3 -1
+1 -1
tools/perf/util/thread_map.c
··· 260 260 return threads; 261 261 } 262 262 263 - static struct thread_map *thread_map__new_by_tid_str(const char *tid_str) 263 + struct thread_map *thread_map__new_by_tid_str(const char *tid_str) 264 264 { 265 265 struct thread_map *threads = NULL, *nt; 266 266 int ntasks = 0;
+2
tools/perf/util/thread_map.h
··· 31 31 struct thread_map *thread_map__new_str(const char *pid, 32 32 const char *tid, uid_t uid); 33 33 34 + struct thread_map *thread_map__new_by_tid_str(const char *tid_str); 35 + 34 36 size_t thread_map__fprintf(struct thread_map *threads, FILE *fp); 35 37 36 38 static inline int thread_map__nr(struct thread_map *threads)