summaryrefslogtreecommitdiffstats
path: root/tools/perf/perf.h
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2016-12-06 12:40:03 +0900
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-12-07 12:00:34 -0300
commit5d92d96a947a5d0d83710d11750bb29a0c1b985d (patch)
treebe99b11fff7440a329db06554bb9fd99055caeaa /tools/perf/perf.h
parent571f1eb9b967a52732d2e1f41f1b62e27c900325 (diff)
downloadop-kernel-dev-5d92d96a947a5d0d83710d11750bb29a0c1b985d.zip
op-kernel-dev-5d92d96a947a5d0d83710d11750bb29a0c1b985d.tar.gz
perf sched timehist: Handle zero sample->tid properly
Sometimes samples have tid of 0 but non-0 pid. It ends up having a 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). Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Andi Kleen <andi@firstfloor.org> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Minchan Kim <minchan@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20161206034010.6499-4-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/perf.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud