Config.in 2.0 KB

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