Files
android_kernel_xiaomi_sm8450/tools/perf/util
Namhyung Kim b314e5cfd1 perf session: Fix infinite loop on invalid perf.data file
perf-record updates the header in the perf.data file at termination.
Without this update perf-report (and other processing built-ins) it
caused an infinite loop when perf report (or something like) called.

This is because the algorithm in __perf_session__process_events()
depends on the data_size which is read from file header.  Use file size
directly instead in this case to do the best-effort processing.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Tested-by: David Ahern <dsahern@gmail.com>
Tested-by: Sonny Rao <sonnyrao@chromium.org>
Acked-by: Ingo Molnar <mingo@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Sonny Rao <sonnyrao@chromium.org>
Link: http://lkml.kernel.org/r/1380529188-27193-1-git-send-email-namhyung@kernel.org
Signed-off-by: David Ahern <dsahern@gmail.com>
[ Reworded warning as per Ingo Molnar suggestion, replaces 'perf.data'
  with session->filename, to precisely identify the data file involved ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2013-10-04 15:17:46 -03:00
..
2013-09-11 10:09:32 -03:00
2011-02-16 13:30:48 +01:00
2013-03-25 16:13:26 -03:00
2012-02-13 23:17:40 -02:00
2012-12-09 08:46:07 -03:00
2013-09-11 10:09:32 -03:00
2013-09-11 10:09:32 -03:00
2013-09-02 14:58:20 -03:00
2013-09-11 10:09:32 -03:00
2013-09-11 10:09:32 -03:00
2013-09-11 10:09:32 -03:00
2013-09-11 10:09:32 -03:00
2012-10-02 18:36:24 -03:00
2012-08-03 10:37:21 -03:00
2013-08-07 17:35:26 -03:00
2013-08-07 17:35:26 -03:00
2013-03-13 17:00:33 -03:00
2012-05-17 12:32:54 -03:00
2013-08-27 11:05:53 -03:00
2013-08-27 11:05:53 -03:00
2013-09-11 10:09:32 -03:00
2013-07-08 17:59:07 -03:00