From: Arnaldo Carvalho de Melo Date: Mon, 1 Oct 2012 16:58:17 +0000 (-0300) Subject: perf sched: Look up thread using tid instead of pid X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=73ee3b276864af1ca042258e67237e8454d7b7b6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git perf sched: Look up thread using tid instead of pid Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Mike Galbraith Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lkml.kernel.org/n/tip-zdu8up6vahogckg2uft7wh3n@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c index 9b9e32eaa805..3488ead3b60c 100644 --- a/tools/perf/builtin-sched.c +++ b/tools/perf/builtin-sched.c @@ -1426,7 +1426,7 @@ static int perf_sched__process_tracepoint_sample(struct perf_tool *tool __maybe_ struct perf_evsel *evsel, struct machine *machine) { - struct thread *thread = machine__findnew_thread(machine, sample->pid); + struct thread *thread = machine__findnew_thread(machine, sample->tid); int err = 0; if (thread == NULL) {