lkml.org 
[lkml]   [2016]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 03/10] perf sched timehist: Handle zero sample->tid properly
Hi David,

On Tue, Dec 6, 2016 at 12:52 PM, David Ahern <dsahern@gmail.com> wrote:
> On 12/5/16 7:40 PM, Namhyung Kim wrote:
>> Sometimes samples have tid of 0 but non-0 pid. It ends up having a
>
> Any idea how that happens?

No, I didn't investigate it yet. Looking at the original code, you
seemed to have same issue and workaround like checking prev_pid or
callchains, right?

Thanks,
Namhyung

>
>> new thread of 0 tid/pid (instead of referring idle task) since tid is
>> used to search matching task. But I guess it's wrong to use 0 as a
>> tid when pid is set. This patch uses tid only if it has a non-zero
>> value or same as pid (of 0).

\
 
 \ /
  Last update: 2016-12-06 04:59    [W:0.086 / U:0.604 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site