aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorStephane Eranian <[email protected]>2012-02-09 23:21:08 +0100
committerIngo Molnar <[email protected]>2012-03-09 08:26:07 +0100
commit114382a0aea97974803c942f106d462cbca5c64d (patch)
treeb7557e44097fc13e6ebdec51ba8d14e5c63a61d9 /tools/perf/util/scripting-engines/trace-event-python.c
parent62db90681c0db8c76e5db006b929a2edd5d12ae6 (diff)
perf tools: Make perf able to read files from older ABIs
This patches provides a way to handle legacy perf.data files. Legacy files are those using the older PERFFILE signature. For those, it is still necessary to detect endianness but without comparing their header->attr_size with the tool's own version as it may be different. Instead, we use a reference table for all known sizes from the legacy era. We try all the combinations for sizes and endianness. If we find a match, we proceed, otherwise we return: "incompatible file format". This is also done for the pipe-mode file format. Signed-off-by: Stephane Eranian <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions