aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--trace-input.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/trace-input.c b/trace-input.c
index 26f6373..1462b4b 100644
--- a/trace-input.c
+++ b/trace-input.c
@@ -975,6 +975,11 @@ struct record *
975tracecmd_read_cpu_first(struct tracecmd_input *handle, int cpu) 975tracecmd_read_cpu_first(struct tracecmd_input *handle, int cpu)
976{ 976{
977 get_page(handle, cpu, handle->cpu_data[cpu].file_offset); 977 get_page(handle, cpu, handle->cpu_data[cpu].file_offset);
978 handle->cpu_data[cpu].index = 0;
979 if (handle->cpu_data[cpu].next) {
980 free_record(handle->cpu_data[cpu].next);
981 handle->cpu_data[cpu].next = NULL;
982 }
978 983
979 return tracecmd_read_data(handle, cpu); 984 return tracecmd_read_data(handle, cpu);
980} 985}