perf: Use generic sample reordering in perf trace
authorFrederic Weisbecker <fweisbec@gmail.com>
Fri, 23 Apr 2010 22:38:33 +0000 (00:38 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Sat, 24 Apr 2010 01:50:45 +0000 (03:50 +0200)
Use the new generic sample events reordering from perf trace.
Before that, the displayed traces were ordered as they were
in the input as recorded by perf record (not time ordered).

This makes eventually perf trace displaying the events as beeing
time ordered.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
tools/perf/builtin-trace.c

index 2eefb33c9679c004120e871c072255b9bcb4c872..1d034f6fa28a6fafc151468be80cfa8178105f01 100644 (file)
@@ -108,6 +108,7 @@ static struct perf_event_ops event_ops = {
        .event_type = event__process_event_type,
        .tracing_data = event__process_tracing_data,
        .build_id = event__process_build_id,
+       .ordered_samples = true,
 };
 
 extern volatile int session_done;