]> git.baikalelectronics.ru Git - kernel.git/commit
perf session: Skip event correctly for unknown id/machine
authorJiri Olsa <jolsa@redhat.com>
Thu, 12 Apr 2012 12:21:01 +0000 (14:21 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 12 Apr 2012 15:14:50 +0000 (12:14 -0300)
commit1dae9c3e77e046714b3e2ec0dade373260bc059d
tree68dd9e7c0166308f19dcc2f7f21440878fc7728b
parent1fcec3c51b73635e47389265032d9d55bae14a08
perf session: Skip event correctly for unknown id/machine

In case the perf_session__process_event function fails, we estimate the
next event offset.

This is not necessary for sample event failing on unknown ID or machine.
In such case we know proper size of the event, so we dont need to guess.
Also failure statistics are updated correctly so we don't miss any
information.

Forcing perf_session__process_event to return 0 in case of unknown ID or
machine.

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1334233262-5679-3-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/session.c