]> git.baikalelectronics.ru Git - kernel.git/commit
perf machine: Fix map groups of threads with unknown pids
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 16 Jul 2014 08:07:13 +0000 (11:07 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 17 Jul 2014 13:31:02 +0000 (10:31 -0300)
commit5ef8d08ecb77c5e669ba64a64fca92b4b690dfcb
tree1f76cbf7b31b8439fa1a27b05314aad3450261b8
parentbca1bd58354b817fb6b2058539141301d9c089ea
perf machine: Fix map groups of threads with unknown pids

Events like sched_switch do not provide a pid (tgid) which can result in
threads with an unknown pid.  If the pid is later discovered, join the
map groups.

Note the thread's map groups should be empty because they are populated
by MMAP events which do provide the pid and tid.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1405498033-23817-1-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/machine.c
tools/perf/util/map.c
tools/perf/util/map.h