RelAccX test analyser
This commit is contained in:
parent
1138303b40
commit
707c055ba5
2 changed files with 19 additions and 0 deletions
|
@ -219,6 +219,7 @@ makeAnalyser(DTSC dtsc)
|
||||||
makeAnalyser(AMF amf)
|
makeAnalyser(AMF amf)
|
||||||
makeAnalyser(MP4 mp4)
|
makeAnalyser(MP4 mp4)
|
||||||
makeAnalyser(OGG ogg)
|
makeAnalyser(OGG ogg)
|
||||||
|
makeAnalyser(RAX rax)
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
# MistServer - Inputs #
|
# MistServer - Inputs #
|
||||||
|
|
18
src/analysers/rax_analyser.cpp
Normal file
18
src/analysers/rax_analyser.cpp
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
#include <iostream>
|
||||||
|
#include <mist/util.h>
|
||||||
|
#include <mist/shared_memory.h>
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue