1 # memory barrier function implemented only for some architectures
2 config BR2_PACKAGE_OPROFILE_ARCH_SUPPORTS
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
11 config BR2_PACKAGE_OPROFILE_NEEDS_LIBPFM4
13 default y if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
15 config BR2_PACKAGE_OPROFILE
17 depends on BR2_USE_MMU # fork()
18 select BR2_PACKAGE_POPT
19 select BR2_PACKAGE_BINUTILS
20 select BR2_PACKAGE_LIBPFM4 if BR2_PACKAGE_OPROFILE_NEEDS_LIBPFM4
21 depends on BR2_INSTALL_LIBSTDCPP
22 depends on BR2_USE_WCHAR # binutils
23 depends on BR2_PACKAGE_OPROFILE_ARCH_SUPPORTS
24 # libpfm4 is needed on PowerPC, and requires thread support
25 depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL || !BR2_PACKAGE_OPROFILE_NEEDS_LIBPFM4
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.
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.
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.
42 comment "oprofile needs a toolchain w/ C++, wchar"
43 depends on BR2_USE_MMU
44 depends on BR2_PACKAGE_OPROFILE_ARCH_SUPPORTS
45 depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR
47 comment "oprofile needs a toolchain w/ NPTL on PowerPC(64)"
48 depends on BR2_USE_MMU && BR2_PACKAGE_OPROFILE_NEEDS_LIBPFM4
49 depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL