- Compile your application with at least these parameters to gcc (it is splitted
on two lines, joined by a "\") :
-gcc -g -I /usr/src/usertrace-generic -o myapp myapp.c \
- /usr/src/usertrace-generic/ltt-facility-loader-user_myfacility.c \
- /usr/src/usertrace-generic/ltt-instrument-functions.c
+gcc -g -finstrument-functions \
+ -lltt-instrument-functions -o myapp myapp.c
To see what the final result looks like :
- Start tracing