]> git.baikalelectronics.ru Git - kernel.git/commit
perf record/report: Fix PID/COMM handling
authorIngo Molnar <mingo@elte.hu>
Thu, 4 Jun 2009 11:41:22 +0000 (13:41 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 4 Jun 2009 11:41:37 +0000 (13:41 +0200)
commitecbe2fab6480166f9c0e533c0b3f49b32d835476
tree5d666762c78320adeb2e15fe362c3b2909e0b66b
parent2a3d65d5059808fc5beb984881c317c2a01c8894
perf record/report: Fix PID/COMM handling

Fix two bugs causing lost comm mappings:

 - initial PID is not 0 but getpid()

 - when we are unable to handle an mmap event, dont assume the event
   itself is broken - try to parse the stream. This way we wont lose
   comm events.

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Documentation/perf_counter/builtin-record.c
Documentation/perf_counter/builtin-report.c