X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=usertrace-generic%2FREADME;h=a10b3b227572eef40cc2d6964e49d980d32ea8b8;hb=d0aabb7f4238325238a13e7598ee63941f209af3;hp=9d471ebe6de7c5ef5687ff478d92177010ef4037;hpb=e90c7b86b16bf45ae7114266f4e48f3e2debd30c;p=lttv.git diff --git a/usertrace-generic/README b/usertrace-generic/README index 9d471ebe..a10b3b22 100644 --- a/usertrace-generic/README +++ b/usertrace-generic/README @@ -168,8 +168,8 @@ See the sample-instrument-fct.c example program. - 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 \ +gcc -g -finstrument-functions -I /usr/src/usertrace-generic -o myapp myapp.c \ + /usr/src/usertrace-generic/ltt-facility-loader-user_generic.c \ /usr/src/usertrace-generic/ltt-instrument-functions.c To see what the final result looks like : @@ -180,10 +180,8 @@ Then, to see only the function_entry and function_exit events : lttv -m textDump -t /tmp/trace1 -e "event.facility=user_generic & (event.name=function_entry & event.name=function_exit)" It will show, for example : -user_generic.function_entry: 59329.709939111 (/cpu_0), 19250, 18581, SYSCALL { -0x8048454, 0x80484c2 } -user_generic.function_exit: 59329.709944613 (/cpu_0), 19250, 18581, SYSCALL { 0 -x8048454, 0x80484c2 } +user_generic.function_entry: 59329.709939111 (/cpu_0), 19250, 18581, SYSCALL { 0x8048454, 0x80484c2 } +user_generic.function_exit: 59329.709944613 (/cpu_0), 19250, 18581, SYSCALL { 0x8048454, 0x80484c2 } you can then use (from the binutils package) addr2line -e sample-instrument-fct -i -f 0x8048454