diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2009-12-23 20:53:14 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-12-23 20:53:14 -0500 |
commit | ad74a02a57cfa34642f05fcc483029a2d123c5cc (patch) | |
tree | 18b43f4dfac3aa624baf5ebf8b69e7a7710ec786 | |
parent | 2d25338455979714efd8b4866c5cfd06e6a37fe0 (diff) | |
parent | 92698953dcccb8cba9d363d3cca085115c11f2e4 (diff) |
Merge branch 'trace-cmd' into trace-view
-rw-r--r-- | trace-input.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/trace-input.c b/trace-input.c index 72a604e..0bb750c 100644 --- a/trace-input.c +++ b/trace-input.c | |||
@@ -920,7 +920,7 @@ tracecmd_read_cpu_first(struct tracecmd_input *handle, int cpu) | |||
920 | struct record * | 920 | struct record * |
921 | tracecmd_read_cpu_last(struct tracecmd_input *handle, int cpu) | 921 | tracecmd_read_cpu_last(struct tracecmd_input *handle, int cpu) |
922 | { | 922 | { |
923 | struct record *record; | 923 | struct record *record = NULL; |
924 | off64_t offset; | 924 | off64_t offset; |
925 | 925 | ||
926 | offset = handle->cpu_data[cpu].file_offset + | 926 | offset = handle->cpu_data[cpu].file_offset + |
@@ -934,6 +934,7 @@ tracecmd_read_cpu_last(struct tracecmd_input *handle, int cpu) | |||
934 | get_page(handle, cpu, offset); | 934 | get_page(handle, cpu, offset); |
935 | 935 | ||
936 | do { | 936 | do { |
937 | free_record(record); | ||
937 | record = tracecmd_read_data(handle, cpu); | 938 | record = tracecmd_read_data(handle, cpu); |
938 | if (record) | 939 | if (record) |
939 | offset = record->offset; | 940 | offset = record->offset; |