import-trace: introduce RegisterImporter

The RegisterImporter disassembles the binary and adds a trace event
for each byte read or written from register. The register number (Fail
Register Numbers are used) and the offset within the register are
encoded within the trace event.

Change-Id: I2d2fd720841fedeeff5f28b64f24ec5f6d2ea0c3
This commit is contained in:
Christian Dietrich
2013-07-04 13:38:32 +02:00
parent bedb9c2eb2
commit f47d50b182
5 changed files with 231 additions and 1 deletions

View File

@ -6,6 +6,7 @@ set(SRCS
if (BUILD_LLVM_DISASSEMBLER)
set(SRCS ${SRCS}
InstructionImporter.cc
RegisterImporter.cc
)
include(FindLLVM)
@ -30,5 +31,4 @@ if (BUILD_LLVM_DISASSEMBLER)
target_link_libraries(import-trace fail-llvmdisassembler fail-sal ${LLVM_LIBS} ${LLVM_LDFLAGS})
endif (BUILD_LLVM_DISASSEMBLER)
install(TARGETS import-trace RUNTIME DESTINATION bin)