* 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.
user_myfacility.xml:
+<?xml version="1.0"?>
<facility name="user_myfacility">
<description>Sample facility</description>
<event name="myevent">
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.
+