arch-arm: Add support for Tarmac trace generation
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Wed, 14 Mar 2018 17:26:06 +0000 (17:26 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Fri, 6 Apr 2018 10:10:10 +0000 (10:10 +0000)
commit4a66b5f7f8f9fbaec814d956ac53362a574a8620
tree90c7ca9cbad3fd06ed52ab8db59e4c79ae190a8c
parent2d1add2d5d6b49a0eac1ef9180786fe28d207098
arch-arm: Add support for Tarmac trace generation

This patch introduces the TarmacTracer: an instruction tracer which
allows to dump a gem5 execution trace in Tarmac format [1]. The new
tracer is supporting either Tarmac and TarmacV8 format specifications.
Not every traceable information has been implemented:

Implemented Trace Type:
    Instruction Trace
    Register Trace
    Processor Memory Access Trace

Unimplemented Trace Type:
    Program Flow Trace
    Event Trace
    Memory Bus Trace

[1]: https://developer.arm.com/docs/dui0845/f/tarmac-trace-file-format

Change-Id: I8799d8e5852e868673f728971db3fe8c63961f5e
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/9382
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
src/arch/arm/tracers/SConscript
src/arch/arm/tracers/TarmacTrace.py
src/arch/arm/tracers/tarmac_record.cc [new file with mode: 0644]
src/arch/arm/tracers/tarmac_record.hh [new file with mode: 0644]
src/arch/arm/tracers/tarmac_record_v8.cc [new file with mode: 0644]
src/arch/arm/tracers/tarmac_record_v8.hh [new file with mode: 0644]
src/arch/arm/tracers/tarmac_tracer.cc [new file with mode: 0644]
src/arch/arm/tracers/tarmac_tracer.hh [new file with mode: 0644]