Install oprofile In Debian
Important: Linux kernel options should be supported
Set config_profiling = y and config_oprofile = Y in the. config file.
Re-compile and burn. Use apt-Get Update & apt-Get install oprofile-Gui
Or manually install the oprofile-0.9.8 directly from the web.
By default, oprofile requires the support of these libraries: libbfd. So and libiberty. So of gnumaintain.
Compile and install the latest biutils tool set. Binutils-2.22.tar.gz.
Generate static libraries libbfd. A and libiberty. a In the/usr/local/lib/directory. However, oprofile requires a dynamic library, so you need to modify the oprofile/libopangent/MAKEFILE file to support the static library. Modify as follows: bfd_libs =-lbfd-liberty-LDL-LZ => bfd_libs =-static-libbfd-static-libiberty-LDL-LZ others can be modified if the Linux kernel version is 2.6.35 +, the following error: operf_utils.cpp: 735: Error: 'perf _ record_misc_guest_kernel 'was not declared in this scopeoperf_utils.cpp: 738: Error: 'perf _ record_misc_guest_user 'was not declared in this scope reference file/usr/include/Linux/perf_event.h change 'perf _ record_misc_guest_kernel' to 'perf _ record_mi SC _kernel ', change 'perf _ record_misc_guest_user' to 'perf _ record_misc_user.