]> git.baikalelectronics.ru Git - kernel.git/commit
perf session: Fail on processing event with unknown size
authorJiri Olsa <jolsa@redhat.com>
Mon, 16 Apr 2012 18:42:51 +0000 (20:42 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 4 May 2012 14:53:22 +0000 (11:53 -0300)
commitee1d76d77773d08d6ca88cc2a618124f34093848
tree54c4581ee79eea4e51530f9b423b8f7e825140e4
parentd431c9e58963fb132d8b846e6f7fc529fe3ce168
perf session: Fail on processing event with unknown size

Currently if we cannot decide the size of the event, we guess next
event possition by:
  "... check alignment, and increment a single u64 in the hope
  to catch on again 'soon'"

This usually ends up with segfault or endless loop. It's better
to admit the failure right away, then pretend nothing happened.
It makes the life easier ;)

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
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/20120416184251.GA11503@m.brq.redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/session.c