android_kernel_samsung_msm8976/tools
Namhyung Kim 7a0ef23400 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>
2019-07-27 21:52:40 +02:00
..
cgroup
firewire
hv
include/tools
lguest
lib This is the 3.10.98 stable release 2017-04-18 17:17:24 +02:00
net
nfsd
perf perf session: Fix infinite loop on invalid perf.data file 2019-07-27 21:52:40 +02:00
power tools/power turbostat: Use $(CURDIR) instead of $(PWD) and add support for O= option in Makefile 2015-05-06 21:56:26 +02:00
scripts
testing ktest: Fix child exit code processing 2019-07-27 21:43:09 +02:00
usb tools: ffs-test: fix header values endianess 2014-07-09 11:14:02 -07:00
virtio
vm tools/vm/slabinfo: fix an unintentional printf 2019-07-27 21:42:47 +02:00
Makefile tools: Add a "make all" rule 2016-03-03 15:06:19 -08:00
dtbTool Import latest Samsung release 2017-04-18 03:43:52 +02:00
mkbootimg Import latest Samsung release 2017-04-18 03:43:52 +02:00