]> Pileus Git - ~andy/linux/commit
perf top: Don't process samples with no valid machine object
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 10 Feb 2012 17:05:04 +0000 (18:05 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 14 Feb 2012 00:55:58 +0000 (22:55 -0200)
commit0c095715b388d19d7a0b7e8eaceeceb018f5b3d1
tree5938972af1770fdd2c26866bebaf44e4e082948c
parentb52956c961be3a04182ae7b776623531601e0fb7
perf top: Don't process samples with no valid machine object

The perf sample processing code relies on a valid machine object. Make
sure that this path is only entered when such a object exists.

A counter for samples where no machine object exits is also introduced
to give the user a message about these samples.

Reported-by: David Ahern <dsahern@gmail.com>
Reported-by: Jason Wang <jasowang@redhat.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Jason Wang <jasowang@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1328893505-4115-2-git-send-email-joerg.roedel@amd.com
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-top.c
tools/perf/util/hist.h
tools/perf/util/session.c