On 12/11/13, 5:36 AM, Alexander Shishkin wrote:
From: Adrian Hunter <[email protected]>

Add a function to get the pid from the tid.

This is needed when using the sched_switch
tracepoint to follow object code execution.
sched_switch identifies the thread but, to
find the process mmaps, we need the process
pid.

Are you looking up the current or next task? If the former why not use sample->pid rather than parsing the sched_switch tracepoint?

David

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to