aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2013-09-30 08:19:48 +0000
committerArnaldo Carvalho de Melo <[email protected]>2013-10-04 18:17:46 +0000
commitb314e5cfd11fd78545ce6c2be42646254390c1aa (patch)
tree9316fed404c26d55ae87ae6b68b4842e78c820b9 /drivers/net/xen-netback/interface.c
parentperf tools: Fix installation of libexec components (diff)
downloadkernel-b314e5cfd11fd78545ce6c2be42646254390c1aa.tar.gz
kernel-b314e5cfd11fd78545ce6c2be42646254390c1aa.zip
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 <[email protected]> Tested-by: David Ahern <[email protected]> Tested-by: Sonny Rao <[email protected]> Acked-by: Ingo Molnar <[email protected]> Cc: David Ahern <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Sonny Rao <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: David Ahern <[email protected]> [ 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 <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions