summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2017-08-22 17:59:28 +0200
committerIngo Molnar <mingo@kernel.org>2017-08-25 11:04:17 +0200
commit1d953111b648e48923171c3c9cf17be2250544fa (patch)
treeb72fe2f9c20633a7de8f0668c5cab85cb515160a /tools/perf/scripts/python/bin/export-to-postgresql-report
parent6ae5fa61d27dcb055f4198bcf6c8dbbf1bb33f52 (diff)
downloadlinux-1d953111b648e48923171c3c9cf17be2250544fa.tar.bz2
perf/core: Don't report zero PIDs for exiting tasks
The exiting/dead task has no PIDs and in this case perf_event_pid/tid() return zero, change them to return -1 to distinguish this case from idle threads. Signed-off-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Arnaldo Carvalho <acme@kernel.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/20170822155928.GA6892@redhat.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions