lkml.org 
[lkml]   [2013]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v0 13/71] perf tools: Add machine__get_thread_pid()
Date
David Ahern <dsahern@gmail.com> writes:
>
> Are you looking up the current or next task? If the former why not use
> sample->pid rather than parsing the sched_switch tracepoint?

The itrace stream doesn't have a pid field, and it needs the exact
time stamp of the switch. There may not actually be any samples
before decoding.

-Andi
--
ak@linux.intel.com -- Speaking for myself only


\
 
 \ /
  Last update: 2013-12-11 23:01    [W:0.552 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site