perf machine: Introduce find_thread method
authorArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 6 Oct 2012 18:43:20 +0000 (15:43 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 6 Oct 2012 19:33:22 +0000 (16:33 -0300)
commit9d2f8e22fc965bcdd5561d000d234fe2d23657ba
treeb0f328b99b87e904c3222ab815e8599e0fe7c29e
parent0c1fe6b2f30fa275d939071293b6e28771283f6d
perf machine: Introduce find_thread method

There are cases where we want just to find a thread if it exists
already, so provide a method for that.

While doing that start moving 'machine' methods to a separate file.

Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-8wpzqs9kfupng6xq8hx6lnxa@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile
tools/perf/util/machine.c [new file with mode: 0644]
tools/perf/util/machine.h [new file with mode: 0644]
tools/perf/util/thread.c
tools/perf/util/thread.h