| rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 | 
|  | 2 | menu "Kernel hacking" | 
|  | 3 |  | 
|  | 4 | source "lib/Kconfig.debug" | 
|  | 5 |  | 
|  | 6 | config GPROF | 
|  | 7 | bool "Enable gprof support" | 
|  | 8 | depends on DEBUG_INFO && FRAME_POINTER | 
|  | 9 | help | 
|  | 10 | This allows profiling of a User-Mode Linux kernel with the gprof | 
|  | 11 | utility. | 
|  | 12 |  | 
|  | 13 | See <http://user-mode-linux.sourceforge.net/old/gprof.html> for more | 
|  | 14 | details. | 
|  | 15 |  | 
|  | 16 | If you're involved in UML kernel development and want to use gprof, | 
|  | 17 | say Y.  If you're unsure, say N. | 
|  | 18 |  | 
|  | 19 | config GCOV | 
|  | 20 | bool "Enable gcov support" | 
|  | 21 | depends on DEBUG_INFO | 
|  | 22 | depends on !KCOV | 
|  | 23 | help | 
|  | 24 | This option allows developers to retrieve coverage data from a UML | 
|  | 25 | session. | 
|  | 26 |  | 
|  | 27 | See <http://user-mode-linux.sourceforge.net/old/gprof.html> for more | 
|  | 28 | details. | 
|  | 29 |  | 
|  | 30 | If you're involved in UML kernel development and want to use gcov, | 
|  | 31 | say Y.  If you're unsure, say N. | 
|  | 32 |  | 
|  | 33 | config EARLY_PRINTK | 
|  | 34 | bool "Early printk" | 
|  | 35 | default y | 
|  | 36 | ---help--- | 
|  | 37 | Write kernel log output directly to stdout. | 
|  | 38 |  | 
|  | 39 | This is useful for kernel debugging when your machine crashes very | 
|  | 40 | early before the console code is initialized. | 
|  | 41 |  | 
|  | 42 | endmenu |