perf session: Do not fail on processing out of order event
[firefly-linux-kernel-4.4.55.git] / tools / perf / util / session.c
index e392202b96bc2fc4291b55cd9678090da74cb579..6f593a704ea5621a167ae7d6c784662a2e4233f0 100644 (file)
@@ -656,8 +656,7 @@ static int perf_session_queue_event(struct perf_session *s, union perf_event *ev
                return -ETIME;
 
        if (timestamp < s->ordered_samples.last_flush) {
-               printf("Warning: Timestamp below last timeslice flush\n");
-               return -EINVAL;
+               s->stats.nr_unordered_events++;
        }
 
        if (!list_empty(sc)) {
@@ -1057,6 +1056,8 @@ static void perf_session__warn_about_errors(const struct perf_session *session,
                            "Do you have a KVM guest running and not using 'perf kvm'?\n",
                            session->stats.nr_unprocessable_samples);
        }
+       if (session->stats.nr_unordered_events != 0)
+               ui__warning("%u out of order events recorded.\n", session->stats.nr_unordered_events);
 }
 
 #define session_done() (*(volatile int *)(&session_done))