1config BR2_PACKAGE_VALGRIND_ARCH_SUPPORTS
2	bool
3	default y if BR2_aarch64
4	default y if BR2_ARM_CPU_ARMV7A
5	default y if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
6	default y if BR2_i386 || BR2_x86_64
7	default y if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
8	depends on !BR2_MIPS_SOFT_FLOAT
9
10comment "valgrind needs a toolchain w/ dynamic library, threads"
11	depends on BR2_PACKAGE_VALGRIND_ARCH_SUPPORTS
12	depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
13
14config BR2_PACKAGE_VALGRIND
15	bool "valgrind"
16	depends on BR2_PACKAGE_VALGRIND_ARCH_SUPPORTS
17	depends on !BR2_STATIC_LIBS
18	depends on BR2_TOOLCHAIN_HAS_THREADS
19	help
20	  Tool for debugging and profiling Linux programs.
21
22	  http://valgrind.org/
23
24if BR2_PACKAGE_VALGRIND
25
26config BR2_PACKAGE_VALGRIND_MEMCHECK
27	bool "Memcheck: a memory error detector"
28	default y
29	help
30	  This option allows to install the Memcheck tool
31
32config BR2_PACKAGE_VALGRIND_CACHEGRIND
33	bool "Cachegrind: a cache and branch-prediction profiler"
34	default y
35	help
36	  This option allows to install the Cachegrind tool
37
38config BR2_PACKAGE_VALGRIND_CALLGRIND
39	bool "Callgrind: a call-graph generating cache and branch prediction profiler"
40	default y
41	help
42	  This option allows to install the Callgrind tool
43
44config BR2_PACKAGE_VALGRIND_HELGRIND
45	bool "Helgrind: a thread error detector"
46	default y
47	help
48	  This option allows to install the Helgrind tool
49
50config BR2_PACKAGE_VALGRIND_DRD
51	bool "DRD: a thread error detector"
52	default y
53	help
54	  This option allows to install the DRD tool
55
56config BR2_PACKAGE_VALGRIND_MASSIF
57	bool "Massif: a heap profiler"
58	default y
59	help
60	  This option allows to install the Massif tool
61
62config BR2_PACKAGE_VALGRIND_DHAT
63	bool "DHAT: a dynamic heap analysis tool"
64	default y
65	help
66	  This option allows to install the DHAT tool
67
68config BR2_PACKAGE_VALGRIND_SGCHECK
69	bool "SGCheck: an experimental stack and global array overrun detector"
70	help
71	  This option allows to install the SGCheck tool
72
73config BR2_PACKAGE_VALGRIND_BBV
74	bool "BBV: an experimental basic block vector generation tool"
75	help
76	  This option allows to install the BBV tool
77
78config BR2_PACKAGE_VALGRIND_LACKEY
79	bool "Lackey: an example tool"
80	help
81	  This option allows to install the Lackey tool
82
83config BR2_PACKAGE_VALGRIND_NULGRIND
84	bool "Nulgrind: the minimal Valgrind tool"
85	help
86	  This option allows to install the Nulgrind tool
87
88endif
89