Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame^] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | menu "Kernel hacking" |
| 3 | |
| 4 | source "lib/Kconfig.debug" |
| 5 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | config GPROF |
| 7 | bool "Enable gprof support" |
Karol Swietlicki | 054211a | 2008-02-04 22:30:42 -0800 | [diff] [blame] | 8 | depends on DEBUG_INFO && FRAME_POINTER |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | help |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 10 | This allows profiling of a User-Mode Linux kernel with the gprof |
| 11 | utility. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | |
Karol Swietlicki | 0ba9d3f | 2008-02-04 22:30:38 -0800 | [diff] [blame] | 13 | See <http://user-mode-linux.sourceforge.net/old/gprof.html> for more |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 14 | details. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 16 | If you're involved in UML kernel development and want to use gprof, |
| 17 | say Y. If you're unsure, say N. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | |
| 19 | config GCOV |
| 20 | bool "Enable gcov support" |
Jeff Dike | 42fda66 | 2007-10-16 01:26:50 -0700 | [diff] [blame] | 21 | depends on DEBUG_INFO |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | help |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 23 | This option allows developers to retrieve coverage data from a UML |
| 24 | session. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | |
Karol Swietlicki | 0ba9d3f | 2008-02-04 22:30:38 -0800 | [diff] [blame] | 26 | See <http://user-mode-linux.sourceforge.net/old/gprof.html> for more |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 27 | details. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 29 | If you're involved in UML kernel development and want to use gcov, |
| 30 | say Y. If you're unsure, say N. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 31 | |
Richard Weinberger | d634f19 | 2011-05-24 17:13:01 -0700 | [diff] [blame] | 32 | config EARLY_PRINTK |
| 33 | bool "Early printk" |
| 34 | default y |
| 35 | ---help--- |
| 36 | Write kernel log output directly to stdout. |
| 37 | |
| 38 | This is useful for kernel debugging when your machine crashes very |
| 39 | early before the console code is initialized. |
| 40 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 41 | endmenu |