https://sourceware.org/bugzilla/show_bug.cgi?id=18616

--- Comment #5 from Marco Leise <Marco.Leise at gmx dot de> ---
I use this for callgraphs:

operf --vmlinux /usr/src/linux/vmlinux --callgraph ./app_to_be_profiled
opreport -c%g -t=0.1% -p=/lib/modules/`uname -r`/kernel/,/lib/modules/`uname
-r`/video/

And this for detailed samples:

operf --vmlinux /usr/src/linux/vmlinux ./app_to_be_profiled
opreport -gd%rl -t=1% -p=/lib/modules/`uname -r`/kernel/,/lib/modules/`uname
-r`/video/

The app needs no instrumentation other than - of course - debug information and
should dynamically link with libc. (OProfile also displays time spent in the
kernel, so I added the path to the uncompressed vmlinux and modules.) Hope that
helps!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to