aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2010-01-04 14:42:37 -0500
committerSteven Rostedt <rostedt@goodmis.org>2010-01-04 14:42:37 -0500
commitf4541daee0c39a10bb886d38cf9f742fa7acc2a3 (patch)
tree8073339800454e283bf31e041e8c2f519ac47dd3
parent7d2d3fd2241384f6549bb1533345fcd21267c497 (diff)
parent65a14e3c0cc780961e380e3a339ecddd0b0b7548 (diff)
Merge branch 'trace-cmd' into trace-view
-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}