diff options
Diffstat (limited to 'simpleperf/event_selection_set.cpp')
-rw-r--r-- | simpleperf/event_selection_set.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/simpleperf/event_selection_set.cpp b/simpleperf/event_selection_set.cpp index d5bca318..58b4b956 100644 --- a/simpleperf/event_selection_set.cpp +++ b/simpleperf/event_selection_set.cpp @@ -840,14 +840,7 @@ bool EventSelectionSet::ReadMmapEventData(bool with_time_limit) { } bool EventSelectionSet::FinishReadMmapEventData() { - // Stop the read thread, so we don't get more records beyond current time. - if (!SyncKernelBuffer() || !record_read_thread_->StopReadThread()) { - return false; - } - if (!ReadMmapEventData(false)) { - return false; - } - return true; + return ReadMmapEventData(false); } void EventSelectionSet::CloseEventFiles() { |