diff options
-rw-r--r-- | trace-input.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/trace-input.c b/trace-input.c index f967591..3cd6387 100644 --- a/trace-input.c +++ b/trace-input.c | |||
@@ -846,6 +846,9 @@ tracecmd_set_cpu_to_timestamp(struct tracecmd_input *handle, int cpu, | |||
846 | if (cpu_data->timestamp == ts) | 846 | if (cpu_data->timestamp == ts) |
847 | return 0; | 847 | return 0; |
848 | 848 | ||
849 | /* Set to the first record on current page */ | ||
850 | update_page_info(handle, cpu); | ||
851 | |||
849 | if (cpu_data->timestamp < ts) { | 852 | if (cpu_data->timestamp < ts) { |
850 | start = cpu_data->offset; | 853 | start = cpu_data->offset; |
851 | end = cpu_data->file_offset + cpu_data->file_size; | 854 | end = cpu_data->file_offset + cpu_data->file_size; |