Last active
April 28, 2022 13:18
-
-
Save tasosxak/57e8338909939e10de24aca7350f383b to your computer and use it in GitHub Desktop.
tracemonitor_runtime_with_master.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var moni_ = new PropertyMonitor | |
def eval(event: String): Boolean = { | |
//println("MONITOR RECEIVED: ", event) | |
openResultFile("dejavu-results") | |
var input = event.split(",") | |
var name = input(0) | |
var args = new ListBuffer[Any]() | |
Options.BITS = 20 | |
for (i <- 1 until input.length) { | |
args += input(i) | |
} | |
moni_.lineNr+=1 | |
//println("arguments:", args.toList) | |
moni_.submit(name, args.toList) | |
//println("%d",moni_.lineNr) | |
closeResultFile() | |
return true; | |
} |
If you want to find a java function's signature in bytecode format run:
javap -v -classpath TraceMonitor.jar TraceMonitor
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to compile the Master with the monitor jar file ?
g++ src/DEPLOY_TEMPLATE.cpp -I includes -I/usr/lib/jvm/java-1.11.0-openjdk-amd64/include/ -I/usr/lib/jvm/java-1.11.0-openjdk-amd64/include/linux -L/lib64 -Lbip_example -ljvm -ldl -o master
Problems with libjvm.so ?
sudo ln -s /usr/lib/jvm/java-1.11.0-openjdk-amd64/lib/server/libjvm.so /lib/x86_64-linux-gnu/libjvm.so