lkml.org 
[lkml]   [2013]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v0 13/71] perf tools: Add machine__get_thread_pid()
    On 11/12/13 21:28, David Ahern wrote:
    > On 12/11/13, 5:36 AM, Alexander Shishkin wrote:
    >> From: Adrian Hunter <adrian.hunter@intel.com>
    >>
    >> 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?

    Next pid unfortunately.



    \
     
     \ /
      Last update: 2013-12-12 15:21    [W:4.046 / U:0.308 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site