2016-08-05 13:46:32 +02:00
|
|
|
# memory barrier function implemented only for some architectures
|
|
|
|
config BR2_PACKAGE_OPROFILE_ARCH_SUPPORTS
|
|
|
|
bool
|
|
|
|
default y
|
|
|
|
depends on BR2_arceb || BR2_arcle || BR2_arm || BR2_armeb || \
|
|
|
|
BR2_aarch64 || BR2_aarch64_be || BR2_i386 || BR2_mips || \
|
|
|
|
BR2_mipsel || BR2_mips64 || BR2_mips64el || BR2_powerpc || \
|
|
|
|
BR2_powerpc64 || BR2_powerpc64le || BR2_sh || \
|
|
|
|
BR2_sparc || BR2_sparc64 || BR2_x86_64
|
|
|
|
|
2016-12-18 15:26:59 +01:00
|
|
|
config BR2_PACKAGE_OPROFILE_NEEDS_LIBPFM4
|
|
|
|
bool
|
|
|
|
default y if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
|
|
|
|
|
2008-04-24 18:54:29 +02:00
|
|
|
config BR2_PACKAGE_OPROFILE
|
|
|
|
bool "oprofile"
|
2013-10-09 23:30:42 +02:00
|
|
|
depends on BR2_USE_MMU # fork()
|
2009-01-26 20:19:10 +01:00
|
|
|
depends on BR2_INSTALL_LIBSTDCPP
|
2014-10-28 23:19:18 +01:00
|
|
|
depends on BR2_USE_WCHAR # binutils
|
2016-08-05 13:46:32 +02:00
|
|
|
depends on BR2_PACKAGE_OPROFILE_ARCH_SUPPORTS
|
2013-12-03 20:27:18 +01:00
|
|
|
# libpfm4 is needed on PowerPC, and requires thread support
|
2016-12-18 15:26:59 +01:00
|
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL || !BR2_PACKAGE_OPROFILE_NEEDS_LIBPFM4
|
2017-04-22 19:18:01 +02:00
|
|
|
select BR2_PACKAGE_POPT
|
|
|
|
select BR2_PACKAGE_BINUTILS
|
|
|
|
select BR2_PACKAGE_LIBPFM4 if BR2_PACKAGE_OPROFILE_NEEDS_LIBPFM4
|
2008-04-24 18:54:29 +02:00
|
|
|
help
|
|
|
|
OProfile is a system-wide profiler for Linux systems,
|
|
|
|
capable of profiling all running code at low overhead.
|
|
|
|
OProfile is released under the GNU GPL.
|
|
|
|
|
|
|
|
It consists of a kernel driver and a daemon for collecting
|
|
|
|
sample data, and several post-profiling tools for turning
|
|
|
|
data into information.
|
|
|
|
|
|
|
|
OProfile leverages the hardware performance counters of the
|
|
|
|
CPU to enable profiling of a wide variety of interesting
|
|
|
|
statistics, which can also be used for basic time-spent
|
|
|
|
profiling. All code is profiled: hardware and software
|
|
|
|
interrupt handlers, kernel modules, the kernel, shared
|
2008-08-04 21:07:05 +02:00
|
|
|
libraries, and applications.
|
2009-01-26 20:19:10 +01:00
|
|
|
|
2014-10-28 23:19:18 +01:00
|
|
|
comment "oprofile needs a toolchain w/ C++, wchar"
|
2013-12-30 11:00:07 +01:00
|
|
|
depends on BR2_USE_MMU
|
2016-08-05 13:46:32 +02:00
|
|
|
depends on BR2_PACKAGE_OPROFILE_ARCH_SUPPORTS
|
2014-10-28 23:19:18 +01:00
|
|
|
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR
|
2013-12-03 20:27:18 +01:00
|
|
|
|
2016-12-18 15:26:59 +01:00
|
|
|
comment "oprofile needs a toolchain w/ NPTL on PowerPC(64)"
|
|
|
|
depends on BR2_USE_MMU && BR2_PACKAGE_OPROFILE_NEEDS_LIBPFM4
|
2015-02-04 01:34:09 +01:00
|
|
|
depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL
|