diff options
-rw-r--r-- | Documentation/perf_counter/perf-report.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/perf_counter/perf-report.cc b/Documentation/perf_counter/perf-report.cc index 933a07544534..911d7f3e7a65 100644 --- a/Documentation/perf_counter/perf-report.cc +++ b/Documentation/perf_counter/perf-report.cc | |||
@@ -402,6 +402,11 @@ int main(int argc, char *argv[]) | |||
402 | exit(-1); | 402 | exit(-1); |
403 | } | 403 | } |
404 | 404 | ||
405 | if (!stat.st_size) { | ||
406 | fprintf(stderr, "zero-sized file, nothing to do!\n"); | ||
407 | exit(0); | ||
408 | } | ||
409 | |||
405 | load_kallsyms(); | 410 | load_kallsyms(); |
406 | 411 | ||
407 | remap: | 412 | remap: |