aboutsummaryrefslogtreecommitdiffstats
path: root/trace-input.c
diff options
context:
space:
mode:
Diffstat (limited to 'trace-input.c')
-rw-r--r--trace-input.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/trace-input.c b/trace-input.c
index 69c2ce7..aa16ab1 100644
--- a/trace-input.c
+++ b/trace-input.c
@@ -902,7 +902,8 @@ tracecmd_read_at(struct tracecmd_input *handle, unsigned long long offset,
902 902
903 /* check to see if we have this page already */ 903 /* check to see if we have this page already */
904 for (cpu = 0; cpu < handle->cpus; cpu++) { 904 for (cpu = 0; cpu < handle->cpus; cpu++) {
905 if (handle->cpu_data[cpu].offset == page_offset) 905 if (handle->cpu_data[cpu].offset == page_offset &&
906 handle->cpu_data[cpu].file_size)
906 break; 907 break;
907 } 908 }
908 909