X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=ltt-usertrace%2FREADME;h=7e61df23b0bdb00389855fedb20e303f501be3ff;hb=98d7814fdfbdbb83cc57d6d3ed758f8b8b86d244;hp=8bdd8d2e9033e13d3657446f1e42e67f08a21c41;hpb=50bb790b4ac71c28ce342ad75419d621759aa71b;p=lttv.git diff --git a/ltt-usertrace/README b/ltt-usertrace/README index 8bdd8d2e..7e61df23 100644 --- a/ltt-usertrace/README +++ b/ltt-usertrace/README @@ -27,10 +27,18 @@ gzip -cd ltt-usertrace-x.x.tar.gz | tar xvof - * Build the sample programs and install the headers and librairies into your system : +(32 bits) su cd /usr/src/ltt-usertrace +make clean +make install (will build and install headers and libraries) make -make install +(64 bits) +su +cd /usr/src/ltt-usertrace +make clean +LIB_DIR=/usr/lib64 make install CFLAGS=-m64 +make CFLAGS=-m64 Feel free to look at the sample programs and the Makefile : they demonstrate very well the features of the usertrace package and how to use them. @@ -241,3 +249,12 @@ test_function The lookup in LTTV through libbfd has not been implemented yet. +* Instrumentation of a java program + +See the java/ directory of this package. You will have to create a C library +that holds the tracing functions, following the java-instrument-string.c. It has +to be called from the Java code as shown in Sample.java. + +The generate.sh scripts compiles and executes the Java program with the JNI +tracing library. +