blob: c31416b10586f5431c49b2971903299be0efc282 [file] [log] [blame]
Mathieu Desnoyersfb32e032008-02-02 15:10:33 -05001#
2# General architecture dependent options
3#
Mathieu Desnoyers125e5642008-02-02 15:10:36 -05004
5config OPROFILE
Robert Richterb309a292010-02-26 15:01:23 +01006 tristate "OProfile system profiling"
Mathieu Desnoyers125e5642008-02-02 15:10:36 -05007 depends on PROFILING
8 depends on HAVE_OPROFILE
Ingo Molnard69d59f2008-12-12 09:38:57 +01009 select RING_BUFFER
Christian Borntraeger9a5963e2009-09-16 21:56:49 +020010 select RING_BUFFER_ALLOW_SWAP
Mathieu Desnoyers125e5642008-02-02 15:10:36 -050011 help
12 OProfile is a profiling system capable of profiling the
13 whole system, include the kernel, kernel modules, libraries,
14 and applications.
15
16 If unsure, say N.
17
Jason Yeh4d4036e2009-07-08 13:49:38 +020018config OPROFILE_EVENT_MULTIPLEX
19 bool "OProfile multiplexing support (EXPERIMENTAL)"
20 default n
21 depends on OPROFILE && X86
22 help
23 The number of hardware counters is limited. The multiplexing
24 feature enables OProfile to gather more events than counters
25 are provided by the hardware. This is realized by switching
26 between events at an user specified time interval.
27
28 If unsure, say N.
29
Mathieu Desnoyers125e5642008-02-02 15:10:36 -050030config HAVE_OPROFILE
Jan Beulich9ba16082008-10-15 22:01:38 -070031 bool
Mathieu Desnoyers125e5642008-02-02 15:10:36 -050032
Robert Richterdcfce4a2011-10-11 17:11:08 +020033config OPROFILE_NMI_TIMER
34 def_bool y
35 depends on PERF_EVENTS && HAVE_PERF_EVENTS_NMI
36
Mathieu Desnoyers125e5642008-02-02 15:10:36 -050037config KPROBES
38 bool "Kprobes"
Masami Hiramatsu05ed1602010-09-13 19:25:41 +090039 depends on MODULES
Mathieu Desnoyers125e5642008-02-02 15:10:36 -050040 depends on HAVE_KPROBES
Masami Hiramatsu05ed1602010-09-13 19:25:41 +090041 select KALLSYMS
Mathieu Desnoyers125e5642008-02-02 15:10:36 -050042 help
43 Kprobes allows you to trap at almost any kernel address and
44 execute a callback function. register_kprobe() establishes
45 a probepoint and specifies the callback. Kprobes is useful
46 for kernel debugging, non-intrusive instrumentation and testing.
47 If in doubt, say "N".
48
Steven Rostedt45f81b12010-10-29 12:33:43 -040049config JUMP_LABEL
Ingo Molnarc5905af2012-02-24 08:31:31 +010050 bool "Optimize very unlikely/likely branches"
Steven Rostedt45f81b12010-10-29 12:33:43 -040051 depends on HAVE_ARCH_JUMP_LABEL
52 help
Ingo Molnarc5905af2012-02-24 08:31:31 +010053 This option enables a transparent branch optimization that
54 makes certain almost-always-true or almost-always-false branch
55 conditions even cheaper to execute within the kernel.
Steven Rostedt45f81b12010-10-29 12:33:43 -040056
Ingo Molnarc5905af2012-02-24 08:31:31 +010057 Certain performance-sensitive kernel code, such as trace points,
58 scheduler functionality, networking code and KVM have such
59 branches and include support for this optimization technique.
60
61 If it is detected that the compiler has support for "asm goto",
62 the kernel will compile such branches with just a nop
63 instruction. When the condition flag is toggled to true, the
64 nop will be converted to a jump instruction to execute the
65 conditional block of instructions.
66
67 This technique lowers overhead and stress on the branch prediction
68 of the processor and generally makes the kernel faster. The update
69 of the condition is slower, but those are always very rare.
70
71 ( On 32-bit x86, the necessary options added to the compiler
72 flags may increase the size of the kernel slightly. )
Steven Rostedt45f81b12010-10-29 12:33:43 -040073
Masami Hiramatsuafd66252010-02-25 08:34:07 -050074config OPTPROBES
Masami Hiramatsu5cc718b2010-03-15 13:00:54 -040075 def_bool y
76 depends on KPROBES && HAVE_OPTPROBES
Masami Hiramatsuafd66252010-02-25 08:34:07 -050077 depends on !PREEMPT
Masami Hiramatsuafd66252010-02-25 08:34:07 -050078
Srikar Dronamraju2b144492012-02-09 14:56:42 +053079config UPROBES
Ingo Molnar7b2d81d2012-02-17 09:27:41 +010080 bool "Transparent user-space probes (EXPERIMENTAL)"
Srikar Dronamrajuec83db02012-05-08 16:41:26 +053081 depends on UPROBE_EVENT && PERF_EVENTS
Srikar Dronamraju2b144492012-02-09 14:56:42 +053082 default n
83 help
Ingo Molnar7b2d81d2012-02-17 09:27:41 +010084 Uprobes is the user-space counterpart to kprobes: they
85 enable instrumentation applications (such as 'perf probe')
86 to establish unintrusive probes in user-space binaries and
87 libraries, by executing handler functions when the probes
88 are hit by user-space applications.
89
90 ( These probes come in the form of single-byte breakpoints,
91 managed by the kernel and kept transparent to the probed
92 application. )
Srikar Dronamraju2b144492012-02-09 14:56:42 +053093
94 If in doubt, say "N".
95
Johannes Berg58340a02008-07-25 01:45:33 -070096config HAVE_EFFICIENT_UNALIGNED_ACCESS
Jan Beulich9ba16082008-10-15 22:01:38 -070097 bool
Johannes Berg58340a02008-07-25 01:45:33 -070098 help
99 Some architectures are unable to perform unaligned accesses
100 without the use of get_unaligned/put_unaligned. Others are
101 unable to perform such accesses efficiently (e.g. trap on
102 unaligned access and require fixing it up in the exception
103 handler.)
104
105 This symbol should be selected by an architecture if it can
106 perform unaligned accesses efficiently to allow different
107 code paths to be selected for these cases. Some network
108 drivers, for example, could opt to not fix up alignment
109 problems with received packets if doing so would not help
110 much.
111
112 See Documentation/unaligned-memory-access.txt for more
113 information on the topic of unaligned memory accesses.
114
David Woodhousecf66bb92012-12-03 16:25:40 +0000115config ARCH_USE_BUILTIN_BSWAP
116 bool
117 help
118 Modern versions of GCC (since 4.4) have builtin functions
119 for handling byte-swapping. Using these, instead of the old
120 inline assembler that the architecture code provides in the
121 __arch_bswapXX() macros, allows the compiler to see what's
122 happening and offers more opportunity for optimisation. In
123 particular, the compiler will be able to combine the byteswap
124 with a nearby load or store and use load-and-swap or
125 store-and-swap instructions if the architecture has them. It
126 should almost *never* result in code which is worse than the
127 hand-coded assembler in <asm/swab.h>. But just in case it
128 does, the use of the builtins is optional.
129
130 Any architecture with load-and-swap or store-and-swap
131 instructions should set this. And it shouldn't hurt to set it
132 on architectures that don't have such instructions.
133
Heiko Carstens1a94bc32009-01-14 14:13:59 +0100134config HAVE_SYSCALL_WRAPPERS
135 bool
136
Ananth N Mavinakayanahalli9edddaa2008-03-04 14:28:37 -0800137config KRETPROBES
138 def_bool y
139 depends on KPROBES && HAVE_KRETPROBES
140
Avi Kivity7c68af62009-09-19 09:40:22 +0300141config USER_RETURN_NOTIFIER
142 bool
143 depends on HAVE_USER_RETURN_NOTIFIER
144 help
145 Provide a kernel-internal notification when a cpu is about to
146 switch to user mode.
147
Rik van Riel28b2ee22008-07-23 21:27:05 -0700148config HAVE_IOREMAP_PROT
Jan Beulich9ba16082008-10-15 22:01:38 -0700149 bool
Rik van Riel28b2ee22008-07-23 21:27:05 -0700150
Mathieu Desnoyers125e5642008-02-02 15:10:36 -0500151config HAVE_KPROBES
Jan Beulich9ba16082008-10-15 22:01:38 -0700152 bool
Ananth N Mavinakayanahalli9edddaa2008-03-04 14:28:37 -0800153
154config HAVE_KRETPROBES
Jan Beulich9ba16082008-10-15 22:01:38 -0700155 bool
Arthur Kepner74bc7ce2008-04-29 01:00:30 -0700156
Masami Hiramatsuafd66252010-02-25 08:34:07 -0500157config HAVE_OPTPROBES
158 bool
Cong Wangd314d742012-03-23 15:01:51 -0700159
160config HAVE_NMI_WATCHDOG
161 bool
Roland McGrath1f5a4ad2008-07-25 19:45:57 -0700162#
163# An arch should select this if it provides all these things:
164#
165# task_pt_regs() in asm/processor.h or asm/ptrace.h
166# arch_has_single_step() if there is hardware single-step support
167# arch_has_block_step() if there is hardware block-step support
Roland McGrath1f5a4ad2008-07-25 19:45:57 -0700168# asm/syscall.h supplying asm-generic/syscall.h interface
169# linux/regset.h user_regset interfaces
170# CORE_DUMP_USE_REGSET #define'd in linux/elf.h
171# TIF_SYSCALL_TRACE calls tracehook_report_syscall_{entry,exit}
172# TIF_NOTIFY_RESUME calls tracehook_notify_resume()
173# signal delivery calls tracehook_signal_handler()
174#
175config HAVE_ARCH_TRACEHOOK
Jan Beulich9ba16082008-10-15 22:01:38 -0700176 bool
Roland McGrath1f5a4ad2008-07-25 19:45:57 -0700177
Arthur Kepner74bc7ce2008-04-29 01:00:30 -0700178config HAVE_DMA_ATTRS
Jan Beulich9ba16082008-10-15 22:01:38 -0700179 bool
Jens Axboe3d442232008-06-26 11:21:34 +0200180
Marek Szyprowskic64be2b2011-12-29 13:09:51 +0100181config HAVE_DMA_CONTIGUOUS
182 bool
183
Jens Axboe3d442232008-06-26 11:21:34 +0200184config USE_GENERIC_SMP_HELPERS
Jan Beulich9ba16082008-10-15 22:01:38 -0700185 bool
David Brownell9483a572008-07-23 21:26:48 -0700186
Thomas Gleixner29d5e042012-04-20 13:05:45 +0000187config GENERIC_SMP_IDLE_THREAD
188 bool
189
Thomas Gleixnera6359d12012-05-03 09:03:02 +0000190# Select if arch init_task initializer is different to init/init_task.c
191config ARCH_INIT_TASK
Thomas Gleixnera4a2eb42012-05-03 09:02:48 +0000192 bool
193
Thomas Gleixnerf5e10282012-05-05 15:05:48 +0000194# Select if arch has its private alloc_task_struct() function
195config ARCH_TASK_STRUCT_ALLOCATOR
196 bool
197
198# Select if arch has its private alloc_thread_info() function
199config ARCH_THREAD_INFO_ALLOCATOR
200 bool
201
Heiko Carstensf850c30c2010-02-10 17:25:17 +0100202config HAVE_REGS_AND_STACK_ACCESS_API
203 bool
Heiko Carstense01292b2010-02-18 14:25:21 +0100204 help
205 This symbol should be selected by an architecure if it supports
206 the API needed to access registers and stack entries from pt_regs,
207 declared in asm/ptrace.h
208 For example the kprobes-based event tracer needs this API.
Heiko Carstensf850c30c2010-02-10 17:25:17 +0100209
David Brownell9483a572008-07-23 21:26:48 -0700210config HAVE_CLK
Jan Beulich9ba16082008-10-15 22:01:38 -0700211 bool
David Brownell9483a572008-07-23 21:26:48 -0700212 help
213 The <linux/clk.h> calls support software clock gating and
214 thus are a key power management tool on many systems.
215
Joerg Roedel5ee00bd2009-01-09 12:14:24 +0100216config HAVE_DMA_API_DEBUG
217 bool
Heiko Carstens36cd3c92009-04-09 18:48:34 +0200218
K.Prasad62a038d2009-06-01 23:43:33 +0530219config HAVE_HW_BREAKPOINT
220 bool
Frederic Weisbecker99e8c5a2009-12-17 01:33:54 +0100221 depends on PERF_EVENTS
K.Prasad62a038d2009-06-01 23:43:33 +0530222
Frederic Weisbecker01027522010-04-11 18:55:56 +0200223config HAVE_MIXED_BREAKPOINTS_REGS
224 bool
225 depends on HAVE_HW_BREAKPOINT
226 help
227 Depending on the arch implementation of hardware breakpoints,
228 some of them have separate registers for data and instruction
229 breakpoints addresses, others have mixed registers to store
230 them but define the access type in a control register.
231 Select this option if your arch implements breakpoints under the
232 latter fashion.
233
Avi Kivity7c68af62009-09-19 09:40:22 +0300234config HAVE_USER_RETURN_NOTIFIER
235 bool
Ingo Molnara1922ed2009-09-07 08:19:51 +0200236
Frederic Weisbeckerc01d4322010-05-15 22:57:48 +0200237config HAVE_PERF_EVENTS_NMI
238 bool
Frederic Weisbecker23637d42010-05-15 23:15:20 +0200239 help
240 System hardware can generate an NMI using the perf event
241 subsystem. Also has support for calculating CPU cycle events
242 to determine how many clock cycles in a given period.
Frederic Weisbeckerc01d4322010-05-15 22:57:48 +0200243
Jiri Olsac5e63192012-08-07 15:20:36 +0200244config HAVE_PERF_REGS
245 bool
246 help
247 Support selective register dumps for perf events. This includes
248 bit-mapping of each registers and a unique architecture id.
249
Jiri Olsac5ebced2012-08-07 15:20:40 +0200250config HAVE_PERF_USER_STACK_DUMP
251 bool
252 help
253 Support user stack dumps for perf event samples. This needs
254 access to the user stack pointer which is not unified across
255 architectures.
256
Jason Baronbf5438fc2010-09-17 11:09:00 -0400257config HAVE_ARCH_JUMP_LABEL
258 bool
259
Gerald Schaefer335d7af2010-11-22 15:47:36 +0100260config HAVE_ARCH_MUTEX_CPU_RELAX
261 bool
262
Peter Zijlstra26723912011-05-24 17:12:00 -0700263config HAVE_RCU_TABLE_FREE
264 bool
265
Huang Yingdf013ff2011-07-13 13:14:22 +0800266config ARCH_HAVE_NMI_SAFE_CMPXCHG
267 bool
268
Heiko Carstens43570fd2012-01-12 17:17:27 -0800269config HAVE_ALIGNED_STRUCT_PAGE
270 bool
271 help
272 This makes sure that struct pages are double word aligned and that
273 e.g. the SLUB allocator can perform double word atomic operations
274 on a struct page for better performance. However selecting this
275 might increase the size of a struct page by a word.
276
Heiko Carstens41561532012-01-12 17:17:30 -0800277config HAVE_CMPXCHG_LOCAL
278 bool
279
Heiko Carstens25654092012-01-12 17:17:33 -0800280config HAVE_CMPXCHG_DOUBLE
281 bool
282
Will Deaconc1d7e012012-07-30 14:42:46 -0700283config ARCH_WANT_IPC_PARSE_VERSION
284 bool
285
286config ARCH_WANT_COMPAT_IPC_PARSE_VERSION
287 bool
288
Chris Metcalf48b25c42012-03-15 13:13:38 -0400289config ARCH_WANT_OLD_COMPAT_IPC
Will Deaconc1d7e012012-07-30 14:42:46 -0700290 select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
Chris Metcalf48b25c42012-03-15 13:13:38 -0400291 bool
292
Al Viro2aa3a7f2012-09-21 19:55:31 -0400293config GENERIC_KERNEL_THREAD
294 bool
295
Al Viroa74fb732012-10-10 21:28:25 -0400296config GENERIC_KERNEL_EXECVE
297 bool
298
Will Drewrye2cfabdf2012-04-12 16:47:57 -0500299config HAVE_ARCH_SECCOMP_FILTER
300 bool
301 help
Will Drewryfb0fadf2012-04-12 16:48:02 -0500302 An arch should select this symbol if it provides all of these things:
Will Drewrybb6ea432012-04-12 16:48:01 -0500303 - syscall_get_arch()
304 - syscall_get_arguments()
305 - syscall_rollback()
306 - syscall_set_return_value()
Will Drewryfb0fadf2012-04-12 16:48:02 -0500307 - SIGSYS siginfo_t support
308 - secure_computing is called from a ptrace_event()-safe context
309 - secure_computing return value is checked and a return value of -1
310 results in the system call being skipped immediately.
Will Drewrye2cfabdf2012-04-12 16:47:57 -0500311
312config SECCOMP_FILTER
313 def_bool y
314 depends on HAVE_ARCH_SECCOMP_FILTER && SECCOMP && NET
315 help
316 Enable tasks to build secure computing environments defined
317 in terms of Berkeley Packet Filter programs which implement
318 task-defined system call filtering polices.
319
320 See Documentation/prctl/seccomp_filter.txt for details.
321
Frederic Weisbecker2b1d5022012-07-11 20:26:30 +0200322config HAVE_RCU_USER_QS
323 bool
324 help
325 Provide kernel entry/exit hooks necessary for userspace
326 RCU extended quiescent state. Syscalls need to be wrapped inside
327 rcu_user_exit()-rcu_user_enter() through the slow path using
328 TIF_NOHZ flag. Exceptions handlers must be wrapped as well. Irqs
329 are already protected inside rcu_irq_enter/rcu_irq_exit() but
330 preemption or signal handling on irq exit still need to be protected.
331
Frederic Weisbeckerb9527412012-06-16 15:39:34 +0200332config HAVE_VIRT_CPU_ACCOUNTING
333 bool
334
Frederic Weisbeckerfdf9c352012-09-09 14:56:31 +0200335config HAVE_IRQ_TIME_ACCOUNTING
336 bool
337 help
338 Archs need to ensure they use a high enough resolution clock to
339 support irq time accounting and then call enable_sched_clock_irqtime().
340
Gerald Schaefer15626062012-10-08 16:30:04 -0700341config HAVE_ARCH_TRANSPARENT_HUGEPAGE
342 bool
343
David Howells786d35d2012-09-28 14:31:03 +0930344config HAVE_MOD_ARCH_SPECIFIC
345 bool
346 help
347 The arch uses struct mod_arch_specific to store data. Many arches
348 just need a simple module loader without arch specific data - those
349 should not enable this.
350
351config MODULES_USE_ELF_RELA
352 bool
353 help
354 Modules only use ELF RELA relocations. Modules with ELF REL
355 relocations will give an error.
356
357config MODULES_USE_ELF_REL
358 bool
359 help
360 Modules only use ELF REL relocations. Modules with ELF RELA
361 relocations will give an error.
362
Peter Oberparleiter2521f2c2009-06-17 16:28:08 -0700363source "kernel/gcov/Kconfig"