X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=ltt-usertrace%2FREADME;h=7e61df23b0bdb00389855fedb20e303f501be3ff;hb=bf5d6c27cef329e20aa7e0445fb8095a497cc166;hp=9e658d9e8fd24d7cd812839226db495fbbc8787f;hpb=c47538ac4c17d7627fb77de078235415a841a5c0;p=lttv.git diff --git a/ltt-usertrace/README b/ltt-usertrace/README index 9e658d9e..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. @@ -105,6 +113,7 @@ cd /usr/src/ltt-usertrace user_myfacility.xml: + Sample facility @@ -240,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. +