projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a43d3f0
)
perf script: Fix event ordering settings to work with older kernels
author
Arnaldo Carvalho de Melo
<
[email protected]
>
Sat, 25 Dec 2010 20:33:12 +0000
(18:33 -0200)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Sat, 25 Dec 2010 20:33:12 +0000
(18:33 -0200)
If we don't use .ordering_requires_timestamps we'll end up trying to order
events with no timestamps when running on older kernels.
Problem introduced in
eac23d1c
.
After the last three fixes, perf scripting is back working, tested with
new perf userspace on old and new (with sample_id_all) kernels.
Cc: Frederic Weisbecker <
[email protected]
>
Cc: Ian Munsie <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Mike Galbraith <
[email protected]
>
Cc: Paul Mackerras <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Stephane Eranian <
[email protected]
>
Cc: Tom Zanussi <
[email protected]
>
Cc: Torok Edwin <
[email protected]
>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/builtin-script.c
patch
|
blob
|
history
diff --git
a/tools/perf/builtin-script.c
b/tools/perf/builtin-script.c
index 6ef65c04ab9a26ee4ecdbf289d2dd9980b5edc25..43480fd66db7ebed659efe27d0415e8f68882330 100644
(file)
--- a/
tools/perf/builtin-script.c
+++ b/
tools/perf/builtin-script.c
@@
-117,6
+117,7
@@
static struct perf_event_ops event_ops = {
.tracing_data = event__process_tracing_data,
.build_id = event__process_build_id,
.lost = process_lost_event,
+ .ordering_requires_timestamps = true,
.ordered_samples = true,
};