diff options
Diffstat (limited to 'Documentation/perf_counter/perf-report.cc')
-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 933a0754453..911d7f3e7a6 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[]) exit(-1); } + if (!stat.st_size) { + fprintf(stderr, "zero-sized file, nothing to do!\n"); + exit(0); + } + load_kallsyms(); remap: |