Avoid perf-report barfing on 0-length data files. Signed-off-by: Peter Zijlstra --- Documentation/perf_counter/perf-report.cc | 5 +++++ 1 file changed, 5 insertions(+) Index: linux-2.6/Documentation/perf_counter/perf-report.cc =================================================================== --- linux-2.6.orig/Documentation/perf_counter/perf-report.cc +++ linux-2.6/Documentation/perf_counter/perf-report.cc @@ -402,6 +402,11 @@ int main(int argc, char *argv[]) exit(-1); } + if (!stat.st_size) { + fprintf(stderr, "zero-sized file, nothing to do!\n"); + exit(0); + } + load_kallsyms(); remap: -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/