Commit cae98d0c authored by Danilo Ansaloni's avatar Danilo Ansaloni

Senseo example without basic-block analysis.

parent 24d3c3e0
......@@ -3,14 +3,13 @@
<property file="../../disl.version"/>
<property file="../../build.properties"/>
<property file="build.properties"/>
<property name="disl.jar.path" value="../../build/disl-${disl.version}.jar"/>
<property name="disl.jar.path" value="../../build/dislserver-${disl.version}.jar"/>
<path id="buildpath">
<pathelement location="${disl.jar.path}"/>
<pathelement location="../../${asm.path}"/>
<pathelement location="../../${jborat.path}"/>
<pathelement location="../../${jborat-runtime.path}"/>
<pathelement location="lib/stp.jar"/>
<pathelement location="../../build/dislagent-unspec.jar"/>
</path>
<target name="check-disl-jar">
......@@ -25,19 +24,9 @@
<mkdir dir="bin"/>
<javac srcdir="src" destdir="bin" debug="true" includeAntRuntime="false">
<classpath refid="buildpath"/>
<compilerarg value="-Xbootclasspath/p:lib/Thread_test.jar"/>
</javac>
</target>
<target name="agent" description="create simple agent jar file" >
<mkdir dir="build"/>
<jar jarfile="build/agent-light.jar">
<manifest>
<attribute name="Premain-Class" value="ch.usi.dag.disl.test.agent.Agent"/>
</manifest>
</jar>
</target>
<target name="check-test-property">
<condition property="test.set">
<isset property="test.name"/>
......@@ -52,14 +41,10 @@
<target name="package" depends="report-missing-property,compile" description="create instrumentation package for specified test">
<mkdir dir="build"/>
<jar jarfile="./build/${user.runtime.jar.name}"
basedir="./bin"
includes="${test.path}/runtime/**">
</jar>
<jar jarfile="../../build/${instr.jar.name}"
basedir="./bin"
includes="${test.path}/*"
excludes="${test.path}/runtime ${test.path}/TargetClass*.class ${test.path}/MANIFEST.MF"
includes="${test.path}/**"
excludes="${test.path}/TargetClass*.class ${test.path}/MANIFEST.MF"
manifest="./src/${test.path}/MANIFEST.MF">
</jar>
</target>
......
sun.instrument.*.*
java.lang.Object.*
java.lang.Thread.*
#
#
# BEGIN JDK WEAVING
# COMMENT THE FOLLOWING FOR FULL COVERAGE
#
#org.jcp.*
#org.omg.*
#org.xml.*
#org.ietf.*
#javax.*.*
#com.sun.*
#com.apple.*
#sun.*.*
#sunx.*
#
# END JDK
# This is a sample configuration with relative paths
# you can use full path using file:/// format
../../lib/asm-debug-all-4.0.jar
../../test/lib/remote-jborat.jar
../../lib/jborat.jar
# This is a sample configuration with relative paths
# you can use full path using file:/// format
../../lib/asm-debug-all-4.0.jar
../../build/disl-unspec.jar
../../build/dislinstr.jar
#!/bin/bash
OS=`uname`
ARCH_RAW=`uname -m`
ARCH="unspec"
if [ "${ARCH_RAW}" = "i686" -o "${ARCH_RAW}" = "x86_32" ]; then
ARCH="x32"
elif [ "${ARCH_RAW}" = "x86_64" ]; then
ARCH="x64"
else
echo "Unknow architecture...."
exit -1
fi
if [ "${OS}" = "Darwin" ]; then
JBORAT_AGENT="macosx/${ARCH}/"libjboratagent.jnilib
elif [ "${OS}" = "Linux" ]; then
JBORAT_AGENT="linux/${ARCH}/"libjboratagent.so
C_AGENT="../../src-agent-c/libdislagent.jnilib"
else
echo "Unknow platform..."
exit -1
C_AGENT="../../src-agent-c/libdislagent.so"
fi
# shared memory is the default communication
# to enable socket, add ",ipc.socket" to the options
JBORAT_AGENT_OPTS="1234,localhost"
java -XX:MaxPermSize=128m \
-Xmx2G \
-javaagent:../../test/lib/agent.jar \
-Xbootclasspath/p:../../test/lib/remote-runtime.jar:../../lib/jborat-runtime.jar:./build/senseo-runtime.jar \
-agentpath:../../test/lib/${JBORAT_AGENT}=${JBORAT_AGENT_OPTS} \
-cp ./bin \
java \
-Xmx4G \
-XX:MaxPermSize=128m \
-agentpath:${C_AGENT} \
-javaagent:../../build/dislagent-unspec.jar \
-Xbootclasspath/a:../../build/dislagent-unspec.jar:../../build/dislinstr.jar \
-cp bin/ \
$*
#!/bin/sh
OS=`uname`
ARCH_RAW=`uname -m`
ARCH="unspec"
# available options
# -Ddebug=true \
# -Ddisl.classes="list of disl classes (: - separator)"
# -Ddisl.noexcepthandler=true \
# -Ddisl.exclusionList="path" \
# -Ddislserver.instrumented="path" \
# -Ddislserver.uninstrumented="path" \
# -Ddislserver.port="portNum" \
# -Ddislserver.timestat=true \
# -Ddislserver.continuous=true \
if [ "${ARCH_RAW}" = "i686" -o "${ARCH_RAW}" = "x86_32" ]; then
ARCH="x32"
elif [ "${ARCH_RAW}" = "x86_64" ]; then
ARCH="x64"
else
echo "Unknow architecture.."
exit -1
fi
if [ "${OS}" = "Darwin" ]; then
JBORAT_AGENT_PATH="macosx/${ARCH}"
elif [ "${OS}" = "Linux" ]; then
JBORAT_AGENT_PATH="linux/${ARCH}"
else
echo "Unknow platform..."
exit -1
fi
CLASSPATH=../../lib/jborat-agent.jar:../../lib/jborat-runtime.jar:../../lib/jborat-interface.jar:../../test/lib/remote-server.jar
java -Dch.usi.dag.jborat.instrumented="instrumented" \
-Djborat.debug \
-Ddisl.dynbypass=false \
-Ddisl.debug \
-Djava.library.path=../../test/lib/${JBORAT_AGENT_PATH} \
-Dch.usi.dag.jborat.instrumentation="ch.usi.dag.disl.DiSL" \
-Dch.usi.dag.jborat.codemergerList="../../test/conf/codemerger.lst" \
-Dch.usi.dag.jborat.liblist="./conf/lib.lst" \
-Dch.usi.dag.jborat.udiliblist="./conf/udilib.lst" \
-Dch.usi.dag.jborat.exclusionList="../../test/conf/exclusion.lst" \
$* \
-cp ${CLASSPATH} \
ch.usi.dag.jborat.remote.server.Server \
&
java $* \
-Ddisl.noexcepthandler=true \
-Ddisl.exclusionList="conf/exclusion.lst" \
-jar ../../build/dislserver-unspec.jar \
&
echo $! > ${SERVER_FILE}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment