| From | Andi Kleen <> | Subject | Re: [PATCH v0 13/71] perf tools: Add machine__get_thread_pid() | Date | Wed, 11 Dec 2013 13:18:54 -0800 |
| |
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
|