diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-01-04 14:42:37 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-01-04 14:42:37 -0500 |
commit | f4541daee0c39a10bb886d38cf9f742fa7acc2a3 (patch) | |
tree | 8073339800454e283bf31e041e8c2f519ac47dd3 | |
parent | 7d2d3fd2241384f6549bb1533345fcd21267c497 (diff) | |
parent | 65a14e3c0cc780961e380e3a339ecddd0b0b7548 (diff) |
Merge branch 'trace-cmd' into trace-view
-rw-r--r-- | trace-input.c | 5 |
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 * | |||
975 | tracecmd_read_cpu_first(struct tracecmd_input *handle, int cpu) | 975 | tracecmd_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 | } |