| .. | .. |
|---|
| 1 | +# SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | menu "GCOV-based kernel profiling" |
|---|
| 2 | 3 | |
|---|
| 3 | 4 | config GCOV_KERNEL |
|---|
| .. | .. |
|---|
| 5 | 6 | depends on DEBUG_FS |
|---|
| 6 | 7 | select CONSTRUCTORS if !UML |
|---|
| 7 | 8 | default n |
|---|
| 8 | | - ---help--- |
|---|
| 9 | + help |
|---|
| 9 | 10 | This option enables gcov-based code profiling (e.g. for code coverage |
|---|
| 10 | 11 | measurements). |
|---|
| 11 | 12 | |
|---|
| .. | .. |
|---|
| 41 | 42 | depends on GCOV_KERNEL |
|---|
| 42 | 43 | depends on ARCH_HAS_GCOV_PROFILE_ALL |
|---|
| 43 | 44 | default n |
|---|
| 44 | | - ---help--- |
|---|
| 45 | + help |
|---|
| 45 | 46 | This options activates profiling for the entire kernel. |
|---|
| 46 | 47 | |
|---|
| 47 | 48 | If unsure, say N. |
|---|
| .. | .. |
|---|
| 49 | 50 | Note that a kernel compiled with profiling flags will be significantly |
|---|
| 50 | 51 | larger and run slower. Also be sure to exclude files from profiling |
|---|
| 51 | 52 | which are not linked to the kernel image to prevent linker errors. |
|---|
| 52 | | - |
|---|
| 53 | | -choice |
|---|
| 54 | | - prompt "Specify GCOV format" |
|---|
| 55 | | - depends on GCOV_KERNEL |
|---|
| 56 | | - depends on CC_IS_GCC |
|---|
| 57 | | - ---help--- |
|---|
| 58 | | - The gcov format is usually determined by the GCC version, and the |
|---|
| 59 | | - default is chosen according to your GCC version. However, there are |
|---|
| 60 | | - exceptions where format changes are integrated in lower-version GCCs. |
|---|
| 61 | | - In such a case, change this option to adjust the format used in the |
|---|
| 62 | | - kernel accordingly. |
|---|
| 63 | | - |
|---|
| 64 | | -config GCOV_FORMAT_3_4 |
|---|
| 65 | | - bool "GCC 3.4 format" |
|---|
| 66 | | - depends on GCC_VERSION < 40700 |
|---|
| 67 | | - ---help--- |
|---|
| 68 | | - Select this option to use the format defined by GCC 3.4. |
|---|
| 69 | | - |
|---|
| 70 | | -config GCOV_FORMAT_4_7 |
|---|
| 71 | | - bool "GCC 4.7 format" |
|---|
| 72 | | - ---help--- |
|---|
| 73 | | - Select this option to use the format defined by GCC 4.7. |
|---|
| 74 | | - |
|---|
| 75 | | -endchoice |
|---|
| 76 | 53 | |
|---|
| 77 | 54 | endmenu |
|---|