* David Ahern <[email protected]> wrote: > perf-record updates the header in the perf.data file at termination. > Without this update perf-report (and other processing builtins) cannot > properly read events from the file -- the algorithm in > __perf_session__process_events depends on the data_size which is read > from the file header and that function loops if data_size is 0. > > Catch this condition when the file is opened and warn the user. > > v2: put error message on one line > > Signed-off-by: David Ahern <[email protected]> > Cc: Arnaldo Carvalho de Melo <[email protected]> > Cc: Ingo Molnar <[email protected]> > Cc: Frederic Weisbecker <[email protected]> > Cc: Peter Zijlstra <[email protected]> > Cc: Jiri Olsa <[email protected]> > Cc: Namhyung Kim <[email protected]> > Cc: Stephane Eranian <[email protected]>
Acked-by: Ingo Molnar <[email protected]> Thanks, Ingo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

