From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753562Ab0LGMtI (ORCPT ); Tue, 7 Dec 2010 07:49:08 -0500 Received: from www.tglx.de ([62.245.132.106]:46592 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752588Ab0LGMtH (ORCPT ); Tue, 7 Dec 2010 07:49:07 -0500 Message-Id: <20101207124550.528788441@linutronix.de> User-Agent: quilt/0.48-1 Date: Tue, 07 Dec 2010 12:48:44 -0000 From: Thomas Gleixner To: LKML Cc: Arnaldo Carvalho de Melo , Ian Munsie , Peter Zijlstra , Frederic Weisbecker , Ingo Molnar Subject: [patch 2/9] perf: session: Dont queue events w/o timestamps References: <20101207124527.868085529@linutronix.de> Content-Disposition: inline; filename=perf-session-do-not-queue-events-w-o-timestamps.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If the event has no timestamp assigned then the parse code sets it to ~0ULL which causes the ordering code to enqueue it at the end. Process it right away. Reported-by: Ian Munsie Signed-off-by: Thomas Gleixner --- tools/perf/util/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6-tip/tools/perf/util/session.c =================================================================== --- linux-2.6-tip.orig/tools/perf/util/session.c +++ linux-2.6-tip/tools/perf/util/session.c @@ -603,7 +603,7 @@ static int perf_session_queue_event(stru u64 timestamp = data->time; struct sample_queue *new; - if (!timestamp) + if (!timestamp || timestamp == ~0ULL) return -ETIME; if (timestamp < s->ordered_samples.last_flush) {