diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-10-13 10:16:29 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-10-13 11:12:18 -0400 |
commit | d5b889f2ecec7849e851ddd31c34bdfb3482b5de (patch) | |
tree | 001c95641ddf734a1e5e1fdee7e821f042c08f0b /tools/perf/util/thread.h | |
parent | f4f0b418188cc7995375acbb54e87c80f21861bd (diff) |
perf tools: Move threads & last_match to threads.c
This was just being copy'n'pasted all over.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Mike Galbraith <efault@gmx.de>
LKML-Reference: <20091013141629.GD21809@ghostprotocols.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/thread.h')
-rw-r--r-- | tools/perf/util/thread.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/perf/util/thread.h b/tools/perf/util/thread.h index 845d9b62f96f..1abef3b7455d 100644 --- a/tools/perf/util/thread.h +++ b/tools/perf/util/thread.h | |||
@@ -15,13 +15,11 @@ struct thread { | |||
15 | }; | 15 | }; |
16 | 16 | ||
17 | int thread__set_comm(struct thread *self, const char *comm); | 17 | int thread__set_comm(struct thread *self, const char *comm); |
18 | struct thread * | 18 | struct thread *threads__findnew(pid_t pid); |
19 | threads__findnew(pid_t pid, struct rb_root *threads, struct thread **last_match); | 19 | struct thread *register_idle_thread(void); |
20 | struct thread * | ||
21 | register_idle_thread(struct rb_root *threads, struct thread **last_match); | ||
22 | void thread__insert_map(struct thread *self, struct map *map); | 20 | void thread__insert_map(struct thread *self, struct map *map); |
23 | int thread__fork(struct thread *self, struct thread *parent); | 21 | int thread__fork(struct thread *self, struct thread *parent); |
24 | size_t threads__fprintf(FILE *fp, struct rb_root *threads); | 22 | size_t threads__fprintf(FILE *fp); |
25 | 23 | ||
26 | void maps__insert(struct rb_root *maps, struct map *map); | 24 | void maps__insert(struct rb_root *maps, struct map *map); |
27 | struct map *maps__find(struct rb_root *maps, u64 ip); | 25 | struct map *maps__find(struct rb_root *maps, u64 ip); |