An error occurred while installing oprofile on the MIPs platform target machine.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.