From 707c055ba5734ee9c4174b84de7a5db149babfa8 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Mon, 2 Jan 2017 12:08:58 +0100 Subject: [PATCH] RelAccX test analyser --- CMakeLists.txt | 1 + src/analysers/rax_analyser.cpp | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 src/analysers/rax_analyser.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index 77fd8e29..6561fc8d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -219,6 +219,7 @@ makeAnalyser(DTSC dtsc) makeAnalyser(AMF amf) makeAnalyser(MP4 mp4) makeAnalyser(OGG ogg) +makeAnalyser(RAX rax) ######################################## # MistServer - Inputs # diff --git a/src/analysers/rax_analyser.cpp b/src/analysers/rax_analyser.cpp new file mode 100644 index 00000000..96a9eae4 --- /dev/null +++ b/src/analysers/rax_analyser.cpp @@ -0,0 +1,18 @@ +#include +#include +#include + +int main(int argc, char ** argv){ + if (argc < 1){ + FAIL_MSG("Usage: %s MEMORY_PAGE_NAME"); + return 1; + } + IPC::sharedPage f(argv[1], 0, false, false); + const Util::RelAccX A(f.mapped, false); + if (A.isReady()){ + std::cout << A.toPrettyString() << std::endl; + }else{ + std::cout << "Memory structure " << argv[1] << " is not ready" << std::endl; + } +} +