|
@@ -413,8 +413,8 @@ out_err:
|
|
|
* the full rbtree:
|
|
|
*/
|
|
|
static struct thread*
|
|
|
-threads__get_last_match(struct threads *threads, struct machine *machine,
|
|
|
- int pid, int tid)
|
|
|
+__threads__get_last_match(struct threads *threads, struct machine *machine,
|
|
|
+ int pid, int tid)
|
|
|
{
|
|
|
struct thread *th;
|
|
|
|
|
@@ -431,12 +431,31 @@ threads__get_last_match(struct threads *threads, struct machine *machine,
|
|
|
return NULL;
|
|
|
}
|
|
|
|
|
|
+static struct thread*
|
|
|
+threads__get_last_match(struct threads *threads, struct machine *machine,
|
|
|
+ int pid, int tid)
|
|
|
+{
|
|
|
+ struct thread *th = NULL;
|
|
|
+
|
|
|
+ if (perf_singlethreaded)
|
|
|
+ th = __threads__get_last_match(threads, machine, pid, tid);
|
|
|
+
|
|
|
+ return th;
|
|
|
+}
|
|
|
+
|
|
|
static void
|
|
|
-threads__set_last_match(struct threads *threads, struct thread *th)
|
|
|
+__threads__set_last_match(struct threads *threads, struct thread *th)
|
|
|
{
|
|
|
threads->last_match = th;
|
|
|
}
|
|
|
|
|
|
+static void
|
|
|
+threads__set_last_match(struct threads *threads, struct thread *th)
|
|
|
+{
|
|
|
+ if (perf_singlethreaded)
|
|
|
+ __threads__set_last_match(threads, th);
|
|
|
+}
|
|
|
+
|
|
|
/*
|
|
|
* Caller must eventually drop thread->refcnt returned with a successful
|
|
|
* lookup/new thread inserted.
|