Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 1 | # |
| 2 | # For a description of the syntax of this configuration file, |
| 3 | # see scripts/kbuild/config-language.txt. |
| 4 | # |
| 5 | |
| 6 | menu "Process Utilities" |
| 7 | |
Denys Vlasenko | d70e0e9 | 2010-06-08 12:15:11 +0200 | [diff] [blame] | 8 | INSERT |
| 9 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 10 | config FREE |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 11 | bool "free" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 12 | default y |
Denys Vlasenko | e3b1a1f | 2011-02-26 22:24:08 +0100 | [diff] [blame] | 13 | select PLATFORM_LINUX #sysinfo() |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 14 | help |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 15 | free displays the total amount of free and used physical and swap |
| 16 | memory in the system, as well as the buffers used by the kernel. |
| 17 | The shared memory column should be ignored; it is obsolete. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 18 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 19 | config FUSER |
Rob Landley | aa87276 | 2005-10-28 13:05:12 +0000 | [diff] [blame] | 20 | bool "fuser" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 21 | default y |
Rob Landley | aa87276 | 2005-10-28 13:05:12 +0000 | [diff] [blame] | 22 | help |
Tim Riker | c1ef7bd | 2006-01-25 00:08:53 +0000 | [diff] [blame] | 23 | fuser lists all PIDs (Process IDs) that currently have a given |
Bernhard Reutner-Fischer | 3e8669f | 2008-07-22 18:27:53 +0000 | [diff] [blame] | 24 | file open. fuser can also list all PIDs that have a given network |
Rob Landley | aa87276 | 2005-10-28 13:05:12 +0000 | [diff] [blame] | 25 | (TCP or UDP) port open. |
| 26 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 27 | config KILL |
Eric Andersen | 110ee23 | 2002-12-06 21:44:50 +0000 | [diff] [blame] | 28 | bool "kill" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 29 | default y |
Eric Andersen | 110ee23 | 2002-12-06 21:44:50 +0000 | [diff] [blame] | 30 | help |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 31 | The command kill sends the specified signal to the specified |
Bernhard Reutner-Fischer | 3e8669f | 2008-07-22 18:27:53 +0000 | [diff] [blame] | 32 | process or process group. If no signal is specified, the TERM |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 33 | signal is sent. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 34 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 35 | config KILLALL |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 36 | bool "killall" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 37 | default y |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 38 | depends on KILL |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 39 | help |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 40 | killall sends a signal to all processes running any of the |
Bernhard Reutner-Fischer | 3e8669f | 2008-07-22 18:27:53 +0000 | [diff] [blame] | 41 | specified commands. If no signal name is specified, SIGTERM is |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 42 | sent. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 43 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 44 | config KILLALL5 |
Denis Vlasenko | 0bb628f | 2006-09-27 14:25:33 +0000 | [diff] [blame] | 45 | bool "killall5" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 46 | default y |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 47 | depends on KILL |
Denis Vlasenko | f7996f3 | 2007-01-11 17:20:00 +0000 | [diff] [blame] | 48 | |
Denis Vlasenko | 72e1c89 | 2007-09-29 22:26:01 +0000 | [diff] [blame] | 49 | config PGREP |
| 50 | bool "pgrep" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 51 | default y |
Denis Vlasenko | 72e1c89 | 2007-09-29 22:26:01 +0000 | [diff] [blame] | 52 | help |
| 53 | Look for processes by name. |
| 54 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 55 | config PIDOF |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 56 | bool "pidof" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 57 | default y |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 58 | help |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 59 | Pidof finds the process id's (pids) of the named programs. It prints |
| 60 | those id's on the standard output. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 61 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 62 | config FEATURE_PIDOF_SINGLE |
Rob Landley | 2ec922e | 2006-04-13 23:22:16 +0000 | [diff] [blame] | 63 | bool "Enable argument for single shot (-s)" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 64 | default y |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 65 | depends on PIDOF |
Bernhard Reutner-Fischer | 81c3a51 | 2005-10-06 15:37:02 +0000 | [diff] [blame] | 66 | help |
| 67 | Support argument '-s' for returning only the first pid found. |
| 68 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 69 | config FEATURE_PIDOF_OMIT |
Rob Landley | 2ec922e | 2006-04-13 23:22:16 +0000 | [diff] [blame] | 70 | bool "Enable argument for omitting pids (-o)" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 71 | default y |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 72 | depends on PIDOF |
Bernhard Reutner-Fischer | 81c3a51 | 2005-10-06 15:37:02 +0000 | [diff] [blame] | 73 | help |
| 74 | Support argument '-o' for omitting the given pids in output. |
| 75 | The special pid %PPID can be used to name the parent process |
| 76 | of the pidof, in other words the calling shell or shell script. |
| 77 | |
Denis Vlasenko | 72e1c89 | 2007-09-29 22:26:01 +0000 | [diff] [blame] | 78 | config PKILL |
| 79 | bool "pkill" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 80 | default y |
Denis Vlasenko | 72e1c89 | 2007-09-29 22:26:01 +0000 | [diff] [blame] | 81 | help |
| 82 | Send signals to processes by name. |
| 83 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 84 | config PS |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 85 | bool "ps" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 86 | default y |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 87 | help |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 88 | ps gives a snapshot of the current processes. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 89 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 90 | config FEATURE_PS_WIDE |
Denys Vlasenko | fca70a8 | 2009-07-03 22:16:17 +0200 | [diff] [blame] | 91 | bool "Enable wide output option (-w)" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 92 | default y |
Denys Vlasenko | 8d9ac30 | 2011-09-26 02:56:08 +0200 | [diff] [blame] | 93 | depends on PS && !DESKTOP |
Bernhard Reutner-Fischer | 6d6a40c | 2005-10-04 14:31:18 +0000 | [diff] [blame] | 94 | help |
| 95 | Support argument 'w' for wide output. |
Denys Vlasenko | fca70a8 | 2009-07-03 22:16:17 +0200 | [diff] [blame] | 96 | If given once, 132 chars are printed, and if given more |
| 97 | than once, the length is unlimited. |
Bernhard Reutner-Fischer | 6d6a40c | 2005-10-04 14:31:18 +0000 | [diff] [blame] | 98 | |
Denys Vlasenko | 8d9ac30 | 2011-09-26 02:56:08 +0200 | [diff] [blame] | 99 | config FEATURE_PS_LONG |
| 100 | bool "Enable long output option (-l)" |
| 101 | default y |
| 102 | depends on PS && !DESKTOP |
| 103 | help |
| 104 | Support argument 'l' for long output. |
| 105 | Adds fields PPID, RSS, START, TIME & TTY |
| 106 | |
Denis Vlasenko | 5fee2e1 | 2008-01-05 03:26:41 +0000 | [diff] [blame] | 107 | config FEATURE_PS_TIME |
| 108 | bool "Enable time and elapsed time output" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 109 | default y |
Denys Vlasenko | e3b1a1f | 2011-02-26 22:24:08 +0100 | [diff] [blame] | 110 | depends on PS && DESKTOP |
| 111 | select PLATFORM_LINUX |
Denis Vlasenko | 5fee2e1 | 2008-01-05 03:26:41 +0000 | [diff] [blame] | 112 | help |
| 113 | Support -o time and -o etime output specifiers. |
| 114 | |
Denys Vlasenko | fca70a8 | 2009-07-03 22:16:17 +0200 | [diff] [blame] | 115 | config FEATURE_PS_ADDITIONAL_COLUMNS |
| 116 | bool "Enable additional ps columns" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 117 | default y |
Denys Vlasenko | fca70a8 | 2009-07-03 22:16:17 +0200 | [diff] [blame] | 118 | depends on PS && DESKTOP |
| 119 | help |
| 120 | Support -o rgroup, -o ruser, -o nice output specifiers. |
| 121 | |
Denis Vlasenko | 5fee2e1 | 2008-01-05 03:26:41 +0000 | [diff] [blame] | 122 | config FEATURE_PS_UNUSUAL_SYSTEMS |
| 123 | bool "Support Linux prior to 2.4.0 and non-ELF systems" |
| 124 | default n |
| 125 | depends on FEATURE_PS_TIME |
| 126 | help |
| 127 | Include support for measuring HZ on old kernels and non-ELF systems |
| 128 | (if you are on Linux 2.4.0+ and use ELF, you don't need this) |
| 129 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 130 | config RENICE |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 131 | bool "renice" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 132 | default y |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 133 | help |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 134 | Renice alters the scheduling priority of one or more running |
| 135 | processes. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 136 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 137 | config BB_SYSCTL |
Mike Frysinger | d1c8ae5 | 2005-09-24 23:13:22 +0000 | [diff] [blame] | 138 | bool "sysctl" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 139 | default y |
Mike Frysinger | d1c8ae5 | 2005-09-24 23:13:22 +0000 | [diff] [blame] | 140 | help |
| 141 | Configure kernel parameters at runtime. |
| 142 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 143 | config TOP |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 144 | bool "top" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 145 | default y |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 146 | help |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 147 | The top program provides a dynamic real-time view of a running |
| 148 | system. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 149 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 150 | config FEATURE_TOP_CPU_USAGE_PERCENTAGE |
Bernhard Reutner-Fischer | a46d2b1 | 2008-09-25 11:50:13 +0000 | [diff] [blame] | 151 | bool "Show CPU per-process usage percentage" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 152 | default y |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 153 | depends on TOP |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 154 | help |
Denis Vlasenko | 5a65447 | 2007-06-10 17:11:59 +0000 | [diff] [blame] | 155 | Make top display CPU usage for each process. |
Bernhard Reutner-Fischer | a46d2b1 | 2008-09-25 11:50:13 +0000 | [diff] [blame] | 156 | This adds about 2k. |
Denis Vlasenko | 5a65447 | 2007-06-10 17:11:59 +0000 | [diff] [blame] | 157 | |
| 158 | config FEATURE_TOP_CPU_GLOBAL_PERCENTS |
Bernhard Reutner-Fischer | a46d2b1 | 2008-09-25 11:50:13 +0000 | [diff] [blame] | 159 | bool "Show CPU global usage percentage" |
Denis Vlasenko | 5a65447 | 2007-06-10 17:11:59 +0000 | [diff] [blame] | 160 | default y |
| 161 | depends on FEATURE_TOP_CPU_USAGE_PERCENTAGE |
| 162 | help |
Denis Vlasenko | b1e5add | 2007-06-10 18:04:54 +0000 | [diff] [blame] | 163 | Makes top display "CPU: NN% usr NN% sys..." line. |
Bernhard Reutner-Fischer | a46d2b1 | 2008-09-25 11:50:13 +0000 | [diff] [blame] | 164 | This adds about 0.5k. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 165 | |
Denis Vlasenko | 17e7f04 | 2008-09-25 10:48:06 +0000 | [diff] [blame] | 166 | config FEATURE_TOP_SMP_CPU |
Bernhard Reutner-Fischer | a46d2b1 | 2008-09-25 11:50:13 +0000 | [diff] [blame] | 167 | bool "SMP CPU usage display ('c' key)" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 168 | default y |
Denis Vlasenko | 17e7f04 | 2008-09-25 10:48:06 +0000 | [diff] [blame] | 169 | depends on FEATURE_TOP_CPU_GLOBAL_PERCENTS |
| 170 | help |
Bernhard Reutner-Fischer | a46d2b1 | 2008-09-25 11:50:13 +0000 | [diff] [blame] | 171 | Allow 'c' key to switch between individual/cumulative CPU stats |
| 172 | This adds about 0.5k. |
Denis Vlasenko | 17e7f04 | 2008-09-25 10:48:06 +0000 | [diff] [blame] | 173 | |
Denis Vlasenko | 7451196 | 2007-06-11 16:31:55 +0000 | [diff] [blame] | 174 | config FEATURE_TOP_DECIMALS |
Bernhard Reutner-Fischer | a46d2b1 | 2008-09-25 11:50:13 +0000 | [diff] [blame] | 175 | bool "Show 1/10th of a percent in CPU/mem statistics" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 176 | default y |
Denis Vlasenko | 7451196 | 2007-06-11 16:31:55 +0000 | [diff] [blame] | 177 | depends on FEATURE_TOP_CPU_USAGE_PERCENTAGE |
| 178 | help |
| 179 | Show 1/10th of a percent in CPU/mem statistics. |
Bernhard Reutner-Fischer | a46d2b1 | 2008-09-25 11:50:13 +0000 | [diff] [blame] | 180 | This adds about 0.3k. |
Denis Vlasenko | 7451196 | 2007-06-11 16:31:55 +0000 | [diff] [blame] | 181 | |
Denis Vlasenko | 17e7f04 | 2008-09-25 10:48:06 +0000 | [diff] [blame] | 182 | config FEATURE_TOP_SMP_PROCESS |
Bernhard Reutner-Fischer | a46d2b1 | 2008-09-25 11:50:13 +0000 | [diff] [blame] | 183 | bool "Show CPU process runs on ('j' field)" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 184 | default y |
Denis Vlasenko | 17e7f04 | 2008-09-25 10:48:06 +0000 | [diff] [blame] | 185 | depends on TOP |
| 186 | help |
Bernhard Reutner-Fischer | a46d2b1 | 2008-09-25 11:50:13 +0000 | [diff] [blame] | 187 | Show CPU where process was last found running on. |
| 188 | This is the 'j' field. |
Denis Vlasenko | 17e7f04 | 2008-09-25 10:48:06 +0000 | [diff] [blame] | 189 | |
Denis Vlasenko | ff6e8e2 | 2007-09-08 16:51:19 +0000 | [diff] [blame] | 190 | config FEATURE_TOPMEM |
Denis Vlasenko | 17e7f04 | 2008-09-25 10:48:06 +0000 | [diff] [blame] | 191 | bool "Topmem command ('s' key)" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 192 | default y |
Denis Vlasenko | ff6e8e2 | 2007-09-08 16:51:19 +0000 | [diff] [blame] | 193 | depends on TOP |
| 194 | help |
Bernhard Reutner-Fischer | a46d2b1 | 2008-09-25 11:50:13 +0000 | [diff] [blame] | 195 | Enable 's' in top (gives lots of memory info). |
Denis Vlasenko | ff6e8e2 | 2007-09-08 16:51:19 +0000 | [diff] [blame] | 196 | |
Denys Vlasenko | b410d4a | 2009-09-19 22:29:42 +0200 | [diff] [blame] | 197 | config FEATURE_SHOW_THREADS |
Lauri Kasanen | da6fb7e | 2010-12-08 19:00:26 +0200 | [diff] [blame] | 198 | bool "Support for showing threads in ps/pstree/top" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 199 | default y |
Lauri Kasanen | da6fb7e | 2010-12-08 19:00:26 +0200 | [diff] [blame] | 200 | depends on PS || TOP || PSTREE |
Denys Vlasenko | b410d4a | 2009-09-19 22:29:42 +0200 | [diff] [blame] | 201 | help |
Lauri Kasanen | da6fb7e | 2010-12-08 19:00:26 +0200 | [diff] [blame] | 202 | Enables the ps -T option, showing of threads in pstree, |
| 203 | and 'h' command in top. |
Denys Vlasenko | b410d4a | 2009-09-19 22:29:42 +0200 | [diff] [blame] | 204 | |
Denis Vlasenko | cc5e090 | 2007-06-12 08:12:33 +0000 | [diff] [blame] | 205 | config WATCH |
| 206 | bool "watch" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 207 | default y |
Denis Vlasenko | cc5e090 | 2007-06-12 08:12:33 +0000 | [diff] [blame] | 208 | help |
| 209 | watch is used to execute a program periodically, showing |
| 210 | output to the screen. |
| 211 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 212 | endmenu |