1# memory barrier function implemented only for some architectures 2config BR2_PACKAGE_OPROFILE_ARCH_SUPPORTS 3 bool 4 default y 5 depends on BR2_arceb || BR2_arcle || BR2_arm || BR2_armeb || \ 6 BR2_aarch64 || BR2_aarch64_be || BR2_i386 || BR2_mips || \ 7 BR2_mipsel || BR2_mips64 || BR2_mips64el || BR2_powerpc || \ 8 BR2_powerpc64 || BR2_powerpc64le || BR2_sh || \ 9 BR2_sparc || BR2_sparc64 || BR2_x86_64 10 11config BR2_PACKAGE_OPROFILE_NEEDS_LIBPFM4 12 bool 13 default y if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le 14 15config BR2_PACKAGE_OPROFILE 16 bool "oprofile" 17 depends on BR2_USE_MMU # fork() 18 depends on BR2_INSTALL_LIBSTDCPP 19 depends on BR2_USE_WCHAR # binutils 20 depends on BR2_PACKAGE_OPROFILE_ARCH_SUPPORTS 21 # libpfm4 is needed on PowerPC, and requires thread support 22 depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL || !BR2_PACKAGE_OPROFILE_NEEDS_LIBPFM4 23 select BR2_PACKAGE_POPT 24 select BR2_PACKAGE_BINUTILS 25 select BR2_PACKAGE_LIBPFM4 if BR2_PACKAGE_OPROFILE_NEEDS_LIBPFM4 26 help 27 OProfile is a system-wide profiler for Linux systems, 28 capable of profiling all running code at low overhead. 29 OProfile is released under the GNU GPL. 30 31 It consists of a kernel driver and a daemon for collecting 32 sample data, and several post-profiling tools for turning 33 data into information. 34 35 OProfile leverages the hardware performance counters of the 36 CPU to enable profiling of a wide variety of interesting 37 statistics, which can also be used for basic time-spent 38 profiling. All code is profiled: hardware and software 39 interrupt handlers, kernel modules, the kernel, shared 40 libraries, and applications. 41 42 https://sourceforge.net/projects/oprofile/ 43 44comment "oprofile needs a toolchain w/ C++, wchar" 45 depends on BR2_USE_MMU 46 depends on BR2_PACKAGE_OPROFILE_ARCH_SUPPORTS 47 depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR 48 49comment "oprofile needs a toolchain w/ NPTL on PowerPC(64)" 50 depends on BR2_USE_MMU && BR2_PACKAGE_OPROFILE_NEEDS_LIBPFM4 51 depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL 52