Skip to contentSkip to conversation

perf sched: Look up thread using tid instead of pid

tip:perf/urgent tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Oct 5, 2012 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  73ee3b276864af1ca042258e67237e8454d7b7b6
Gitweb:     http://git.kernel.org/tip/73ee3b276864af1ca042258e67237e8454d7b7b6
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Mon, 1 Oct 2012 13:58:17 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Tue, 2 Oct 2012 18:36:28 -0300

perf sched: Look up thread using tid instead of pid

Cc David Ahern <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Mike Galbraith <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Stephane Eranian <[email protected]>
---
 tools/perf/builtin-sched.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/perf/builtin-sched.c +1 -1
index 9b9e32e..3488ead 100644
@@ -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) {