kernel-ark/tools/perf
Frederic Weisbecker 26dd2cb074 perf tools: Provide backward compatibility with previous perf.data version
We have merged the trace.info file into perf.data by adding one
section in the perf headers. This makes it incompatible with
previous version: the new perf tools can't read the older
perf.data.

To support the previous format, we check the headers size. If they
have the same size than in the previous format, then ignore the
trace info section that doesn't exist.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1255032449-12022-1-git-send-email-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-10-08 22:11:02 +02:00
..
Documentation perf timechart: Add a power-only mode 2009-10-01 09:26:40 +02:00
util perf tools: Provide backward compatibility with previous perf.data version 2009-10-08 22:11:02 +02:00
.gitignore perf tools: .gitignore += perf*.html 2009-09-24 14:01:22 +02:00
builtin-annotate.c perf tools: Up the verbose level for some really verbose stuff 2009-10-08 19:27:10 +02:00
builtin-help.c perf: Enable more compiler warnings 2009-08-16 10:47:47 +02:00
builtin-list.c perf list: Fix large list output by using the pager 2009-08-13 09:05:48 +02:00
builtin-record.c perf tools: Merge trace.info content into perf.data 2009-10-07 08:36:10 +02:00
builtin-report.c perf tools: Up the verbose level for some really verbose stuff 2009-10-08 19:27:10 +02:00
builtin-sched.c perf tools: Fix thread comm resolution in perf sched 2009-10-08 21:10:21 +02:00
builtin-stat.c perf: Propagate term signal to child 2009-10-04 19:37:39 +02:00
builtin-timechart.c perf timechart: Add a power-only mode 2009-10-01 09:26:40 +02:00
builtin-top.c perf tools: Default to 1 KHz auto-sampling freq events 2009-10-06 15:41:09 +02:00
builtin-trace.c perf tools: Unify perf.data mapping and events handling 2009-10-08 16:56:32 +02:00
builtin.h perf: Add the timechart tool 2009-09-19 11:42:13 +02:00
command-list.txt perf: Add timechart help text and add timechart to "perf help" 2009-09-19 18:57:53 +02:00
CREDITS perf_counter tools: Add CREDITS file for Git contributors 2009-06-24 19:54:29 +02:00
design.txt perf_event: Provide vmalloc() based mmap() backing 2009-10-06 14:21:50 +02:00
Makefile perf tools: Unify perf.data mapping and events handling 2009-10-08 16:56:32 +02:00
perf.c perf: Add the timechart tool 2009-09-19 11:42:13 +02:00
perf.h perf: Do the big rename: Performance Counters -> Performance Events 2009-09-21 14:28:04 +02:00