ftrace: port to the new ring_buffer
Subsystems (4)
Steven Rostedt
maintainercover ftrace: port to the new ring_buffer
These patches are against linux-tip.
The first is just a fix in the wakeup selftest.
The next is a port of the Unified tracer buffer to linux-tip and some updates.
After that is the ftrace port to use the ring buffer, followed by some more enhancements to ftrace because of the new variable length buffer.
I tried a few configurations and tried to test all the different ftrace tracers, but I'm sure there may be some bugs still to work out. I worked out all those that I found.
But, with the ring_buffer I can envision several ways to clean up ftrace and to make adding new tracers cleaner.
I'm also thinking about making a way that each tracer can allocate its own buffer, and allow for more than one tracer to be running at the same time! (only with different buffers).
-- Steve
Steven Rostedt
maintainerPATCH 1/6 ftrace: give time for wakeup test to run
It is possible that the testing thread in the ftrace wakeup test does not run before we stop the trace. This will cause the trace to fail since nothing will be in the buffers.
This patch adds a small wait in the wakeup test to allow for the woken task to run and be traced.
--- kernel/trace/trace_selftest.c | 3 +++ 1 file changed, 3 insertions(+)
kernel/trace/trace_selftest.c +3 -0
@@ -498,6 +498,9 @@ trace_selftest_startup_wakeup(struct trawake_up_process (p); +/* give a little time to let the thread wake up */ +msleep (100 ); +/* stop the tracing. */ tr->ctrl =0 ; trace->ctrl_update (tr);
Steven Rostedt
maintainerPATCH 2/6 Unified trace buffer
In reply to Steven RostedtThis is a unified tracing buffer that implements a ring buffer that hopefully everyone will eventually be able to use.
The events recorded into the buffer have the following structure:
struct ring_buffer_event {
u32 type:2, len:3, time_delta:27;
u32 array[];
};The minimum size of an event is 8 bytes. All events are 4 byte aligned inside the buffer.
There are 4 types (all internal use for the ring buffer, only the data type is exported to the interface users).
RINGBUF_TYPE_PADDING: this type is used to note extra space at the end
of a buffer page.
RINGBUF_TYPE_TIME_EXTENT: This type is used when the time between events
is greater than the 27 bit delta can hold. We add another 32 bits, and record that in its own event (8 byte size).
RINGBUF_TYPE_TIME_STAMP: (Not implemented yet). This will hold data to
help keep the buffer timestamps in sync.
RINGBUF_TYPE_DATA: The event actually holds user data.
The "len" field is only three bits. Since the data must be 4 byte aligned, this field is shifted left by 2, giving a max length of 28 bytes. If the data load is greater than 28 bytes, the first array field holds the full length of the data load and the len field is set to zero.
Example, data size of 7 bytes:
type = RINGBUF_TYPE_DATA len = 2 time_delta: <time-stamp> - <prev_event-time-stamp> array[0..1]: <7 bytes of data> <1 byte empty>
This event is saved in 12 bytes of the buffer.
An event with 82 bytes of data:
type = RINGBUF_TYPE_DATA
len = 0
time_delta: <time-stamp> - <prev_event-time-stamp> array[0]: 84 (Note the alignment) array[1..14]: <82 bytes of data> <2 bytes empty>
The above event is saved in 92 bytes (if my math is correct). 82 bytes of data, 2 bytes empty, 4 byte header, 4 byte length.
Do not reference the above event struct directly. Use the following functions to gain access to the event table, since the ring_buffer_event structure may change in the future.
ring_buffer_event_length(event): get the length of the event.
This is the size of the memory used to record this event, and not the size of the data pay load.
ring_buffer_time_delta(event): get the time delta of the event
This returns the delta time stamp since the last event.
Note: Even though this is in the header, there should
be no reason to access this directly, accept for debugging.
ring_buffer_event_data(event): get the data from the event
This is the function to use to get the actual data from the event. Note, it is only a pointer to the data inside the buffer. This data must be copied to another location otherwise you risk it being written over in the buffer.
ring_buffer_lock: A way to lock the entire buffer.ring_buffer_unlock: unlock the buffer.
ring_buffer_alloc: create a new ring buffer. Can choose between
overwrite or consumer/producer mode. Overwrite will overwrite old data, where as consumer producer will throw away new data if the consumer catches up with the producer. The consumer/producer is the default.
ring_buffer_free: free the ring buffer.
ring_buffer_resize: resize the buffer. Changes the size of each cpu
buffer. Note, it is up to the caller to provide that the buffer is not being used while this is happening. This requirement may go away but do not count on it.
ring_buffer_lock_reserve: locks the ring buffer and allocates an
entry on the buffer to write to.ring_buffer_unlock_commit: unlocks the ring buffer and commits it to
the buffer.
ring_buffer_write: writes some data into the ring buffer.
ring_buffer_peek: Look at a next item in the cpu buffer.ring_buffer_consume: get the next item in the cpu buffer and
consume it. That is, this function increments the head pointer.
ring_buffer_read_start: Start an iterator of a cpu buffer.
For now, this disables the cpu buffer, until you issue a finish. This is just because we do not want the iterator to be overwritten. This restriction may change in the future. But note, this is used for static reading of a buffer which is usually done "after" a trace. Live readings would want to use the ring_buffer_consume above, which will not disable the ring buffer.
ring_buffer_read_finish: Finishes the read iterator and reenables
the ring buffer.
ring_buffer_iter_peek: Look at the next item in the cpu iterator.ring_buffer_read: Read the iterator and increment it.ring_buffer_iter_reset: Reset the iterator to point to the beginning
of the cpu buffer.ring_buffer_iter_empty: Returns true if the iterator is at the end
of the cpu buffer.
ring_buffer_size: returns the size in bytes of each cpu buffer.
Note, the real size is this times the number of CPUs.
ring_buffer_reset_cpu: Sets the cpu buffer to emptyring_buffer_reset: sets all cpu buffers to empty
ring_buffer_swap_cpu: swaps a cpu buffer from one buffer with a
cpu buffer of another buffer. This is handy when you want to take a snap shot of a running trace on just one cpu. Having a backup buffer, to swap with facilitates this. Ftrace max latencies use this.
ring_buffer_empty: Returns true if the ring buffer is empty.ring_buffer_empty_cpu: Returns true if the cpu buffer is empty.
ring_buffer_record_disable: disable all cpu buffers (read only) ring_buffer_record_disable_cpu: disable a single cpu buffer (read only)ring_buffer_record_enable: enable all cpu buffers. ring_buffer_record_enabl_cpu: enable a single cpu buffer.
ring_buffer_entries: The number of entries in a ring buffer.ring_buffer_overruns: The number of entries removed due to writing wrap.
ring_buffer_time_stamp: Get the time stamp used by the ring buffer ring_buffer_normalize_time_stamp: normalize the ring buffer time stamp
into nanosecs.
I still need to implement the GTOD feature. But we need support from the cpu frequency infrastructure. But this can be done at a later time without affecting the ring buffer interface.
--- include/linux/ring_buffer.h | 130 +++ kernel/trace/Kconfig | 4 kernel/trace/Makefile | 1 kernel/trace/ring_buffer.c | 1672 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 1807 insertions(+)
include/linux/ring_buffer.h new file +130 -0
@@ -0,0 +1,130 @@ +#ifndef _LINUX_RING_BUFFER_H +#define _LINUX_RING_BUFFER_H + +#include <linux/mm.h> +#include <linux/seq_file.h> + +struct ring_buffer ; +struct ring_buffer_iter ; + +/* +* Don't reference this struct directly, use functions below. +*/ +struct ring_buffer_event { +u32 type:2 , len:3 , time_delta:27 ; +u32 array[]; +}; + +/** +* enum ring_buffer_type - internal ring buffer types +* +* @RINGBUF_TYPE_PADDING: Left over page padding +* array is ignored +* size is variable depending on how much +* padding is needed +* +* @RINGBUF_TYPE_TIME_EXTEND: Extend the time delta +* array[0] = time delta (28 .. 59) +* size = 8 bytes +* +* @RINGBUF_TYPE_TIME_STAMP: Sync time stamp with external clock +* array[0] = tv_nsec +* array[1] = tv_sec +* size = 16 bytes +* +* @RINGBUF_TYPE_DATA: Data record +* If len is zero: +* array[0] holds the actual length +* array[1..(length+3)/4-1] holds data +* else +* length = len << 2 +* array[0..(length+3)/4] holds data +*/ +enum ring_buffer_type { +RINGBUF_TYPE_PADDING , +RINGBUF_TYPE_TIME_EXTEND , +/* FIXME: RINGBUF_TYPE_TIME_STAMP not implemented */ +RINGBUF_TYPE_TIME_STAMP , +RINGBUF_TYPE_DATA , +}; + +unsigned ring_buffer_event_length (struct ring_buffer_event *event); +void *ring_buffer_event_data (struct ring_buffer_event *event); + +/** +* ring_buffer_event_time_delta - return the delta timestamp of the event +* @event: the event to get the delta timestamp of +* +* The delta timestamp is the 27 bit timestamp since the last event. +*/ +static inline unsigned +ring_buffer_event_time_delta (struct ring_buffer_event *event) +{ +return event->time_delta; +} + +void ring_buffer_lock (struct ring_buffer *buffer,unsigned long *flags); +void ring_buffer_unlock (struct ring_buffer *buffer,unsigned long flags); + +/* +* size is in bytes for each per CPU buffer. +*/ +struct ring_buffer * +ring_buffer_alloc (unsigned long size,unsigned flags); +void ring_buffer_free (struct ring_buffer *buffer); + +int ring_buffer_resize (struct ring_buffer *buffer,unsigned long size); + +struct ring_buffer_event * +ring_buffer_lock_reserve (struct ring_buffer *buffer, +unsigned long length, +unsigned long *flags); +int ring_buffer_unlock_commit (struct ring_buffer *buffer, +struct ring_buffer_event *event, +unsigned long flags); +int ring_buffer_write (struct ring_buffer *buffer, +unsigned long length,void *data); + +struct ring_buffer_event * +ring_buffer_peek (struct ring_buffer *buffer,int cpu,u64 *ts); +struct ring_buffer_event * +ring_buffer_consume (struct ring_buffer *buffer,int cpu,u64 *ts); + +struct ring_buffer_iter * +ring_buffer_read_start (struct ring_buffer *buffer,int cpu); +void ring_buffer_read_finish (struct ring_buffer_iter *iter); + +struct ring_buffer_event * +ring_buffer_iter_peek (struct ring_buffer_iter *iter,u64 *ts); +struct ring_buffer_event * +ring_buffer_read (struct ring_buffer_iter *iter,u64 *ts); +void ring_buffer_iter_reset (struct ring_buffer_iter *iter); +int ring_buffer_iter_empty (struct ring_buffer_iter *iter); + +unsigned long ring_buffer_size (struct ring_buffer *buffer); + +void ring_buffer_reset_cpu (struct ring_buffer *buffer,int cpu); +void ring_buffer_reset (struct ring_buffer *buffer); + +int ring_buffer_swap_cpu (struct ring_buffer *buffer_a, +struct ring_buffer *buffer_b,int cpu); + +int ring_buffer_empty (struct ring_buffer *buffer); +int ring_buffer_empty_cpu (struct ring_buffer *buffer,int cpu); + +void ring_buffer_record_disable (struct ring_buffer *buffer); +void ring_buffer_record_enable (struct ring_buffer *buffer); +void ring_buffer_record_disable_cpu (struct ring_buffer *buffer,int cpu); +void ring_buffer_record_enable_cpu (struct ring_buffer *buffer,int cpu); + +unsigned long ring_buffer_entries (struct ring_buffer *buffer); +unsigned long ring_buffer_overruns (struct ring_buffer *buffer); + +u64 ring_buffer_time_stamp (int cpu); +void ring_buffer_normalize_time_stamp (int cpu,u64 *ts); + +enum ring_buffer_flags { +RB_FL_OVERWRITE =1 <<0 , +}; + +#endif /* _LINUX_RING_BUFFER_H */
kernel/trace/ring_buffer.c new file +1672 -0
1,672 lines not on this page · raw message
kernel/trace/Kconfig +4 -0
@@ -18,9 +18,13 @@ config HAVE_FTRACE_MCOUNT_RECORD config TRACER_MAX_TRACE bool +config RING_BUFFER + bool + config TRACING bool select DEBUG_FS + select RING_BUFFER select STACKTRACE select TRACEPOINTS
kernel/trace/Makefile +1 -0
@@ -11,6 +11,7 @@ obj-y += trace_selftest_dynamic.o endif obj-$(CONFIG_FTRACE) += libftrace.o +obj-$(CONFIG_RING_BUFFER) += ring_buffer.o obj-$(CONFIG_TRACING) += trace.o obj-$(CONFIG_CONTEXT_SWITCH_TRACER) += trace_sched_switch.o
Re: [PATCH 2/6] Unified trace buffer
kernel/trace/ring_buffer.c line 975
Quoted 12 lines · Steven Rostedt
kernel/trace/ring_buffer.c new file +12
-0+void ring_buffer_lock (struct ring_buffer *buffer,unsigned long *flags) +{ +struct ring_buffer_per_cpu *cpu_buffer; +int cpu; + +local_irq_save (*flags); + +for_each_buffer_cpu (buffer, cpu) { + cpu_buffer = buffer->buffers[cpu]; +spin_lock (&cpu_buffer->lock); + } +}
hm, that's rather unintelligent and needs to be fixed.
Ingo
Re: [PATCH 2/6] Unified trace buffer
a third type of lockdep splat surfaced in -tip testing:
=============================================
[ INFO: possible recursive locking detected ]
2.6.27-rc8-tip #37560
---------------------------------------------
swapper/0 is trying to acquire lock:
(&cpu_buffer->lock){.+..}, at: [<ffffffff802906ac>] ring_buffer_lock+0x46/0x5e
but task is already holding lock:
(&cpu_buffer->lock){.+..}, at: [<ffffffff802906ac>] ring_buffer_lock+0x46/0x5e
other info that might help us debug this:
2 locks held by swapper/0:
#0: (&rq->lock){++..}, at: [<ffffffff80754540>] schedule+0x16f/0x839 #1: (&cpu_buffer->lock){.+..}, at: [<ffffffff802906ac>] ring_buffer_lock+0x46/0x5e
stack backtrace: Pid: 0, comm: swapper Not tainted 2.6.27-rc8-tip #37560 Call Trace: [<ffffffff802743b6>] __lock_acquire+0xb2a/0x116f [<ffffffff80274a88>] lock_acquire+0x8d/0xba [<ffffffff802906ac>] ring_buffer_lock+0x46/0x5e [<ffffffff80756b7c>] _spin_lock+0x29/0x34 [<ffffffff802906ac>] ring_buffer_lock+0x46/0x5e [<ffffffff8039d992>] __next_cpu+0x19/0x28 [<ffffffff802906ac>] ring_buffer_lock+0x46/0x5e [<ffffffff80290762>] ring_buffer_reset+0x1c/0x58 [<ffffffff802942b9>] update_max_tr+0x5f/0x7f [<ffffffff802954e0>] probe_wakeup_sched_switch+0x175/0x189 [<ffffffff80754aa8>] schedule+0x6d7/0x839 [<ffffffff80273de2>] __lock_acquire+0x556/0x116f [<ffffffff807567bb>] trace_hardirqs_on_thunk+0x3a/0x3f [<ffffffff802732c8>] trace_hardirqs_on_caller+0xb4/0xd7 [<ffffffff807567bb>] trace_hardirqs_on_thunk+0x3a/0x3f [<ffffffff80269ea4>] ktime_get_ts+0x21/0x4a [<ffffffff8026c44f>] getnstimeofday+0x38/0x98 [<ffffffff80269ea4>] ktime_get_ts+0x21/0x4a [<ffffffff80227fc8>] native_sched_clock+0x8c/0xa6 [<ffffffff8026b485>] sched_clock_tick+0x78/0x80 [<ffffffff8027020f>] tick_nohz_restart_sched_tick+0x16b/0x178 [<ffffffff802732c8>] trace_hardirqs_on_caller+0xb4/0xd7 [<ffffffff8021fd70>] cpu_idle+0x77/0x79
driver: '2-0:1.0': driver_bound: bound to device 'hub'
Ingo
Steven Rostedt
maintainerRe: [PATCH 2/6] Unified trace buffer
In reply to Ingo MolnarQuoted 17 lines · Ingo Molnar
kernel/trace/ring_buffer.c line 975
Quoted 12 lines · Steven Rostedt
kernel/trace/ring_buffer.c new file +12
-0+void ring_buffer_lock (struct ring_buffer *buffer,unsigned long *flags) +{ +struct ring_buffer_per_cpu *cpu_buffer; +int cpu; + +local_irq_save (*flags); + +for_each_buffer_cpu (buffer, cpu) { + cpu_buffer = buffer->buffers[cpu]; +spin_lock (&cpu_buffer->lock); + } +}hm, that's rather unintelligent and needs to be fixed.
hm, why? It is ordered locking based on the cpu value. This is exactly what ftrace did as well. The unlock even goes backwards max_cpu to 0.
But version 2 of this code will drop both ring_buffer_lock and unlock, but that will come later.
-- Steve
Steven Rostedt
maintainerPATCH 3/6 ring_buffer: add paranoid check for buffer page
In reply to Steven RostedtIf for some strange reason the buffer_page gets bigger, or the page struct gets smaller, I want to know this ASAP. The best way is to not let the kernel compile.
This patch adds code to test the size of the struct buffer_page against the page struct and will cause compile issues if the buffer_page ever gets bigger than the page struct.
--- kernel/trace/ring_buffer.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
kernel/trace/ring_buffer.c +11 -0
@@ -289,6 +289,12 @@ static void rb_free_cpu_buffer(struct rikfree (cpu_buffer); } +/* +* Causes compile errors if the struct buffer_page gets bigger +* than the struct page. +*/ +extern int ring_buffer_page_too_big (void ); +/** * ring_buffer_alloc - allocate a new ring_buffer * @size: the size in bytes that is needed.
@@ -305,6 +311,11 @@ struct ring_buffer *ring_buffer_alloc(unint bsize;int cpu; +/* Paranoid! Optimizes out when all is well */ +if (sizeof (struct buffer_page ) >sizeof (struct page )) +ring_buffer_page_too_big (); + +/* keep it in its own cache line */ buffer =kzalloc (ALIGN (sizeof (*buffer),cache_line_size ()),GFP_KERNEL );
Steven Rostedt
maintainerPATCH 4/6 ring_buffer: reset buffer page when freeing
In reply to Steven RostedtMathieu Desnoyers pointed out that the freeing of the page frame needs to be reset otherwise we might trigger BUG_ON in the page free code.
--- kernel/trace/ring_buffer.c | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-)
kernel/trace/ring_buffer.c +15 -4
@@ -128,6 +128,17 @@ struct buffer_page { };/* +* Also stolen from mm/slob.c. Thanks to Mathieu Desnoyers for pointing +* this issue out. +*/ +static inline void free_buffer_page (struct buffer_page *bpage) +{ +reset_page_mapcount (&bpage->page); + bpage->page.mapping =NULL ; +__free_page (&bpage->page); +} + +/* * We need to fit the time_stamp delta into 27 bits. */ static inline int test_time_stamp (u64 delta)
@@ -240,7 +251,7 @@ static int rb_allocate_pages(struct ring free_pages:list_for_each_entry_safe (page, tmp, &pages, list) {list_del_init (&page->list); -__free_page (&page->page); +free_buffer_page (page); }return -ENOMEM ; }
@@ -284,7 +295,7 @@ static void rb_free_cpu_buffer(struct rilist_for_each_entry_safe (page, tmp, head, list) {list_del_init (&page->list); -__free_page (&page->page); +free_buffer_page (page); }kfree (cpu_buffer); }
@@ -393,7 +404,7 @@ rb_remove_pages(struct ring_buffer_per_c p = cpu_buffer->pages.next; page = list_entry(p, struct buffer_page, list);list_del_init (&page->list); -__free_page (&page->page); +free_buffer_page (page); }BUG_ON (list_empty (&cpu_buffer->pages));
@@ -520,7 +531,7 @@ int ring_buffer_resize(struct ring_buffe free_pages:list_for_each_entry_safe (page, tmp, &pages, list) {list_del_init (&page->list); -__free_page (&page->page); +free_buffer_page (page); }return -ENOMEM ; }
Steven Rostedt
maintainerPATCH 5/6 ftrace: make work with new ring buffer
In reply to Steven RostedtThis patch ports ftrace over to the new ring buffer.
--- kernel/trace/trace.c | 932 +++++++++----------------------------- kernel/trace/trace.h | 22 kernel/trace/trace_boot.c | 16 kernel/trace/trace_functions.c | 2 kernel/trace/trace_irqsoff.c | 6 kernel/trace/trace_mmiotrace.c | 40 - kernel/trace/trace_nop.c | 2 kernel/trace/trace_sched_switch.c | 2 kernel/trace/trace_sched_wakeup.c | 2 kernel/trace/trace_selftest.c | 60 -- kernel/trace/trace_sysprof.c | 2 11 files changed, 288 insertions(+), 798 deletions(-)
kernel/trace/trace.c +234 -698
@@ -33,25 +33,22 @@#include <linux/writeback.h> #include <linux/stacktrace.h> +#include <linux/ring_buffer.h> #include "trace.h" +#define TRACE_BUFFER_FLAGS (RB_FL_OVERWRITE) +unsigned long __read_mostly tracing_max_latency = (cycle_t )ULONG_MAX ;unsigned long __read_mostly tracing_thresh; -static unsigned long __read_mostly tracing_nr_buffers;static cpumask_t __read_mostly tracing_buffer_mask;#define for_each_tracing_cpu (cpu) \ for_each_cpu_mask(cpu, tracing_buffer_mask) -static int trace_alloc_page (void ); -static int trace_free_page (void ); -static int tracing_disabled =1 ; -static unsigned long tracing_pages_allocated; -long ns2usecs (cycle_t nsec) {
@@ -62,7 +59,9 @@ ns2usecs(cycle_t nsec)cycle_t ftrace_now (int cpu) { -return cpu_clock (cpu); +u64 ts =ring_buffer_time_stamp (cpu); +ring_buffer_normalize_time_stamp (cpu, &ts); +return ts; }/*
@@ -102,18 +101,18 @@ static int tracer_enabled = 1;int ftrace_function_enabled;/* -* trace_nr_entries is the number of entries that is allocated -* for a buffer. Note, the number of entries is always rounded -* to ENTRIES_PER_PAGE. +* trace_buf_size is the size in bytes that is allocated +* for a buffer. Note, the number of bytes is always rounded +* to page size. * * This number is purposely set to a low number of 16384. * If the dump on oops happens, it will be much appreciated * to not have to wait for all that output. Anyway this can be * boot time and run time configurable. */ -#define TRACE_ENTRIES_DEFAULT 16384UL +#define TRACE_BUF_SIZE_DEFAULT 1441792UL/* 16384 * 88 (sizeof(entry)) */ -static unsigned long trace_nr_entries =TRACE_ENTRIES_DEFAULT ; +static unsigned long trace_buf_size =TRACE_BUF_SIZE_DEFAULT ;/* trace_types holds a link list of available tracers. */ static struct tracer *trace_types__read_mostly ;
@@ -158,23 +157,21 @@ void trace_wake_up(void)wake_up (&trace_wait); } -#define ENTRIES_PER_PAGE (PAGE_SIZE / sizeof(struct trace_entry)) - -static int __init set_nr_entries (char *str) +static int __init set_buf_size (char *str) { -unsigned long nr_entries; +unsigned long buf_size;int ret;if (!str)return 0 ; - ret =strict_strtoul (str,0 , &nr_entries); + ret =strict_strtoul (str,0 , &buf_size);/* nr_entries can not be zero */ -if (ret <0 || nr_entries ==0 ) +if (ret <0 || buf_size ==0 )return 0 ; - trace_nr_entries = nr_entries; + trace_buf_size = buf_size;return 1 ; } -__setup ("trace_entries=" , set_nr_entries); +__setup ("trace_buf_size=" , set_buf_size);unsigned long nsecs_to_usecs (unsigned long nsecs) {
@@ -243,54 +240,6 @@ __update_max_tr(struct trace_array *tr,tracing_record_cmdline (current); } -#define CHECK_COND (cond) \ - if (unlikely(cond)) { \ - tracing_disabled = 1; \ - WARN_ON(1); \ - return -1; \ - } - -/** -* check_pages - integrity check of trace buffers -* -* As a safty measure we check to make sure the data pages have not -* been corrupted. -*/ -int check_pages (struct trace_array_cpu *data) -{ -struct page *page, *tmp; - -CHECK_COND (data->trace_pages.next->prev != &data->trace_pages); -CHECK_COND (data->trace_pages.prev->next != &data->trace_pages); - -list_for_each_entry_safe (page, tmp, &data->trace_pages, lru) { -CHECK_COND (page->lru.next->prev != &page->lru); -CHECK_COND (page->lru.prev->next != &page->lru); - } - -return 0 ; -} - -/** -* head_page - page address of the first page in per_cpu buffer. -* -* head_page returns the page address of the first page in -* a per_cpu buffer. This also preforms various consistency -* checks to make sure the buffer has not been corrupted. -*/ -void *head_page (struct trace_array_cpu *data) -{ -struct page *page; - -if (list_empty (&data->trace_pages)) -return NULL ; - - page = list_entry(data->trace_pages.next, struct page, lru); -BUG_ON (&page->lru == &data->trace_pages); - -return page_address (page); -} -/** * trace_seq_printf - sequence printing of trace information * @s: trace sequence descriptor
@@ -437,34 +386,6 @@ trace_print_seq(struct seq_file *m, strutrace_seq_reset (s); } -/* -* flip the trace buffers between two trace descriptors. -* This usually is the buffers between the global_trace and -* the max_tr to record a snapshot of a current trace. -* -* The ftrace_max_lock must be held. -*/ -static void -flip_trace (struct trace_array_cpu *tr1,struct trace_array_cpu *tr2) -{ -struct list_head flip_pages; - -INIT_LIST_HEAD (&flip_pages); - -memcpy (&tr1->trace_head_idx, &tr2->trace_head_idx, -sizeof (struct trace_array_cpu ) - - offsetof(struct trace_array_cpu , trace_head_idx)); - -check_pages (tr1); -check_pages (tr2); -list_splice_init (&tr1->trace_pages, &flip_pages); -list_splice_init (&tr2->trace_pages, &tr1->trace_pages); -list_splice_init (&flip_pages, &tr2->trace_pages); -BUG_ON (!list_empty (&flip_pages)); -check_pages (tr1); -check_pages (tr2); -} -/** * update_max_tr - snapshot all trace buffers from global_trace to max_tr * @tr: tracer
@@ -477,17 +398,15 @@ flip_trace(struct trace_array_cpu *tr1,void update_max_tr (struct trace_array *tr,struct task_struct *tsk,int cpu) { -struct trace_array_cpu *data; -int i; +struct ring_buffer *buf = tr->buffer;WARN_ON_ONCE (!irqs_disabled ());__raw_spin_lock (&ftrace_max_lock); -/* clear out all the previous traces */ -for_each_tracing_cpu (i) { - data = tr->data[i]; -flip_trace (max_tr.data[i], data); -tracing_reset (data); - } + + tr->buffer = max_tr.buffer; + max_tr.buffer = buf; + +ring_buffer_reset (tr->buffer);__update_max_tr (tr, tsk, cpu);__raw_spin_unlock (&ftrace_max_lock);
@@ -504,16 +423,15 @@ update_max_tr(struct trace_array *tr, stvoid update_max_tr_single (struct trace_array *tr,struct task_struct *tsk,int cpu) { -struct trace_array_cpu *data = tr->data[cpu]; -int i; +int ret;WARN_ON_ONCE (!irqs_disabled ());__raw_spin_lock (&ftrace_max_lock); -for_each_tracing_cpu (i) -tracing_reset (max_tr.data[i]); -flip_trace (max_tr.data[cpu], data); -tracing_reset (data); +ring_buffer_reset (max_tr.buffer); + ret =ring_buffer_swap_cpu (max_tr.buffer, tr->buffer, cpu); + +WARN_ON_ONCE (ret);__update_max_tr (tr, tsk, cpu);__raw_spin_unlock (&ftrace_max_lock);
@@ -550,7 +468,6 @@ int register_tracer(struct tracer *type)#ifdef CONFIG_FTRACE_STARTUP_TEST if (type->selftest) {struct tracer *saved_tracer = current_trace; -struct trace_array_cpu *data;struct trace_array *tr = &global_trace;int saved_ctrl = tr->ctrl;int i;
@@ -562,10 +479,7 @@ int register_tracer(struct tracer *type)* If we fail, we do not register this tracer. */ for_each_tracing_cpu (i) { - data = tr->data[i]; -if (!head_page (data)) -continue ; -tracing_reset (data); +tracing_reset (tr, i); } current_trace = type; tr->ctrl =0 ;
@@ -581,10 +495,7 @@ int register_tracer(struct tracer *type) }/* Only reset on passing, to avoid touching corrupted buffers */ for_each_tracing_cpu (i) { - data = tr->data[i]; -if (!head_page (data)) -continue ; -tracing_reset (data); +tracing_reset (tr, i); }printk (KERN_CONT "PASSED\n" ); }
@@ -630,13 +541,9 @@ void unregister_tracer(struct tracer *tymutex_unlock (&trace_types_lock); } -void tracing_reset (struct trace_array_cpu *data) +void tracing_reset (struct trace_array *tr,int cpu) { - data->trace_idx =0 ; - data->overrun =0 ; - data->trace_head = data->trace_tail =head_page (data); - data->trace_head_idx =0 ; - data->trace_tail_idx =0 ; +ring_buffer_reset_cpu (tr->buffer, cpu); }#define SAVED_CMDLINES 128
@@ -722,70 +629,6 @@ void tracing_record_cmdline(struct task_trace_save_cmdline (tsk); } -static inline struct list_head * -trace_next_list (struct trace_array_cpu *data,struct list_head *next) -{ -/* -* Roundrobin - but skip the head (which is not a real page): -*/ - next = next->next; -if (unlikely (next == &data->trace_pages)) - next = next->next; -BUG_ON (next == &data->trace_pages); - -return next; -} - -static inline void * -trace_next_page (struct trace_array_cpu *data,void *addr) -{ -struct list_head *next; -struct page *page; - - page =virt_to_page (addr); - - next =trace_next_list (data, &page->lru); - page = list_entry(next, struct page, lru); - -return page_address (page); -} - -struct trace_entry * -tracing_get_trace_entry (struct trace_array *tr,struct trace_array_cpu *data) -{ -unsigned long idx, idx_next; -struct trace_entry *entry; - - data->trace_idx++; - idx = data->trace_head_idx; - idx_next = idx +1 ; - -BUG_ON (idx *TRACE_ENTRY_SIZE >=PAGE_SIZE ); - - entry = data->trace_head + idx *TRACE_ENTRY_SIZE ; - -if (unlikely (idx_next >=ENTRIES_PER_PAGE )) { - data->trace_head =trace_next_page (data, data->trace_head); - idx_next =0 ; - } - -if (data->trace_head == data->trace_tail && - idx_next == data->trace_tail_idx) { -/* overrun */ - data->overrun++; - data->trace_tail_idx++; -if (data->trace_tail_idx >=ENTRIES_PER_PAGE ) { - data->trace_tail = -trace_next_page (data, data->trace_tail); - data->trace_tail_idx =0 ; - } - } - - data->trace_head_idx = idx_next; - -return entry; -} -void tracing_generic_entry_update (struct trace_entry *entry,unsigned long flags) {
@@ -796,7 +639,6 @@ tracing_generic_entry_update(struct trac entry->field.preempt_count = pc &0xff ; entry->field.pid = (tsk) ? tsk->pid :0 ; - entry->field.t =ftrace_now (raw_smp_processor_id ()); entry->field.flags = (irqs_disabled_flags (flags) ?TRACE_FLAG_IRQS_OFF :0 ) | ((pc & HARDIRQ_MASK) ? TRACE_FLAG_HARDIRQ : 0) |
@@ -808,18 +650,20 @@ void trace_function(struct trace_array *tr, struct trace_array_cpu *data, unsigned long ip, unsigned long parent_ip, unsigned long flags) { + struct ring_buffer_event *event;struct trace_entry *entry;unsigned long irq_flags; -raw_local_irq_save (irq_flags); -__raw_spin_lock (&data->lock); - entry =tracing_get_trace_entry (tr, data); + event =ring_buffer_lock_reserve (tr->buffer,sizeof (*entry), + &irq_flags); +if (!event) +return ; + entry =ring_buffer_event_data (event);tracing_generic_entry_update (entry, flags); entry->type =TRACE_FN ; entry->field.fn.ip = ip; entry->field.fn.parent_ip = parent_ip; -__raw_spin_unlock (&data->lock); -raw_local_irq_restore (irq_flags); +ring_buffer_unlock_commit (tr->buffer, event, irq_flags); }void
@@ -835,13 +679,19 @@ void __trace_stack(struct trace_array *t unsigned long flags, int skip) { +struct ring_buffer_event *event;struct trace_entry *entry;struct stack_trace trace; +unsigned long irq_flags;if (!(trace_flags &TRACE_ITER_STACKTRACE ))return ; - entry =tracing_get_trace_entry (tr, data); + event =ring_buffer_lock_reserve (tr->buffer,sizeof (*entry), + &irq_flags); +if (!event) +return ; + entry =ring_buffer_event_data (event);tracing_generic_entry_update (entry, flags); entry->type =TRACE_STACK ;
@@ -853,28 +703,31 @@ void __trace_stack(struct trace_array *t trace.entries = entry->field.stack.caller;save_stack_trace (&trace); +ring_buffer_unlock_commit (tr->buffer, event, irq_flags); }void __trace_special (void *__tr,void *__data,unsigned long arg1,unsigned long arg2,unsigned long arg3) { +struct ring_buffer_event *event;struct trace_array_cpu *data = __data;struct trace_array *tr = __tr;struct trace_entry *entry;unsigned long irq_flags; -raw_local_irq_save (irq_flags); -__raw_spin_lock (&data->lock); - entry =tracing_get_trace_entry (tr, data); + event =ring_buffer_lock_reserve (tr->buffer,sizeof (*entry), + &irq_flags); +if (!event) +return ; + entry =ring_buffer_event_data (event);tracing_generic_entry_update (entry,0 ); entry->type =TRACE_SPECIAL ; entry->field.special.arg1 = arg1; entry->field.special.arg2 = arg2; entry->field.special.arg3 = arg3; +ring_buffer_unlock_commit (tr->buffer, event, irq_flags);__trace_stack (tr, data, irq_flags,4 ); -__raw_spin_unlock (&data->lock); -raw_local_irq_restore (irq_flags);trace_wake_up (); }
@@ -886,12 +739,15 @@ tracing_sched_switch_trace(struct trace_ struct task_struct *next, unsigned long flags) { +struct ring_buffer_event *event;struct trace_entry *entry;unsigned long irq_flags; -raw_local_irq_save (irq_flags); -__raw_spin_lock (&data->lock); - entry =tracing_get_trace_entry (tr, data); + event =ring_buffer_lock_reserve (tr->buffer,sizeof (*entry), + &irq_flags); +if (!event) +return ; + entry =ring_buffer_event_data (event);tracing_generic_entry_update (entry, flags); entry->type =TRACE_CTX ; entry->field.ctx.prev_pid = prev->pid;
@@ -901,9 +757,8 @@ tracing_sched_switch_trace(struct trace_ entry->field.ctx.next_prio = next->prio; entry->field.ctx.next_state = next->state; entry->field.ctx.next_cpu =task_cpu (next); +ring_buffer_unlock_commit (tr->buffer, event, irq_flags);__trace_stack (tr, data, flags,5 ); -__raw_spin_unlock (&data->lock); -raw_local_irq_restore (irq_flags); }void
@@ -913,12 +768,15 @@ tracing_sched_wakeup_trace(struct trace_ struct task_struct *curr, unsigned long flags) { +struct ring_buffer_event *event;struct trace_entry *entry;unsigned long irq_flags; -raw_local_irq_save (irq_flags); -__raw_spin_lock (&data->lock); - entry =tracing_get_trace_entry (tr, data); + event =ring_buffer_lock_reserve (tr->buffer,sizeof (*entry), + &irq_flags); +if (!event) +return ; + entry =ring_buffer_event_data (event);tracing_generic_entry_update (entry, flags); entry->type =TRACE_WAKE ; entry->field.ctx.prev_pid = curr->pid;
@@ -928,9 +786,8 @@ tracing_sched_wakeup_trace(struct trace_ entry->field.ctx.next_prio = wakee->prio; entry->field.ctx.next_state = wakee->state; entry->field.ctx.next_cpu =task_cpu (wakee); +ring_buffer_unlock_commit (tr->buffer, event, irq_flags);__trace_stack (tr, data, flags,6 ); -__raw_spin_unlock (&data->lock); -raw_local_irq_restore (irq_flags);trace_wake_up (); }
@@ -1011,183 +868,77 @@ enum trace_file_type { TRACE_FILE_LAT_FMT = 1, }; -/* Return the current entry. */ -static struct trace_entry * -trace_entry_idx (struct trace_array *tr,struct trace_array_cpu *data, -struct trace_iterator *iter,int cpu) -{ -struct page *page; -struct trace_entry *array; - -if (iter->next_idx[cpu] >= tr->entries || - iter->next_idx[cpu] >= data->trace_idx || - (data->trace_head == data->trace_tail && - data->trace_head_idx == data->trace_tail_idx)) -return NULL ; - -if (!iter->next_page[cpu]) { -/* Initialize the iterator for this cpu trace buffer */ -WARN_ON (!data->trace_tail); - page =virt_to_page (data->trace_tail); - iter->next_page[cpu] = &page->lru; - iter->next_page_idx[cpu] = data->trace_tail_idx; - } - - page = list_entry(iter->next_page[cpu], struct page, lru); -BUG_ON (&data->trace_pages == &page->lru); - - array =page_address (page); - -WARN_ON (iter->next_page_idx[cpu] >=ENTRIES_PER_PAGE ); -return &array[iter->next_page_idx[cpu]]; -} - -/* Increment the index counter of an iterator by one */ -static void __trace_iterator_increment (struct trace_iterator *iter,int cpu) -{ - iter->next_idx[cpu]++; - iter->next_page_idx[cpu]++; - -if (iter->next_page_idx[cpu] >=ENTRIES_PER_PAGE ) { -struct trace_array_cpu *data = iter->tr->data[cpu]; - - iter->next_page_idx[cpu] =0 ; - iter->next_page[cpu] = -trace_next_list (data, iter->next_page[cpu]); - } -} -static void trace_iterator_increment (struct trace_iterator *iter,int cpu) { iter->idx++; -__trace_iterator_increment (iter, cpu); +ring_buffer_read (iter->buffer_iter[iter->cpu],NULL ); }static struct trace_entry * -trace_entry_next (struct trace_array *tr,struct trace_array_cpu *data, -struct trace_iterator *iter,int cpu) +peek_next_entry (struct trace_iterator *iter,int cpu,u64 *ts) { -struct list_head *next_page; -struct trace_entry *ent; -int idx, next_idx, next_page_idx; +struct ring_buffer_event *event; +struct ring_buffer_iter *buf_iter = iter->buffer_iter[cpu]; - ent =trace_entry_idx (tr, tr->data[cpu], iter, cpu); - -if (likely (!ent || ent->type !=TRACE_CONT )) -return ent; - -/* save the iterator details */ - idx = iter->idx; - next_idx = iter->next_idx[cpu]; - next_page_idx = iter->next_page_idx[cpu]; - next_page = iter->next_page[cpu]; - -/* find a real entry */ -do { -__trace_iterator_increment (iter, cpu); - ent =trace_entry_idx (tr, tr->data[cpu], iter, cpu); - }while (ent && ent->type !=TRACE_CONT ); - -/* reset the iterator */ - iter->idx = idx; - iter->next_idx[cpu] = next_idx; - iter->next_page_idx[cpu] = next_page_idx; - iter->next_page[cpu] = next_page; - -return ent; + event =ring_buffer_iter_peek (buf_iter, ts); +return event ?ring_buffer_event_data (event) :NULL ; } -static struct trace_entry * -__find_next_entry (struct trace_iterator *iter,int *ent_cpu,int inc) +__find_next_entry (struct trace_iterator *iter,int *ent_cpu,u64 *ent_ts) { -struct trace_array *tr = iter->tr; +struct ring_buffer *buffer = iter->tr->buffer;struct trace_entry *ent, *next =NULL ; +u64 next_ts =0 , ts;int next_cpu =-1 ;int cpu;for_each_tracing_cpu (cpu) { -if (!head_page (tr->data[cpu])) -continue ; - - ent =trace_entry_idx (tr, tr->data[cpu], iter, cpu); -if (ent && ent->type ==TRACE_CONT ) { -struct trace_array_cpu *data = tr->data[cpu]; +if (ring_buffer_empty_cpu (buffer, cpu)) +continue ; -if (!inc) - ent =trace_entry_next (tr, data, iter, cpu); -else { -while (ent && ent->type ==TRACE_CONT ) { -__trace_iterator_increment (iter, cpu); - ent =trace_entry_idx (tr, tr->data[cpu], - iter, cpu); - } - } - } + ent =peek_next_entry (iter, cpu, &ts);/* * Pick the entry with the smallest timestamp: */ -if (ent && (!next || ent->field.t < next->field.t)) { +if (ent && (!next || ts < next_ts)) { next = ent; next_cpu = cpu; + next_ts = ts; } }if (ent_cpu) *ent_cpu = next_cpu; +if (ent_ts) + *ent_ts = next_ts; +return next; }/* Find the next real entry, without updating the iterator itself */ static struct trace_entry * -find_next_entry (struct trace_iterator *iter,int *ent_cpu) +find_next_entry (struct trace_iterator *iter,int *ent_cpu,u64 *ent_ts) { -return __find_next_entry (iter, ent_cpu,0 ); +return __find_next_entry (iter, ent_cpu, ent_ts); }/* Find the next real entry, and increment the iterator to the next entry */ static void *find_next_entry_inc (struct trace_iterator *iter) { -struct trace_entry *next; -int next_cpu =-1 ; - - next =__find_next_entry (iter, &next_cpu,1 ); - - iter->prev_ent = iter->ent; - iter->prev_cpu = iter->cpu; + iter->ent =__find_next_entry (iter, &iter->cpu, &iter->ts); - iter->ent = next; - iter->cpu = next_cpu; - -if (next) +if (iter->ent)trace_iterator_increment (iter, iter->cpu); -return next ? iter :NULL ; +return iter->ent ? iter :NULL ; }static void trace_consume (struct trace_iterator *iter) { -struct trace_array_cpu *data = iter->tr->data[iter->cpu]; -struct trace_entry *ent; - - again: - data->trace_tail_idx++; -if (data->trace_tail_idx >=ENTRIES_PER_PAGE ) { - data->trace_tail =trace_next_page (data, data->trace_tail); - data->trace_tail_idx =0 ; - } - -/* Check if we empty it, then reset the index */ -if (data->trace_head == data->trace_tail && - data->trace_head_idx == data->trace_tail_idx) - data->trace_idx =0 ; - - ent =trace_entry_idx (iter->tr, iter->tr->data[iter->cpu], - iter, iter->cpu); -if (ent && ent->type ==TRACE_CONT ) - goto again; +ring_buffer_consume (iter->tr->buffer, iter->cpu, &iter->ts); }static void *s_next (struct seq_file *m,void *v,loff_t *pos)
@@ -1220,7 +971,7 @@ static void *s_start(struct seq_file *m,struct trace_iterator *iter = m->private;void *p =NULL ;loff_t l =0 ; -int i; +int cpu;mutex_lock (&trace_types_lock);
@@ -1239,12 +990,9 @@ static void *s_start(struct seq_file *m, iter->ent =NULL ; iter->cpu =0 ; iter->idx =-1 ; - iter->prev_ent =NULL ; - iter->prev_cpu =-1 ; -for_each_tracing_cpu (i) { - iter->next_idx[i] =0 ; - iter->next_page[i] =NULL ; +for_each_tracing_cpu (cpu) { +ring_buffer_iter_reset (iter->buffer_iter[cpu]); }for (p = iter; p && l < *pos; p =s_next (m, p, &l))
@@ -1365,23 +1113,16 @@ print_trace_header(struct seq_file *m, sstruct trace_array *tr = iter->tr;struct trace_array_cpu *data = tr->data[tr->cpu];struct tracer *type = current_trace; -unsigned long total =0 ; -unsigned long entries =0 ; -int cpu; +unsigned long total; +unsigned long entries;const char *name ="preemption" ;if (type) name = type->name; -for_each_tracing_cpu (cpu) { -if (head_page (tr->data[cpu])) { - total += tr->data[cpu]->trace_idx; -if (tr->data[cpu]->trace_idx > tr->entries) - entries += tr->entries; -else - entries += tr->data[cpu]->trace_idx; - } - } + entries =ring_buffer_entries (iter->tr->buffer); + total = entries + +ring_buffer_overruns (iter->tr->buffer);seq_printf (m,"%s latency trace v1.1.5 on %s\n" , name,UTS_RELEASE );
@@ -1468,7 +1209,7 @@ lat_print_generic(struct trace_seq *s, sunsigned long preempt_mark_thresh =100 ;static void -lat_print_timestamp (struct trace_seq *s,unsigned long long abs_usecs, +lat_print_timestamp (struct trace_seq *s,u64 abs_usecs,unsigned long rel_usecs) {trace_seq_printf (s," %4lldus" , abs_usecs);
@@ -1488,12 +1229,10 @@ static const char state_to_char[] = TASK*/ void trace_seq_print_cont (struct trace_seq *s,struct trace_iterator *iter) { -struct trace_array *tr = iter->tr; -struct trace_array_cpu *data = tr->data[iter->cpu];struct trace_entry *ent;bool ok = true; - ent =trace_entry_idx (tr, data, iter, iter->cpu); + ent =peek_next_entry (iter, iter->cpu,NULL );if (!ent || ent->type !=TRACE_CONT ) {trace_seq_putc (s,'\n' );return ;
@@ -1502,8 +1241,8 @@ void trace_seq_print_cont(struct trace_sdo {if (ok) ok = (trace_seq_printf (s,"%s" , ent->cont.buf) >0 ); -__trace_iterator_increment (iter, iter->cpu); - ent =trace_entry_idx (tr, data, iter, iter->cpu); +ring_buffer_read (iter->buffer_iter[iter->cpu],NULL ); + ent =peek_next_entry (iter, iter->cpu,NULL ); }while (ent && ent->type ==TRACE_CONT );if (!ok)
@@ -1515,25 +1254,26 @@ print_lat_fmt(struct trace_iterator *ite {struct trace_seq *s = &iter->seq;unsigned long sym_flags = (trace_flags &TRACE_ITER_SYM_MASK ); -struct trace_entry *next_entry =find_next_entry (iter,NULL ); +struct trace_entry *next_entry;unsigned long verbose = (trace_flags &TRACE_ITER_VERBOSE );struct trace_entry *entry = iter->ent;struct trace_field *field = &entry->field;unsigned long abs_usecs;unsigned long rel_usecs; +u64 next_ts;char *comm;int S ,T ;int i;unsigned state; -if (!next_entry) - next_entry = entry; -if (entry->type ==TRACE_CONT )return 1 ; - rel_usecs =ns2usecs (next_entry->field.t - entry->field.t); - abs_usecs =ns2usecs (entry->field.t - iter->tr->time_start); + next_entry =find_next_entry (iter,NULL , &next_ts); +if (!next_entry) + next_ts = iter->ts; + rel_usecs =ns2usecs (next_ts - iter->ts); + abs_usecs =ns2usecs (iter->ts - iter->tr->time_start);if (verbose) { comm =trace_find_cmdline (field->pid);
@@ -1542,7 +1282,7 @@ print_lat_fmt(struct trace_iterator *ite comm, field->pid, cpu, field->flags, field->preempt_count, trace_idx, -ns2usecs (field->t), +ns2usecs (iter->ts), abs_usecs/1000 , abs_usecs %1000 , rel_usecs/1000 , rel_usecs % 1000);
@@ -1627,7 +1367,7 @@ static int print_trace_fmt(struct trace_ comm =trace_find_cmdline (iter->ent->field.pid); - t =ns2usecs (field->t); + t =ns2usecs (iter->ts); usec_rem =do_div (t,1000000ULL ); secs = (unsigned long )t;
@@ -1732,7 +1472,7 @@ static int print_raw_fmt(struct trace_it field = &entry->field; ret =trace_seq_printf (s,"%d %d %llu " , - field->pid, iter->cpu, field->t); + field->pid, iter->cpu, iter->ts);if (!ret)return 0 ;
@@ -1811,7 +1551,7 @@ static int print_hex_fmt(struct trace_itSEQ_PUT_HEX_FIELD_RET (s, field->pid);SEQ_PUT_HEX_FIELD_RET (s, iter->cpu); -SEQ_PUT_HEX_FIELD_RET (s, field->t); +SEQ_PUT_HEX_FIELD_RET (s, iter->ts);switch (entry->type) {case TRACE_FN :
@@ -1861,7 +1601,7 @@ static int print_bin_fmt(struct trace_itSEQ_PUT_FIELD_RET (s, field->pid);SEQ_PUT_FIELD_RET (s, field->cpu); -SEQ_PUT_FIELD_RET (s, field->t); +SEQ_PUT_FIELD_RET (s, iter->ts);switch (entry->type) {case TRACE_FN :
@@ -1888,15 +1628,10 @@ static int print_bin_fmt(struct trace_itstatic int trace_empty (struct trace_iterator *iter) { -struct trace_array_cpu *data;int cpu;for_each_tracing_cpu (cpu) { - data = iter->tr->data[cpu]; - -if (head_page (data) && data->trace_idx && - (data->trace_tail != data->trace_head || - data->trace_tail_idx != data->trace_head_idx)) +if (!ring_buffer_iter_empty (iter->buffer_iter[cpu]))return 0 ; }return 1 ;
@@ -1961,6 +1696,8 @@ static struct trace_iterator * __tracing_open(struct inode *inode, struct file *file, int *ret) { struct trace_iterator *iter; +struct seq_file *m; +int cpu;if (tracing_disabled) { *ret = -ENODEV ;
@@ -1981,28 +1718,43 @@ __tracing_open(struct inode *inode, stru iter->trace = current_trace; iter->pos =-1 ; +for_each_tracing_cpu (cpu) { + iter->buffer_iter[cpu] = +ring_buffer_read_start (iter->tr->buffer, cpu); +if (!iter->buffer_iter[cpu]) + goto fail_buffer; + } +/* TODO stop tracer */ *ret =seq_open (file, &tracer_seq_ops); -if (!*ret) { -struct seq_file *m = file->private_data; - m->private = iter; +if (*ret) + goto fail_buffer; -/* stop the trace while dumping */ -if (iter->tr->ctrl) { - tracer_enabled =0 ; - ftrace_function_enabled =0 ; - } + m = file->private_data; + m->private = iter; -if (iter->trace && iter->trace->open) - iter->trace->open (iter); - }else { -kfree (iter); - iter =NULL ; +/* stop the trace while dumping */ +if (iter->tr->ctrl) { + tracer_enabled =0 ; + ftrace_function_enabled =0 ; } + +if (iter->trace && iter->trace->open) + iter->trace->open (iter); +mutex_unlock (&trace_types_lock); out:return iter; + + fail_buffer: +for_each_tracing_cpu (cpu) { +if (iter->buffer_iter[cpu]) +ring_buffer_read_finish (iter->buffer_iter[cpu]); + } +mutex_unlock (&trace_types_lock); + +return ERR_PTR (-ENOMEM ); }int tracing_open_generic (struct inode *inode,struct file *filp)
@@ -2018,8 +1770,14 @@ int tracing_release(struct inode *inode, {struct seq_file *m = (struct seq_file *)file->private_data;struct trace_iterator *iter = m->private; +int cpu;mutex_lock (&trace_types_lock); +for_each_tracing_cpu (cpu) { +if (iter->buffer_iter[cpu]) +ring_buffer_read_finish (iter->buffer_iter[cpu]); + } +if (iter->trace && iter->trace->close) iter->trace->close (iter);
@@ -2526,6 +2284,7 @@ static atomic_t tracing_reader;static int tracing_open_pipe (struct inode *inode,struct file *filp) {struct trace_iterator *iter; +int cpu;if (tracing_disabled)return -ENODEV ;
@@ -2546,17 +2305,38 @@ static int tracing_open_pipe(struct inod iter->trace = current_trace; filp->private_data = iter; +for_each_tracing_cpu (cpu) { + iter->buffer_iter[cpu] = +ring_buffer_read_start (iter->tr->buffer, cpu); +if (!iter->buffer_iter[cpu]) + goto fail_buffer; + } +if (iter->trace->pipe_open) iter->trace->pipe_open (iter);mutex_unlock (&trace_types_lock);return 0 ; + + fail_buffer: +for_each_tracing_cpu (cpu) { +if (iter->buffer_iter[cpu]) +ring_buffer_read_finish (iter->buffer_iter[cpu]); + } +mutex_unlock (&trace_types_lock); + +return -ENOMEM ; }static int tracing_release_pipe (struct inode *inode,struct file *file) {struct trace_iterator *iter = file->private_data; +int cpu; +for_each_tracing_cpu (cpu) { +if (iter->buffer_iter[cpu]) +ring_buffer_read_finish (iter->buffer_iter[cpu]); + }kfree (iter);atomic_dec (&tracing_reader);
@@ -2592,13 +2372,10 @@ tracing_read_pipe(struct file *filp, cha size_t cnt, loff_t *ppos) { struct trace_iterator *iter = filp->private_data; -struct trace_array_cpu *data; -static cpumask_t mask;unsigned long flags;#ifdef CONFIG_FTRACE int ftrace_save;#endif -int cpu;ssize_t sret;/* return any leftover data */
@@ -2687,32 +2464,13 @@ tracing_read_pipe(struct file *filp, cha* and then release the locks again. */ -cpus_clear (mask); -local_irq_save (flags); +local_irq_disable ();#ifdef CONFIG_FTRACE ftrace_save = ftrace_enabled; ftrace_enabled =0 ;#endif smp_wmb (); -for_each_tracing_cpu (cpu) { - data = iter->tr->data[cpu]; - -if (!head_page (data) || !data->trace_idx) -continue ; - -atomic_inc (&data->disabled); -cpu_set (cpu, mask); - } - -for_each_cpu_mask (cpu, mask) { - data = iter->tr->data[cpu]; -__raw_spin_lock (&data->lock); - -if (data->overrun > iter->last_overrun[cpu]) - iter->overrun[cpu] += - data->overrun - iter->last_overrun[cpu]; - iter->last_overrun[cpu] = data->overrun; - } +ring_buffer_lock (iter->tr->buffer, &flags);while (find_next_entry_inc (iter) !=NULL ) {int ret;
@@ -2731,19 +2489,11 @@ tracing_read_pipe(struct file *filp, chabreak ; } -for_each_cpu_mask (cpu, mask) { - data = iter->tr->data[cpu]; -__raw_spin_unlock (&data->lock); - } - -for_each_cpu_mask (cpu, mask) { - data = iter->tr->data[cpu]; -atomic_dec (&data->disabled); - } +ring_buffer_unlock (iter->tr->buffer, flags);#ifdef CONFIG_FTRACE ftrace_enabled = ftrace_save;#endif -local_irq_restore (flags); +local_irq_enable ();/* Now copy what we have to the user */ sret =trace_seq_to_user (&iter->seq, ubuf, cnt);
@@ -2776,7 +2526,7 @@ tracing_entries_write(struct file *filp, {unsigned long val;char buf[64 ]; -int i, ret; +int ret;struct trace_array *tr = filp->private_data;if (cnt >=sizeof (buf))
@@ -2804,52 +2554,31 @@ tracing_entries_write(struct file *filp, goto out; } -if (val > global_trace.entries) { -long pages_requested; -unsigned long freeable_pages; - -/* make sure we have enough memory before mapping */ - pages_requested = - (val + (ENTRIES_PER_PAGE -1 )) /ENTRIES_PER_PAGE ; - -/* account for each buffer (and max_tr) */ - pages_requested *= tracing_nr_buffers *2 ; - -/* Check for overflow */ -if (pages_requested <0 ) { - cnt = -ENOMEM ; - goto out; - } - - freeable_pages =determine_dirtyable_memory (); - -/* we only allow to request 1/4 of useable memory */ -if (pages_requested > - ((freeable_pages + tracing_pages_allocated) /4 )) { - cnt = -ENOMEM ; +if (val != global_trace.entries) { + ret =ring_buffer_resize (global_trace.buffer, val); +if (ret <0 ) { + cnt = ret; goto out; } -while (global_trace.entries < val) { -if (trace_alloc_page ()) { - cnt = -ENOMEM ; - goto out; + ret =ring_buffer_resize (max_tr.buffer, val); +if (ret <0 ) { +int r; + cnt = ret; + r =ring_buffer_resize (global_trace.buffer, + global_trace.entries); +if (r <0 ) { +/* AARGH! We are left with different +* size max buffer!!!! */ +WARN_ON (1 ); + tracing_disabled =1 ; } -/* double check that we don't go over the known pages */ -if (tracing_pages_allocated > pages_requested) -break ; + goto out; } - }else { -/* include the number of entries in val (inc of page entries) */ -while (global_trace.entries > val + (ENTRIES_PER_PAGE -1 )) -trace_free_page (); + global_trace.entries = val; } -/* check integrity */ -for_each_tracing_cpu (i) -check_pages (global_trace.data[i]); - filp->f_pos += cnt;/* If check pages failed, return ENOMEM */
@@ -3086,10 +2815,11 @@ int trace_vprintk(unsigned long ip, consstatic DEFINE_SPINLOCK (trace_buf_lock);static char trace_buf[TRACE_BUF_SIZE ]; +struct ring_buffer_event *event;struct trace_array *tr = &global_trace;struct trace_array_cpu *data;struct trace_entry *entry; -unsigned long flags; +unsigned long flags, irq_flags;long disabled;int cpu, len =0 , write, written =0 ;
@@ -3110,8 +2840,11 @@ int trace_vprintk(unsigned long ip, cons len =min (len,TRACE_BUF_SIZE -1 ); trace_buf[len] =0 ; -__raw_spin_lock (&data->lock); - entry =tracing_get_trace_entry (tr, data); + event =ring_buffer_lock_reserve (tr->buffer,sizeof (*entry), + &irq_flags); +if (!event) + goto out_unlock; + entry =ring_buffer_event_data (event);tracing_generic_entry_update (entry, flags); entry->type =TRACE_PRINT ; entry->field.print.ip = ip;
@@ -3121,21 +2854,27 @@ int trace_vprintk(unsigned long ip, consmemcpy (&entry->field.print.buf, trace_buf, write); entry->field.print.buf[write] =0 ; written = write; +ring_buffer_unlock_commit (tr->buffer, event, irq_flags);if (written != len) entry->field.flags |=TRACE_FLAG_CONT ;while (written != len) { - entry =tracing_get_trace_entry (tr, data); + event =ring_buffer_lock_reserve (tr->buffer,sizeof (*entry), + &irq_flags); +if (!event) + goto out_unlock; + entry =ring_buffer_event_data (event); entry->type =TRACE_CONT ; write =min (len - written, (int )(TRACE_CONT_BUF_SIZE -1 ));memcpy (&entry->cont.buf, trace_buf+written, write); entry->cont.buf[write] =0 ; written += write; +ring_buffer_unlock_commit (tr->buffer, event, irq_flags); } -__raw_spin_unlock (&data->lock); + out_unlock:spin_unlock (&trace_buf_lock); out:
@@ -3227,12 +2966,10 @@ void ftrace_dump(void)static DEFINE_SPINLOCK (ftrace_dump_lock);/* use static because iter can be a bit big for the stack */ static struct trace_iterator iter; -struct trace_array_cpu *data;static cpumask_t mask;static int dump_ran; -unsigned long flags; +unsigned long flags, irq_flags;int cnt =0 ; -int cpu;/* only one dump */ spin_lock_irqsave (&ftrace_dump_lock, flags);
@@ -3258,25 +2995,7 @@ void ftrace_dump(void)cpus_clear (mask); -for_each_tracing_cpu (cpu) { - data = iter.tr->data[cpu]; - -if (!head_page (data) || !data->trace_idx) -continue ; - -atomic_inc (&data->disabled); -cpu_set (cpu, mask); - } - -for_each_cpu_mask (cpu, mask) { - data = iter.tr->data[cpu]; -__raw_spin_lock (&data->lock); - -if (data->overrun > iter.last_overrun[cpu]) - iter.overrun[cpu] += - data->overrun - iter.last_overrun[cpu]; - iter.last_overrun[cpu] = data->overrun; - } +ring_buffer_lock (iter.tr->buffer, &irq_flags);while (!trace_empty (&iter)) {
@@ -3305,205 +3024,47 @@ void ftrace_dump(void)else printk (KERN_TRACE "---------------------------------\n" ); -for_each_cpu_mask (cpu, mask) { - data = iter.tr->data[cpu]; -__raw_spin_unlock (&data->lock); - } - -for_each_cpu_mask (cpu, mask) { - data = iter.tr->data[cpu]; -atomic_dec (&data->disabled); - } - +ring_buffer_unlock (iter.tr->buffer, irq_flags); out:spin_unlock_irqrestore (&ftrace_dump_lock, flags); } -static int trace_alloc_page (void ) +__init static int tracer_alloc_buffers (void ) {struct trace_array_cpu *data; -struct page *page, *tmp; -LIST_HEAD (pages); -void *array; -unsigned pages_allocated =0 ;int i; -/* first allocate a page for each CPU */ -for_each_tracing_cpu (i) { - array = (void *)__get_free_page (GFP_KERNEL ); -if (array ==NULL ) { -printk (KERN_ERR "tracer: failed to allocate page" -"for trace buffer!\n" ); - goto free_pages; - } - - pages_allocated++; - page =virt_to_page (array); -list_add (&page->lru, &pages); +/* TODO: make the number of buffers hot pluggable with CPUS */ + tracing_buffer_mask = cpu_possible_map; -/* Only allocate if we are actually using the max trace */ -#ifdef CONFIG_TRACER_MAX_TRACE - array = (void *)__get_free_page (GFP_KERNEL ); -if (array ==NULL ) { -printk (KERN_ERR "tracer: failed to allocate page" -"for trace buffer!\n" ); - goto free_pages; - } - pages_allocated++; - page =virt_to_page (array); -list_add (&page->lru, &pages); -#endif + global_trace.buffer =ring_buffer_alloc (trace_buf_size, +TRACE_BUFFER_FLAGS ); +if (!global_trace.buffer) { +printk (KERN_ERR "tracer: failed to allocate ring buffer!\n" ); +WARN_ON (1 ); +return 0 ; } - -/* Now that we successfully allocate a page per CPU, add them */ -for_each_tracing_cpu (i) { - data = global_trace.data[i]; - page = list_entry(pages.next, struct page, lru); -list_del_init (&page->lru); -list_add_tail (&page->lru, &data->trace_pages); -ClearPageLRU (page); + global_trace.entries =ring_buffer_size (global_trace.buffer);#ifdef CONFIG_TRACER_MAX_TRACE - data = max_tr.data[i]; - page = list_entry(pages.next, struct page, lru); -list_del_init (&page->lru); -list_add_tail (&page->lru, &data->trace_pages); -SetPageLRU (page); -#endif - } - tracing_pages_allocated += pages_allocated; - global_trace.entries +=ENTRIES_PER_PAGE ; - -return 0 ; - - free_pages: -list_for_each_entry_safe (page, tmp, &pages, lru) { -list_del_init (&page->lru); -__free_page (page); + max_tr.buffer =ring_buffer_alloc (trace_buf_size, +TRACE_BUFFER_FLAGS ); +if (!max_tr.buffer) { +printk (KERN_ERR "tracer: failed to allocate max ring buffer!\n" ); +WARN_ON (1 ); +ring_buffer_free (global_trace.buffer); +return 0 ; } -return -ENOMEM ; -} - -static int trace_free_page (void ) -{ -struct trace_array_cpu *data; -struct page *page; -struct list_head *p; -int i; -int ret =0 ; - -/* free one page from each buffer */ -for_each_tracing_cpu (i) { - data = global_trace.data[i]; - p = data->trace_pages.next; -if (p == &data->trace_pages) { -/* should never happen */ -WARN_ON (1 ); - tracing_disabled =1 ; - ret =-1 ; -break ; - } - page = list_entry(p, struct page, lru); -ClearPageLRU (page); -list_del (&page->lru); - tracing_pages_allocated--; - tracing_pages_allocated--; -__free_page (page); - -tracing_reset (data); - -#ifdef CONFIG_TRACER_MAX_TRACE - data = max_tr.data[i]; - p = data->trace_pages.next; -if (p == &data->trace_pages) { -/* should never happen */ -WARN_ON (1 ); - tracing_disabled =1 ; - ret =-1 ; -break ; - } - page = list_entry(p, struct page, lru); -ClearPageLRU (page); -list_del (&page->lru); -__free_page (page); - -tracing_reset (data); + max_tr.entries =ring_buffer_size (max_tr.buffer); +WARN_ON (max_tr.entries != global_trace.entries);#endif - } - global_trace.entries -=ENTRIES_PER_PAGE ; - -return ret; -} - -__init static int tracer_alloc_buffers (void ) -{ -struct trace_array_cpu *data; -void *array; -struct page *page; -int pages =0 ; -int ret = -ENOMEM ; -int i; - -/* TODO: make the number of buffers hot pluggable with CPUS */ - tracing_nr_buffers =num_possible_cpus (); - tracing_buffer_mask = cpu_possible_map;/* Allocate the first page for all buffers */ for_each_tracing_cpu (i) { data = global_trace.data[i] = &per_cpu (global_trace_cpu, i); max_tr.data[i] = &per_cpu (max_data, i); - - array = (void *)__get_free_page (GFP_KERNEL ); -if (array ==NULL ) { -printk (KERN_ERR "tracer: failed to allocate page" -"for trace buffer!\n" ); - goto free_buffers; - } - -/* set the array to the list */ -INIT_LIST_HEAD (&data->trace_pages); - page =virt_to_page (array); -list_add (&page->lru, &data->trace_pages); -/* use the LRU flag to differentiate the two buffers */ -ClearPageLRU (page); - - data->lock = (raw_spinlock_t )__RAW_SPIN_LOCK_UNLOCKED; - max_tr.data[i]->lock = (raw_spinlock_t )__RAW_SPIN_LOCK_UNLOCKED; - -/* Only allocate if we are actually using the max trace */ -#ifdef CONFIG_TRACER_MAX_TRACE - array = (void *)__get_free_page (GFP_KERNEL ); -if (array ==NULL ) { -printk (KERN_ERR "tracer: failed to allocate page" -"for trace buffer!\n" ); - goto free_buffers; - } - -INIT_LIST_HEAD (&max_tr.data[i]->trace_pages); - page =virt_to_page (array); -list_add (&page->lru, &max_tr.data[i]->trace_pages); -SetPageLRU (page); -#endif - } - -/* -* Since we allocate by orders of pages, we may be able to -* round up a bit. -*/ - global_trace.entries =ENTRIES_PER_PAGE ; - pages++; - -while (global_trace.entries < trace_nr_entries) { -if (trace_alloc_page ()) -break ; - pages++; } - max_tr.entries = global_trace.entries; - -pr_info ("tracer: %d pages allocated for %ld entries of %ld bytes\n" , - pages, trace_nr_entries, (long )TRACE_ENTRY_SIZE ); -pr_info (" actual entries %ld\n" , global_trace.entries);trace_init_cmdlines ();
@@ -3519,38 +3080,13 @@ __init static int tracer_alloc_buffers(v/* All seems OK, enable tracing */ global_trace.ctrl = tracer_enabled; tracing_disabled =0 ; +atomic_notifier_chain_register (&panic_notifier_list, &trace_panic_notifier);register_die_notifier (&trace_die_notifier);return 0 ; - - free_buffers: -for (i-- ; i >=0 ; i--) { -struct page *page, *tmp; -struct trace_array_cpu *data = global_trace.data[i]; - -if (data) { -list_for_each_entry_safe (page, tmp, - &data->trace_pages, lru) { -list_del_init (&page->lru); -__free_page (page); - } - } - -#ifdef CONFIG_TRACER_MAX_TRACE - data = max_tr.data[i]; -if (data) { -list_for_each_entry_safe (page, tmp, - &data->trace_pages, lru) { -list_del_init (&page->lru); -__free_page (page); - } - } -#endif - } -return ret; }early_initcall (tracer_alloc_buffers);fs_initcall (tracer_init_debugfs);
kernel/trace/trace.h +5 -17
@@ -5,6 +5,7 @@#include <asm/atomic.h> #include <linux/sched.h> #include <linux/clocksource.h> +#include <linux/ring_buffer.h> #include <linux/mmiotrace.h> #include <linux/ftrace.h>
@@ -102,7 +103,6 @@ struct trace_field {char flags;char preempt_count;int pid; -cycle_t t;union {struct ftrace_entry fn;struct ctx_switch_entry ctx;
@@ -139,16 +139,9 @@ struct trace_entry {* the trace, etc.) */ struct trace_array_cpu { -struct list_head trace_pages;atomic_t disabled; -raw_spinlock_t lock; -struct lock_class_key lock_key;/* these fields get copied into max-trace: */ -unsigned trace_head_idx; -unsigned trace_tail_idx; -void *trace_head;/* producer */ -void *trace_tail;/* consumer */ unsigned long trace_idx;unsigned long overrun;unsigned long saved_latency;
@@ -172,6 +165,7 @@ struct trace_iterator;* They have on/off state as well: */ struct trace_array { +struct ring_buffer *buffer;unsigned long entries;long ctrl;int cpu;
@@ -219,27 +213,21 @@ struct trace_iterator {struct trace_array *tr;struct tracer *trace;void *private; -long last_overrun[NR_CPUS ]; -long overrun[NR_CPUS ]; +struct ring_buffer_iter *buffer_iter[NR_CPUS ];/* The below is zeroed out in pipe_read */ struct trace_seq seq;struct trace_entry *ent;int cpu; - -struct trace_entry *prev_ent; -int prev_cpu; +u64 ts;unsigned long iter_flags;loff_t pos; -unsigned long next_idx[NR_CPUS ]; -struct list_head *next_page[NR_CPUS ]; -unsigned next_page_idx[NR_CPUS ];long idx; };void trace_wake_up (void ); -void tracing_reset (struct trace_array_cpu *data); +void tracing_reset (struct trace_array *tr,int cpu);int tracing_open_generic (struct inode *inode,struct file *filp);struct dentry *tracing_init_dentry (void );void init_tracer_sysprof_debugfs (struct dentry *d_tracer);
kernel/trace/trace_functions.c +1 -1
@@ -23,7 +23,7 @@ static void function_reset(struct trace_ tr->time_start =ftrace_now (tr->cpu);for_each_online_cpu (cpu) -tracing_reset (tr->data[cpu]); +tracing_reset (tr, cpu); }static void start_function_trace (struct trace_array *tr)
kernel/trace/trace_irqsoff.c +3 -3
@@ -173,7 +173,7 @@ out_unlock: out: data->critical_sequence = max_sequence; data->preempt_timestamp =ftrace_now (cpu); -tracing_reset (data); +tracing_reset (tr, cpu);trace_function (tr, data,CALLER_ADDR0 , parent_ip, flags); }
@@ -203,7 +203,7 @@ start_critical_timing(unsigned long ip, data->critical_sequence = max_sequence; data->preempt_timestamp =ftrace_now (cpu); data->critical_start = parent_ip ? : ip; -tracing_reset (data); +tracing_reset (tr, cpu);local_save_flags (flags);
@@ -234,7 +234,7 @@ stop_critical_timing(unsigned long ip, u data = tr->data[cpu]; -if (unlikely (!data) ||unlikely (!head_page (data)) || +if (unlikely (!data) || !data->critical_start ||atomic_read (&data->disabled))return ;
kernel/trace/trace_mmiotrace.c +22 -18
@@ -27,7 +27,7 @@ static void mmio_reset_data(struct trace tr->time_start =ftrace_now (tr->cpu);for_each_online_cpu (cpu) -tracing_reset (tr->data[cpu]); +tracing_reset (tr, cpu); }static void mmio_trace_init (struct trace_array *tr)
@@ -130,10 +130,14 @@ static unsigned long count_overruns(stru {int cpu;unsigned long cnt =0 ; +/* FIXME: */ +#if 0 for_each_online_cpu (cpu) { cnt += iter->overrun[cpu]; iter->overrun[cpu] =0 ; } +#endif + (void )cpu;return cnt; }
@@ -176,7 +180,7 @@ static int mmio_print_rw(struct trace_itstruct trace_entry *entry = iter->ent;struct mmiotrace_rw *rw = &entry->field.mmiorw;struct trace_seq *s = &iter->seq; -unsigned long long t =ns2usecs (entry->field.t); +unsigned long long t =ns2usecs (iter->ts);unsigned long usec_rem =do_div (t,1000000ULL );unsigned secs = (unsigned long )t;int ret =1 ;
@@ -218,7 +222,7 @@ static int mmio_print_map(struct trace_istruct trace_entry *entry = iter->ent;struct mmiotrace_map *m = &entry->field.mmiomap;struct trace_seq *s = &iter->seq; -unsigned long long t =ns2usecs (entry->field.t); +unsigned long long t =ns2usecs (iter->ts);unsigned long usec_rem =do_div (t,1000000ULL );unsigned secs = (unsigned long )t;int ret =1 ;
@@ -250,7 +254,7 @@ static int mmio_print_mark(struct trace_struct trace_entry *entry = iter->ent;const char *msg = entry->field.print.buf;struct trace_seq *s = &iter->seq; -unsigned long long t =ns2usecs (entry->field.t); +unsigned long long t =ns2usecs (iter->ts);unsigned long usec_rem =do_div (t,1000000ULL );unsigned secs = (unsigned long )t;int ret;
@@ -303,19 +307,19 @@ static void __trace_mmiotrace_rw(structstruct trace_array_cpu *data, struct mmiotrace_rw *rw) { + struct ring_buffer_event *event;struct trace_entry *entry;unsigned long irq_flags; -raw_local_irq_save (irq_flags); -__raw_spin_lock (&data->lock); - - entry =tracing_get_trace_entry (tr, data); + event =ring_buffer_lock_reserve (tr->buffer,sizeof (*entry), + &irq_flags); +if (!event) +return ; + entry =ring_buffer_event_data (event);tracing_generic_entry_update (entry,0 ); entry->type =TRACE_MMIO_RW ; entry->field.mmiorw = *rw; - -__raw_spin_unlock (&data->lock); -raw_local_irq_restore (irq_flags); +ring_buffer_unlock_commit (tr->buffer, event, irq_flags);trace_wake_up (); }
@@ -331,19 +335,19 @@ static void __trace_mmiotrace_map(structstruct trace_array_cpu *data, struct mmiotrace_map *map) { + struct ring_buffer_event *event;struct trace_entry *entry;unsigned long irq_flags; -raw_local_irq_save (irq_flags); -__raw_spin_lock (&data->lock); - - entry =tracing_get_trace_entry (tr, data); + event =ring_buffer_lock_reserve (tr->buffer,sizeof (*entry), + &irq_flags); +if (!event) +return ; + entry =ring_buffer_event_data (event);tracing_generic_entry_update (entry,0 ); entry->type =TRACE_MMIO_MAP ; entry->field.mmiomap = *map; - -__raw_spin_unlock (&data->lock); -raw_local_irq_restore (irq_flags); +ring_buffer_unlock_commit (tr->buffer, event, irq_flags);trace_wake_up (); }
kernel/trace/trace_sched_switch.c +1 -1
@@ -81,7 +81,7 @@ static void sched_switch_reset(struct tr tr->time_start =ftrace_now (tr->cpu);for_each_online_cpu (cpu) -tracing_reset (tr->data[cpu]); +tracing_reset (tr, cpu); }static int tracing_sched_register (void )
kernel/trace/trace_sched_wakeup.c +1 -1
@@ -191,7 +191,7 @@ static void __wakeup_reset(struct trace_for_each_possible_cpu (cpu) { data = tr->data[cpu]; -tracing_reset (data); +tracing_reset (tr, cpu); } wakeup_cpu =-1 ;
kernel/trace/trace_boot.c +9 -7
@@ -34,7 +34,7 @@ static void boot_trace_init(struct trace trace_boot_enabled =0 ;for_each_cpu_mask (cpu, cpu_possible_map) -tracing_reset (tr->data[cpu]); +tracing_reset (tr, cpu); }static void boot_trace_ctrl_update (struct trace_array *tr)
@@ -74,6 +74,7 @@ struct tracer boot_tracer __read_mostlyvoid trace_boot (struct boot_trace *it) { +struct ring_buffer_event *event;struct trace_entry *entry;struct trace_array_cpu *data;unsigned long irq_flags;
@@ -85,17 +86,18 @@ void trace_boot(struct boot_trace *it)preempt_disable (); data = tr->data[smp_processor_id ()]; -raw_local_irq_save (irq_flags); -__raw_spin_lock (&data->lock); - - entry =tracing_get_trace_entry (tr, data); + event =ring_buffer_lock_reserve (tr->buffer,sizeof (*entry), + &irq_flags); +if (!event) + goto out; + entry =ring_buffer_event_data (event);tracing_generic_entry_update (entry,0 ); entry->type =TRACE_BOOT ; entry->field.initcall = *it; +ring_buffer_unlock_commit (tr->buffer, event, irq_flags); -__raw_spin_unlock (&data->lock); -raw_local_irq_restore (irq_flags);trace_wake_up (); + out:preempt_enable (); }
kernel/trace/trace_nop.c +1 -1
@@ -30,7 +30,7 @@ static void nop_trace_init(struct trace_ ctx_trace = tr;for_each_online_cpu (cpu) -tracing_reset (tr->data[cpu]); +tracing_reset (tr, cpu);if (tr->ctrl)start_nop_trace (tr);
kernel/trace/trace_selftest.c +10 -50
81 lines not on this page · raw message
kernel/trace/trace_sysprof.c +1 -1
@@ -241,7 +241,7 @@ static void stack_reset(struct trace_arr tr->time_start =ftrace_now (tr->cpu);for_each_online_cpu (cpu) -tracing_reset (tr->data[cpu]); +tracing_reset (tr, cpu); }static void start_stack_trace (struct trace_array *tr)
Steven Rostedt
maintainerPATCH 6/6 ftrace: take advantage of variable length entries
In reply to Steven RostedtNow that the underlining ring buffer for ftrace now hold variable length entries, we can take advantage of this by only storing the size of the actual event into the buffer. This happens to increase the number of entries in the buffer dramatically.
We can also get rid of the "trace_cont" operation, but I'm keeping that until we have no more users. Some of the ftrace tracers can now change their code to adapt to this new feature.
--- kernel/trace/trace.c | 441 +++++++++++++++++++++-------------------- kernel/trace/trace.h | 81 +++---- kernel/trace/trace_boot.c | 13 - kernel/trace/trace_mmiotrace.c | 31 +- 4 files changed, 302 insertions(+), 264 deletions(-)
kernel/trace/trace.c +236 -205
@@ -637,9 +637,9 @@ tracing_generic_entry_update(struct trac pc =preempt_count (); - entry->field.preempt_count = pc &0xff ; - entry->field.pid = (tsk) ? tsk->pid :0 ; - entry->field.flags = + entry->preempt_count = pc &0xff ; + entry->pid = (tsk) ? tsk->pid :0 ; + entry->flags = (irqs_disabled_flags (flags) ?TRACE_FLAG_IRQS_OFF :0 ) | ((pc &HARDIRQ_MASK ) ?TRACE_FLAG_HARDIRQ :0 ) | ((pc & SOFTIRQ_MASK) ? TRACE_FLAG_SOFTIRQ : 0) |
@@ -651,7 +651,7 @@ trace_function(struct trace_array *tr, s unsigned long ip, unsigned long parent_ip, unsigned long flags) { struct ring_buffer_event *event; -struct trace_entry *entry; +struct ftrace_entry *entry;unsigned long irq_flags; event = ring_buffer_lock_reserve(tr->buffer, sizeof(*entry),
@@ -659,10 +659,10 @@ trace_function(struct trace_array *tr, sif (!event)return ; entry =ring_buffer_event_data (event); -tracing_generic_entry_update (entry, flags); - entry->type =TRACE_FN ; - entry->field.fn.ip = ip; - entry->field.fn.parent_ip = parent_ip; +tracing_generic_entry_update (&entry->ent, flags); + entry->ent.type =TRACE_FN ; + entry->ip = ip; + entry->parent_ip = parent_ip;ring_buffer_unlock_commit (tr->buffer, event, irq_flags); }
@@ -680,7 +680,7 @@ void __trace_stack(struct trace_array *t int skip) {struct ring_buffer_event *event; -struct trace_entry *entry; +struct stack_entry *entry;struct stack_trace trace;unsigned long irq_flags;
@@ -692,15 +692,15 @@ void __trace_stack(struct trace_array *tif (!event)return ; entry =ring_buffer_event_data (event); -tracing_generic_entry_update (entry, flags); - entry->type =TRACE_STACK ; +tracing_generic_entry_update (&entry->ent, flags); + entry->ent.type =TRACE_STACK ; -memset (&entry->field.stack,0 ,sizeof (entry->field.stack)); +memset (&entry->caller,0 ,sizeof (entry->caller)); trace.nr_entries =0 ; trace.max_entries =FTRACE_STACK_ENTRIES ; trace.skip = skip; - trace.entries = entry->field.stack.caller; + trace.entries = entry->caller;save_stack_trace (&trace);ring_buffer_unlock_commit (tr->buffer, event, irq_flags);
@@ -713,7 +713,7 @@ __trace_special(void *__tr, void *__datastruct ring_buffer_event *event;struct trace_array_cpu *data = __data;struct trace_array *tr = __tr; -struct trace_entry *entry; +struct special_entry *entry;unsigned long irq_flags; event = ring_buffer_lock_reserve(tr->buffer, sizeof(*entry),
@@ -721,11 +721,11 @@ __trace_special(void *__tr, void *__dataif (!event)return ; entry =ring_buffer_event_data (event); -tracing_generic_entry_update (entry,0 ); - entry->type =TRACE_SPECIAL ; - entry->field.special.arg1 = arg1; - entry->field.special.arg2 = arg2; - entry->field.special.arg3 = arg3; +tracing_generic_entry_update (&entry->ent,0 ); + entry->ent.type =TRACE_SPECIAL ; + entry->arg1 = arg1; + entry->arg2 = arg2; + entry->arg3 = arg3;ring_buffer_unlock_commit (tr->buffer, event, irq_flags);__trace_stack (tr, data, irq_flags,4 );
@@ -740,7 +740,7 @@ tracing_sched_switch_trace(struct trace_ unsigned long flags) {struct ring_buffer_event *event; -struct trace_entry *entry; +struct ctx_switch_entry *entry;unsigned long irq_flags; event = ring_buffer_lock_reserve(tr->buffer, sizeof(*entry),
@@ -748,15 +748,15 @@ tracing_sched_switch_trace(struct trace_if (!event)return ; entry =ring_buffer_event_data (event); -tracing_generic_entry_update (entry, flags); - entry->type =TRACE_CTX ; - entry->field.ctx.prev_pid = prev->pid; - entry->field.ctx.prev_prio = prev->prio; - entry->field.ctx.prev_state = prev->state; - entry->field.ctx.next_pid = next->pid; - entry->field.ctx.next_prio = next->prio; - entry->field.ctx.next_state = next->state; - entry->field.ctx.next_cpu =task_cpu (next); +tracing_generic_entry_update (&entry->ent, flags); + entry->ent.type =TRACE_CTX ; + entry->prev_pid = prev->pid; + entry->prev_prio = prev->prio; + entry->prev_state = prev->state; + entry->next_pid = next->pid; + entry->next_prio = next->prio; + entry->next_state = next->state; + entry->next_cpu =task_cpu (next);ring_buffer_unlock_commit (tr->buffer, event, irq_flags);__trace_stack (tr, data, flags,5 ); }
@@ -769,7 +769,7 @@ tracing_sched_wakeup_trace(struct trace_ unsigned long flags) {struct ring_buffer_event *event; -struct trace_entry *entry; +struct ctx_switch_entry *entry;unsigned long irq_flags; event = ring_buffer_lock_reserve(tr->buffer, sizeof(*entry),
@@ -777,15 +777,15 @@ tracing_sched_wakeup_trace(struct trace_if (!event)return ; entry =ring_buffer_event_data (event); -tracing_generic_entry_update (entry, flags); - entry->type =TRACE_WAKE ; - entry->field.ctx.prev_pid = curr->pid; - entry->field.ctx.prev_prio = curr->prio; - entry->field.ctx.prev_state = curr->state; - entry->field.ctx.next_pid = wakee->pid; - entry->field.ctx.next_prio = wakee->prio; - entry->field.ctx.next_state = wakee->state; - entry->field.ctx.next_cpu =task_cpu (wakee); +tracing_generic_entry_update (&entry->ent, flags); + entry->ent.type =TRACE_WAKE ; + entry->prev_pid = curr->pid; + entry->prev_prio = curr->prio; + entry->prev_state = curr->state; + entry->next_pid = wakee->pid; + entry->next_prio = wakee->prio; + entry->next_state = wakee->state; + entry->next_cpu =task_cpu (wakee);ring_buffer_unlock_commit (tr->buffer, event, irq_flags);__trace_stack (tr, data, flags,6 );
@@ -1173,20 +1173,19 @@ print_trace_header(struct seq_file *m, sstatic void lat_print_generic (struct trace_seq *s,struct trace_entry *entry,int cpu) { -struct trace_field *field = &entry->field;int hardirq, softirq;char *comm; - comm =trace_find_cmdline (field->pid); + comm =trace_find_cmdline (entry->pid); -trace_seq_printf (s,"%8.8s-%-5d " , comm, field->pid); +trace_seq_printf (s,"%8.8s-%-5d " , comm, entry->pid);trace_seq_printf (s,"%3d" , cpu);trace_seq_printf (s,"%c%c" , - (field->flags &TRACE_FLAG_IRQS_OFF ) ?'d' :'.' , - ((field->flags &TRACE_FLAG_NEED_RESCHED ) ?'N' :'.' )); + (entry->flags &TRACE_FLAG_IRQS_OFF ) ?'d' :'.' , + ((entry->flags &TRACE_FLAG_NEED_RESCHED ) ?'N' :'.' )); - hardirq = field->flags &TRACE_FLAG_HARDIRQ ; - softirq = field->flags &TRACE_FLAG_SOFTIRQ ; + hardirq = entry->flags &TRACE_FLAG_HARDIRQ ; + softirq = entry->flags &TRACE_FLAG_SOFTIRQ ;if (hardirq && softirq) {trace_seq_putc (s,'H' ); }else {
@@ -1200,8 +1199,8 @@ lat_print_generic(struct trace_seq *s, s } } -if (field->preempt_count) -trace_seq_printf (s,"%x" , field->preempt_count); +if (entry->preempt_count) +trace_seq_printf (s,"%x" , entry->preempt_count);else trace_seq_puts (s,"." ); }
@@ -1230,6 +1229,7 @@ static const char state_to_char[] = TASKvoid trace_seq_print_cont (struct trace_seq *s,struct trace_iterator *iter) {struct trace_entry *ent; +struct trace_field_cont *cont;bool ok = true; ent =peek_next_entry (iter, iter->cpu,NULL );
@@ -1239,8 +1239,9 @@ void trace_seq_print_cont(struct trace_s }do { + cont = (struct trace_field_cont *)ent;if (ok) - ok = (trace_seq_printf (s,"%s" , ent->cont.buf) >0 ); + ok = (trace_seq_printf (s,"%s" , cont->buf) >0 );ring_buffer_read (iter->buffer_iter[iter->cpu],NULL ); ent =peek_next_entry (iter, iter->cpu,NULL ); }while (ent && ent->type ==TRACE_CONT );
@@ -1257,7 +1258,6 @@ print_lat_fmt(struct trace_iterator *itestruct trace_entry *next_entry;unsigned long verbose = (trace_flags &TRACE_ITER_VERBOSE );struct trace_entry *entry = iter->ent; -struct trace_field *field = &entry->field;unsigned long abs_usecs;unsigned long rel_usecs;u64 next_ts;
@@ -1276,12 +1276,12 @@ print_lat_fmt(struct trace_iterator *ite abs_usecs =ns2usecs (iter->ts - iter->tr->time_start);if (verbose) { - comm =trace_find_cmdline (field->pid); + comm =trace_find_cmdline (entry->pid); trace_seq_printf(s, "%16s %5d %3d %d %08x %08x [%08lx]" " %ld.%03ldms (+%ld.%03ldms): ", comm, - field->pid, cpu, field->flags, - field->preempt_count, trace_idx, + entry->pid, cpu, entry->flags, + entry->preempt_count, trace_idx, ns2usecs(iter->ts), abs_usecs/1000, abs_usecs % 1000, rel_usecs/1000,
@@ -1291,53 +1291,69 @@ print_lat_fmt(struct trace_iterator *itelat_print_timestamp (s, abs_usecs, rel_usecs); }switch (entry->type) { -case TRACE_FN : -seq_print_ip_sym (s, field->fn.ip, sym_flags); +case TRACE_FN : { +struct ftrace_entry *field = (struct ftrace_entry *)entry; + +seq_print_ip_sym (s, field->ip, sym_flags);trace_seq_puts (s," (" ); -if (kretprobed (field->fn.parent_ip)) +if (kretprobed (field->parent_ip))trace_seq_puts (s,KRETPROBE_MSG );else -seq_print_ip_sym (s, field->fn.parent_ip, sym_flags); +seq_print_ip_sym (s, field->parent_ip, sym_flags);trace_seq_puts (s,")\n" );break ; + }case TRACE_CTX : -case TRACE_WAKE : -T = field->ctx.next_state <sizeof (state_to_char) ? - state_to_char[field->ctx.next_state] :'X' ; +case TRACE_WAKE : { +struct ctx_switch_entry *field = + (struct ctx_switch_entry *)entry; - state = field->ctx.prev_state ? -__ffs (field->ctx.prev_state) +1 :0 ; +T = field->next_state <sizeof (state_to_char) ? + state_to_char[field->next_state] :'X' ; + + state = field->prev_state ? +__ffs (field->prev_state) +1 :0 ;S = state <sizeof (state_to_char) -1 ? state_to_char[state] :'X' ; - comm =trace_find_cmdline (field->ctx.next_pid); + comm =trace_find_cmdline (field->next_pid);trace_seq_printf (s," %5d:%3d:%c %s [%03d] %5d:%3d:%c %s\n" , - field->ctx.prev_pid, - field->ctx.prev_prio, + field->prev_pid, + field->prev_prio,S , entry->type ==TRACE_CTX ?"==>" :" +" , - field->ctx.next_cpu, - field->ctx.next_pid, - field->ctx.next_prio, + field->next_cpu, + field->next_pid, + field->next_prio,T , comm);break ; -case TRACE_SPECIAL : + } +case TRACE_SPECIAL : { +struct special_entry *field = (struct special_entry *)entry; +trace_seq_printf (s,"# %ld %ld %ld\n" , - field->special.arg1, - field->special.arg2, - field->special.arg3); + field->arg1, + field->arg2, + field->arg3);break ; -case TRACE_STACK : + } +case TRACE_STACK : { +struct stack_entry *field = (struct stack_entry *)entry; +for (i =0 ; i <FTRACE_STACK_ENTRIES ; i++) {if (i)trace_seq_puts (s," <= " ); -seq_print_ip_sym (s, field->stack.caller[i], sym_flags); +seq_print_ip_sym (s, field->caller[i], sym_flags); }trace_seq_puts (s,"\n" );break ; -case TRACE_PRINT : -seq_print_ip_sym (s, field->print.ip, sym_flags); -trace_seq_printf (s,": %s" , field->print.buf); -if (field->flags &TRACE_FLAG_CONT ) + } +case TRACE_PRINT : { +struct print_entry *field = (struct print_entry *)entry; + +seq_print_ip_sym (s, field->ip, sym_flags); +trace_seq_printf (s,": %s" , field->buf); +if (entry->flags &TRACE_FLAG_CONT )trace_seq_print_cont (s, iter);break ; + }default :trace_seq_printf (s,"Unknown type %d\n" , entry->type); }
@@ -1349,7 +1365,6 @@ static int print_trace_fmt(struct trace_struct trace_seq *s = &iter->seq;unsigned long sym_flags = (trace_flags &TRACE_ITER_SYM_MASK );struct trace_entry *entry; -struct trace_field *field;unsigned long usec_rem;unsigned long long t;unsigned long secs;
@@ -1363,15 +1378,13 @@ static int print_trace_fmt(struct trace_if (entry->type ==TRACE_CONT )return 1 ; - field = &entry->field; - - comm =trace_find_cmdline (iter->ent->field.pid); + comm =trace_find_cmdline (iter->ent->pid); t =ns2usecs (iter->ts); usec_rem =do_div (t,1000000ULL ); secs = (unsigned long )t; - ret =trace_seq_printf (s,"%16s-%-5d " , comm, field->pid); + ret =trace_seq_printf (s,"%16s-%-5d " , comm, entry->pid);if (!ret)return 0 ; ret =trace_seq_printf (s,"[%03d] " , iter->cpu);
@@ -1382,20 +1395,22 @@ static int print_trace_fmt(struct trace_return 0 ;switch (entry->type) { -case TRACE_FN : - ret =seq_print_ip_sym (s, field->fn.ip, sym_flags); +case TRACE_FN : { +struct ftrace_entry *field = (struct ftrace_entry *)entry; + + ret =seq_print_ip_sym (s, field->ip, sym_flags);if (!ret)return 0 ;if ((sym_flags &TRACE_ITER_PRINT_PARENT ) && - field->fn.parent_ip) { + field->parent_ip) { ret =trace_seq_printf (s," <-" );if (!ret)return 0 ; -if (kretprobed (field->fn.parent_ip)) +if (kretprobed (field->parent_ip)) ret =trace_seq_puts (s,KRETPROBE_MSG );else ret =seq_print_ip_sym (s, - field->fn.parent_ip, + field->parent_ip, sym_flags);if (!ret)return 0 ;
@@ -1404,40 +1419,50 @@ static int print_trace_fmt(struct trace_if (!ret)return 0 ;break ; + }case TRACE_CTX : -case TRACE_WAKE : -S = field->ctx.prev_state <sizeof (state_to_char) ? - state_to_char[field->ctx.prev_state] :'X' ; -T = field->ctx.next_state <sizeof (state_to_char) ? - state_to_char[field->ctx.next_state] :'X' ; +case TRACE_WAKE : { +struct ctx_switch_entry *field = + (struct ctx_switch_entry *)entry; + +S = field->prev_state <sizeof (state_to_char) ? + state_to_char[field->prev_state] :'X' ; +T = field->next_state <sizeof (state_to_char) ? + state_to_char[field->next_state] :'X' ; ret =trace_seq_printf (s," %5d:%3d:%c %s [%03d] %5d:%3d:%c\n" , - field->ctx.prev_pid, - field->ctx.prev_prio, + field->prev_pid, + field->prev_prio,S , entry->type ==TRACE_CTX ?"==>" :" +" , - field->ctx.next_cpu, - field->ctx.next_pid, - field->ctx.next_prio, + field->next_cpu, + field->next_pid, + field->next_prio,T );if (!ret)return 0 ;break ; -case TRACE_SPECIAL : + } +case TRACE_SPECIAL : { +struct special_entry *field = (struct special_entry *)entry; + ret =trace_seq_printf (s,"# %ld %ld %ld\n" , - field->special.arg1, - field->special.arg2, - field->special.arg3); + field->arg1, + field->arg2, + field->arg3);if (!ret)return 0 ;break ; -case TRACE_STACK : + } +case TRACE_STACK : { +struct stack_entry *field = (struct stack_entry *)entry; +for (i =0 ; i <FTRACE_STACK_ENTRIES ; i++) {if (i) { ret =trace_seq_puts (s," <= " );if (!ret)return 0 ; } - ret =seq_print_ip_sym (s, field->stack.caller[i], + ret =seq_print_ip_sym (s, field->caller[i], sym_flags);if (!ret)return 0 ;
@@ -1446,13 +1471,17 @@ static int print_trace_fmt(struct trace_if (!ret)return 0 ;break ; -case TRACE_PRINT : -seq_print_ip_sym (s, field->print.ip, sym_flags); -trace_seq_printf (s,": %s" , field->print.buf); -if (field->flags &TRACE_FLAG_CONT ) + } +case TRACE_PRINT : { +struct print_entry *field = (struct print_entry *)entry; + +seq_print_ip_sym (s, field->ip, sym_flags); +trace_seq_printf (s,": %s" , field->buf); +if (entry->flags &TRACE_FLAG_CONT )trace_seq_print_cont (s, iter);break ; } + }return 1 ; }
@@ -1460,7 +1489,6 @@ static int print_raw_fmt(struct trace_it {struct trace_seq *s = &iter->seq;struct trace_entry *entry; -struct trace_field *field;int ret;int S ,T ;
@@ -1469,56 +1497,66 @@ static int print_raw_fmt(struct trace_itif (entry->type ==TRACE_CONT )return 1 ; - field = &entry->field; - ret =trace_seq_printf (s,"%d %d %llu " , - field->pid, iter->cpu, iter->ts); + entry->pid, iter->cpu, iter->ts);if (!ret)return 0 ;switch (entry->type) { -case TRACE_FN : +case TRACE_FN : { +struct ftrace_entry *field = (struct ftrace_entry *)entry; + ret =trace_seq_printf (s,"%x %x\n" , - field->fn.ip, - field->fn.parent_ip); + field->ip, + field->parent_ip);if (!ret)return 0 ;break ; + }case TRACE_CTX : -case TRACE_WAKE : -S = field->ctx.prev_state <sizeof (state_to_char) ? - state_to_char[field->ctx.prev_state] :'X' ; -T = field->ctx.next_state <sizeof (state_to_char) ? - state_to_char[field->ctx.next_state] :'X' ; +case TRACE_WAKE : { +struct ctx_switch_entry *field = + (struct ctx_switch_entry *)entry; + +S = field->prev_state <sizeof (state_to_char) ? + state_to_char[field->prev_state] :'X' ; +T = field->next_state <sizeof (state_to_char) ? + state_to_char[field->next_state] :'X' ;if (entry->type ==TRACE_WAKE )S ='+' ; ret =trace_seq_printf (s,"%d %d %c %d %d %d %c\n" , - field->ctx.prev_pid, - field->ctx.prev_prio, + field->prev_pid, + field->prev_prio,S , - field->ctx.next_cpu, - field->ctx.next_pid, - field->ctx.next_prio, + field->next_cpu, + field->next_pid, + field->next_prio,T );if (!ret)return 0 ;break ; + }case TRACE_SPECIAL : -case TRACE_STACK : +case TRACE_STACK : { +struct special_entry *field = (struct special_entry *)entry; + ret =trace_seq_printf (s,"# %ld %ld %ld\n" , - field->special.arg1, - field->special.arg2, - field->special.arg3); + field->arg1, + field->arg2, + field->arg3);if (!ret)return 0 ;break ; -case TRACE_PRINT : -trace_seq_printf (s,"# %lx %s" , - field->print.ip, field->print.buf); -if (field->flags &TRACE_FLAG_CONT ) + } +case TRACE_PRINT : { +struct print_entry *field = (struct print_entry *)entry; + +trace_seq_printf (s,"# %lx %s" , field->ip, field->buf); +if (entry->flags &TRACE_FLAG_CONT )trace_seq_print_cont (s, iter);break ; } + }return 1 ; }
@@ -1539,7 +1577,6 @@ static int print_hex_fmt(struct trace_itstruct trace_seq *s = &iter->seq;unsigned char newline ='\n' ;struct trace_entry *entry; -struct trace_field *field;int S ,T ; entry = iter->ent;
@@ -1547,40 +1584,48 @@ static int print_hex_fmt(struct trace_itif (entry->type ==TRACE_CONT )return 1 ; - field = &entry->field; - -SEQ_PUT_HEX_FIELD_RET (s, field->pid); +SEQ_PUT_HEX_FIELD_RET (s, entry->pid);SEQ_PUT_HEX_FIELD_RET (s, iter->cpu);SEQ_PUT_HEX_FIELD_RET (s, iter->ts);switch (entry->type) { -case TRACE_FN : -SEQ_PUT_HEX_FIELD_RET (s, field->fn.ip); -SEQ_PUT_HEX_FIELD_RET (s, field->fn.parent_ip); +case TRACE_FN : { +struct ftrace_entry *field = (struct ftrace_entry *)entry; + +SEQ_PUT_HEX_FIELD_RET (s, field->ip); +SEQ_PUT_HEX_FIELD_RET (s, field->parent_ip);break ; + }case TRACE_CTX : -case TRACE_WAKE : -S = field->ctx.prev_state <sizeof (state_to_char) ? - state_to_char[field->ctx.prev_state] :'X' ; -T = field->ctx.next_state <sizeof (state_to_char) ? - state_to_char[field->ctx.next_state] :'X' ; +case TRACE_WAKE : { +struct ctx_switch_entry *field = + (struct ctx_switch_entry *)entry; + +S = field->prev_state <sizeof (state_to_char) ? + state_to_char[field->prev_state] :'X' ; +T = field->next_state <sizeof (state_to_char) ? + state_to_char[field->next_state] :'X' ;if (entry->type ==TRACE_WAKE )S ='+' ; -SEQ_PUT_HEX_FIELD_RET (s, field->ctx.prev_pid); -SEQ_PUT_HEX_FIELD_RET (s, field->ctx.prev_prio); +SEQ_PUT_HEX_FIELD_RET (s, field->prev_pid); +SEQ_PUT_HEX_FIELD_RET (s, field->prev_prio);SEQ_PUT_HEX_FIELD_RET (s,S ); -SEQ_PUT_HEX_FIELD_RET (s, field->ctx.next_cpu); -SEQ_PUT_HEX_FIELD_RET (s, field->ctx.next_pid); -SEQ_PUT_HEX_FIELD_RET (s, field->ctx.next_prio); +SEQ_PUT_HEX_FIELD_RET (s, field->next_cpu); +SEQ_PUT_HEX_FIELD_RET (s, field->next_pid); +SEQ_PUT_HEX_FIELD_RET (s, field->next_prio);SEQ_PUT_HEX_FIELD_RET (s,T );break ; + }case TRACE_SPECIAL : -case TRACE_STACK : -SEQ_PUT_HEX_FIELD_RET (s, field->special.arg1); -SEQ_PUT_HEX_FIELD_RET (s, field->special.arg2); -SEQ_PUT_HEX_FIELD_RET (s, field->special.arg3); +case TRACE_STACK : { +struct special_entry *field = (struct special_entry *)entry; + +SEQ_PUT_HEX_FIELD_RET (s, field->arg1); +SEQ_PUT_HEX_FIELD_RET (s, field->arg2); +SEQ_PUT_HEX_FIELD_RET (s, field->arg3);break ; } + }SEQ_PUT_FIELD_RET (s, newline);return 1 ;
@@ -1590,39 +1635,46 @@ static int print_bin_fmt(struct trace_it {struct trace_seq *s = &iter->seq;struct trace_entry *entry; -struct trace_field *field; entry = iter->ent;if (entry->type ==TRACE_CONT )return 1 ; - field = &entry->field; - -SEQ_PUT_FIELD_RET (s, field->pid); -SEQ_PUT_FIELD_RET (s, field->cpu); +SEQ_PUT_FIELD_RET (s, entry->pid); +SEQ_PUT_FIELD_RET (s, iter->cpu);SEQ_PUT_FIELD_RET (s, iter->ts);switch (entry->type) { -case TRACE_FN : -SEQ_PUT_FIELD_RET (s, field->fn.ip); -SEQ_PUT_FIELD_RET (s, field->fn.parent_ip); +case TRACE_FN : { +struct ftrace_entry *field = (struct ftrace_entry *)entry; + +SEQ_PUT_FIELD_RET (s, field->ip); +SEQ_PUT_FIELD_RET (s, field->parent_ip);break ; -case TRACE_CTX : -SEQ_PUT_FIELD_RET (s, field->ctx.prev_pid); -SEQ_PUT_FIELD_RET (s, field->ctx.prev_prio); -SEQ_PUT_FIELD_RET (s, field->ctx.prev_state); -SEQ_PUT_FIELD_RET (s, field->ctx.next_pid); -SEQ_PUT_FIELD_RET (s, field->ctx.next_prio); -SEQ_PUT_FIELD_RET (s, field->ctx.next_state); + } +case TRACE_CTX : { +struct ctx_switch_entry *field = + (struct ctx_switch_entry *)entry; + +SEQ_PUT_FIELD_RET (s, field->prev_pid); +SEQ_PUT_FIELD_RET (s, field->prev_prio); +SEQ_PUT_FIELD_RET (s, field->prev_state); +SEQ_PUT_FIELD_RET (s, field->next_pid); +SEQ_PUT_FIELD_RET (s, field->next_prio); +SEQ_PUT_FIELD_RET (s, field->next_state);break ; + }case TRACE_SPECIAL : -case TRACE_STACK : -SEQ_PUT_FIELD_RET (s, field->special.arg1); -SEQ_PUT_FIELD_RET (s, field->special.arg2); -SEQ_PUT_FIELD_RET (s, field->special.arg3); +case TRACE_STACK : { +struct special_entry *field = (struct special_entry *)entry; + +SEQ_PUT_FIELD_RET (s, field->arg1); +SEQ_PUT_FIELD_RET (s, field->arg2); +SEQ_PUT_FIELD_RET (s, field->arg3);break ; } + }return 1 ; }
@@ -2818,10 +2870,10 @@ int trace_vprintk(unsigned long ip, consstruct ring_buffer_event *event;struct trace_array *tr = &global_trace;struct trace_array_cpu *data; -struct trace_entry *entry; +struct print_entry *entry;unsigned long flags, irq_flags;long disabled; -int cpu, len =0 , write, written =0 ; +int cpu, len =0 , size;if (!tr->ctrl || tracing_disabled)return 0 ;
@@ -2840,39 +2892,18 @@ int trace_vprintk(unsigned long ip, cons len =min (len,TRACE_BUF_SIZE -1 ); trace_buf[len] =0 ; - event =ring_buffer_lock_reserve (tr->buffer,sizeof (*entry), - &irq_flags); + size =sizeof (*entry) + len +1 ; + event =ring_buffer_lock_reserve (tr->buffer, size, &irq_flags);if (!event) goto out_unlock; - entry =ring_buffer_event_data (event); -tracing_generic_entry_update (entry, flags); - entry->type =TRACE_PRINT ; - entry->field.print.ip = ip; - - write =min (len, (int )(TRACE_PRINT_BUF_SIZE -1 )); - -memcpy (&entry->field.print.buf, trace_buf, write); - entry->field.print.buf[write] =0 ; - written = write; -ring_buffer_unlock_commit (tr->buffer, event, irq_flags); + entry =ring_buffer_event_data (event); +tracing_generic_entry_update (&entry->ent, flags); + entry->ent.type =TRACE_PRINT ; + entry->ip = ip; -if (written != len) - entry->field.flags |=TRACE_FLAG_CONT ; - -while (written != len) { - event =ring_buffer_lock_reserve (tr->buffer,sizeof (*entry), - &irq_flags); -if (!event) - goto out_unlock; - entry =ring_buffer_event_data (event); - - entry->type =TRACE_CONT ; - write =min (len - written, (int )(TRACE_CONT_BUF_SIZE -1 )); -memcpy (&entry->cont.buf, trace_buf+written, write); - entry->cont.buf[write] =0 ; - written += write; -ring_buffer_unlock_commit (tr->buffer, event, irq_flags); - } +memcpy (&entry->buf, trace_buf, len); + entry->buf[len] =0 ; +ring_buffer_unlock_commit (tr->buffer, event, irq_flags); out_unlock:spin_unlock (&trace_buf_lock);
kernel/trace/trace.h +42 -39
125 lines not on this page · raw message
kernel/trace/trace_mmiotrace.c +17 -14
@@ -178,14 +178,16 @@ print_out:static int mmio_print_rw (struct trace_iterator *iter) {struct trace_entry *entry = iter->ent; -struct mmiotrace_rw *rw = &entry->field.mmiorw; +struct trace_mmiotrace_rw *field = + (struct trace_mmiotrace_rw *)entry; +struct mmiotrace_rw *rw = &field->rw;struct trace_seq *s = &iter->seq;unsigned long long t =ns2usecs (iter->ts);unsigned long usec_rem =do_div (t,1000000ULL );unsigned secs = (unsigned long )t;int ret =1 ; -switch (entry->field.mmiorw.opcode) { +switch (rw->opcode) {case MMIO_READ : ret = trace_seq_printf(s, "R %d %lu.%06lu %d 0x%llx 0x%lx 0x%lx %d\n",
@@ -220,14 +222,14 @@ static int mmio_print_rw(struct trace_itstatic int mmio_print_map (struct trace_iterator *iter) {struct trace_entry *entry = iter->ent; -struct mmiotrace_map *m = &entry->field.mmiomap; +struct mmiotrace_map *m = (struct mmiotrace_map *)entry;struct trace_seq *s = &iter->seq;unsigned long long t =ns2usecs (iter->ts);unsigned long usec_rem =do_div (t,1000000ULL );unsigned secs = (unsigned long )t;int ret =1 ; -switch (entry->field.mmiorw.opcode) { +switch (m->opcode) {case MMIO_PROBE : ret = trace_seq_printf(s, "MAP %lu.%06lu %d 0x%llx 0x%lx 0x%lx 0x%lx %d\n",
@@ -252,7 +254,8 @@ static int mmio_print_map(struct trace_istatic int mmio_print_mark (struct trace_iterator *iter) {struct trace_entry *entry = iter->ent; -const char *msg = entry->field.print.buf; +struct print_entry *print = (struct print_entry *)entry; +const char *msg = print->buf;struct trace_seq *s = &iter->seq;unsigned long long t =ns2usecs (iter->ts);unsigned long usec_rem =do_div (t,1000000ULL );
@@ -264,7 +267,7 @@ static int mmio_print_mark(struct trace_if (!ret)return 0 ; -if (entry->field.flags &TRACE_FLAG_CONT ) +if (entry->flags &TRACE_FLAG_CONT )trace_seq_print_cont (s, iter);return 1 ;
@@ -308,7 +311,7 @@ static void __trace_mmiotrace_rw(struct struct mmiotrace_rw *rw) {struct ring_buffer_event *event; -struct trace_entry *entry; +struct trace_mmiotrace_rw *entry;unsigned long irq_flags; event = ring_buffer_lock_reserve(tr->buffer, sizeof(*entry),
@@ -316,9 +319,9 @@ static void __trace_mmiotrace_rw(structif (!event)return ; entry =ring_buffer_event_data (event); -tracing_generic_entry_update (entry,0 ); - entry->type =TRACE_MMIO_RW ; - entry->field.mmiorw = *rw; +tracing_generic_entry_update (&entry->ent,0 ); + entry->ent.type =TRACE_MMIO_RW ; + entry->rw = *rw;ring_buffer_unlock_commit (tr->buffer, event, irq_flags);trace_wake_up ();
@@ -336,7 +339,7 @@ static void __trace_mmiotrace_map(struct struct mmiotrace_map *map) {struct ring_buffer_event *event; -struct trace_entry *entry; +struct trace_mmiotrace_map *entry;unsigned long irq_flags; event = ring_buffer_lock_reserve(tr->buffer, sizeof(*entry),
@@ -344,9 +347,9 @@ static void __trace_mmiotrace_map(structif (!event)return ; entry =ring_buffer_event_data (event); -tracing_generic_entry_update (entry,0 ); - entry->type =TRACE_MMIO_MAP ; - entry->field.mmiomap = *map; +tracing_generic_entry_update (&entry->ent,0 ); + entry->ent.type =TRACE_MMIO_MAP ; + entry->map = *map;ring_buffer_unlock_commit (tr->buffer, event, irq_flags);trace_wake_up ();
kernel/trace/trace_boot.c +7 -6
@@ -49,10 +49,11 @@ static int initcall_print_line(struct tr {int ret =0 ;struct trace_entry *entry = iter->ent; -struct boot_trace *it = &entry->field.initcall; +struct trace_boot *field = (struct trace_boot *)entry; +struct boot_trace *it = &field->initcall;struct trace_seq *s = &iter->seq; -if (iter->ent->type ==TRACE_BOOT ) +if (entry->type ==TRACE_BOOT ) ret = trace_seq_printf(s, "%pF called from %i " "returned %d after %lld msecs\n", it->func, it->caller, it->result,
@@ -75,7 +76,7 @@ struct tracer boot_tracer __read_mostlyvoid trace_boot (struct boot_trace *it) {struct ring_buffer_event *event; -struct trace_entry *entry; +struct trace_boot *entry;struct trace_array_cpu *data;unsigned long irq_flags;struct trace_array *tr = boot_trace;
@@ -91,9 +92,9 @@ void trace_boot(struct boot_trace *it)if (!event) goto out; entry =ring_buffer_event_data (event); -tracing_generic_entry_update (entry,0 ); - entry->type =TRACE_BOOT ; - entry->field.initcall = *it; +tracing_generic_entry_update (&entry->ent,0 ); + entry->ent.type =TRACE_BOOT ; + entry->initcall = *it;ring_buffer_unlock_commit (tr->buffer, event, irq_flags);trace_wake_up ();
Re: [PATCH 6/6] ftrace: take advantage of variable length entries
Hi Steven,
This is great news. I have some questions below.
Quoted 4 lines · On Mon, 29 Sep 2008 23:02:42 -0400 Steven Rostedt <[email protected]> wrote:
Now that the underlining ring buffer for ftrace now hold variable length entries, we can take advantage of this by only storing the size of the actual event into the buffer. This happens to increase the number of entries in the buffer dramatically.
I've read this paragraph over and over, and I can't really understand "only storing the size of the ... event". Maybe you are trying to say that now we are not consuming more ring space than the actual size of the event?
Oh! I misunderstood also the last sentence, it's not generating extra entries but there is room for more entries than before.
Quoted 14 lines
We can also get rid of the "
trace_cont" operation, but I'm keeping that until we have no more users. Some of the ftrace tracers can now change their code to adapt to this new feature.CC Pekka Paalanen <[email protected]>CC Frederic Weisbecker <[email protected]>Signed-off-by Steven Rostedt <[email protected]>--- kernel/trace/trace.c | 441 +++++++++++++++++++++-------------------- kernel/trace/trace.h | 81 +++---- kernel/trace/trace_boot.c | 13 - kernel/trace/trace_mmiotrace.c | 31 +- 4 files changed, 302 insertions(+), 264 deletions(-)
...
Quoted 54 lines
Index:
linux-tip.git/kernel/trace/trace.h
===================================================================kernel/trace/trace.h +18
-0@@ -27,9 +27,24 @@ enum trace_type { };/* +* The trace entry - the most basic unit of tracing. This is what +* is printed in the end as a single line in the trace output, such as: +* +* bash-15816 [01] 235.197585: idle_cpu <- irq_enter +*/ +struct trace_entry { +unsigned char type; +unsigned char cpu; +unsigned char flags; +unsigned char preempt_count; +int pid; +}; + +/* * Function trace entry - function address and parent function addres: */ struct ftrace_entry { +struct trace_entry ent;unsigned long ip;unsigned long parent_ip; };@@ -39,6 +54,7 @@ extern struct tracer boot_tracer;* Context switch trace entry - which task (and prio) we switched from/to: */ struct ctx_switch_entry { +struct trace_entry ent;unsigned int prev_pid;unsigned char prev_prio;unsigned char prev_state;@@ -52,6 +68,7 @@ struct ctx_switch_entry {* Special (free-form) trace entry: */ struct special_entry { +struct trace_entry ent;unsigned long arg1;unsigned long arg2;unsigned long arg3;@@ -64,6 +81,7 @@ struct special_entry {#define FTRACE_STACK_ENTRIES 8struct stack_entry { +struct trace_entry ent;unsigned long caller[FTRACE_STACK_ENTRIES ]; };
kernel/trace/trace.h struct stack_entry { · line 97
Quoted 9 lines
kernel/trace/trace.h +2
-0@@ -71,10 +89,34 @@ struct stack_entry {* ftrace_printk entry: */ struct print_entry { +struct trace_entry ent;unsigned long ip;char buf[]; }; +#define TRACE_OLD_SIZE 88
I'm just wondering, does this hold for both 32- and 64-bit kernels? Long type is quite common in the structs. I realize this is going away, so maybe it doesn't even matter.
Quoted 41 lines
kernel/trace/trace.h +22
-12+ +struct trace_field_cont { +unsigned char type; +/* Temporary till we get rid of this completely */ +char buf[TRACE_OLD_SIZE -1 ]; +}; + +struct trace_mmiotrace_rw { +struct trace_entry ent; +struct mmiotrace_rw rw; +}; + +struct trace_mmiotrace_map { +struct trace_entry ent; +struct mmiotrace_map map; +}; + +struct trace_boot { +struct trace_entry ent; +struct boot_trace initcall; +}; +/* * trace_flag_type is an enumeration that holds different * states when a trace occurs. These are: @@ -92,46 +134,7 @@ enum trace_flag_type { TRACE_FLAG_CONT = 0x10, }; -/* -* The trace field - the most basic unit of tracing. This is what -* is printed in the end as a single line in the trace output, such as: -* -* bash-15816 [01] 235.197585: idle_cpu <- irq_enter -*/ -struct trace_field { -char cpu; -char flags; -char preempt_count; -int pid; -union {
kernel/trace/trace.h enum trace_flag_type { · line 116
Quoted 10 lines
kernel/trace/trace.h +0
-10-struct ftrace_entry fn; -struct ctx_switch_entry ctx; -struct special_entry special; -struct stack_entry stack; -struct print_entry print; -struct mmiotrace_rw mmiorw; -struct mmiotrace_map mmiomap; -struct boot_trace initcall; - }; -};
Finally we get rid of the union :-)
Quoted 45 lines
kernel/trace/trace.h +0
-17- -struct trace_field_cont { -char buf[sizeof (struct trace_field )]; -}; - -struct trace_entry { -char type; -union { -struct trace_field field; -struct trace_field_cont cont; - }; -}; - -#define TRACE_ENTRY_SIZE sizeof(struct trace_entry)#define TRACE_BUF_SIZE 1024 -#define TRACE_PRINT_BUF_SIZE \ - (sizeof(struct trace_field) - offsetof(struct trace_field, print.buf)) -#define TRACE_CONT_BUF_SIZE sizeof(struct trace_field)/* * The CPU trace array - it consists of thousands of trace entries Index:
linux-tip.git/kernel/trace/trace_mmiotrace.c
===================================================================kernel/trace/trace_mmiotrace.c +4
-2@@ -178,14 +178,16 @@ print_out:static int mmio_print_rw (struct trace_iterator *iter) {struct trace_entry *entry = iter->ent; -struct mmiotrace_rw *rw = &entry->field.mmiorw; +struct trace_mmiotrace_rw *field = + (struct trace_mmiotrace_rw *)entry; +struct mmiotrace_rw *rw = &field->rw;struct trace_seq *s = &iter->seq;unsigned long long t =ns2usecs (iter->ts);unsigned long usec_rem =do_div (t,1000000ULL );unsigned secs = (unsigned long )t;int ret =1 ; -switch (entry->field.mmiorw.opcode) { +switch (rw->opcode) {case MMIO_READ : ret = trace_seq_printf(s, "R %d %lu.%06lu %d 0x%llx 0x%lx 0x%lx %d\n",
kernel/trace/trace_mmiotrace.c static int mmio_print_rw(struct trace_it · line 225
Quoted 5 lines
kernel/trace/trace_mmiotrace.c +1
-1@@ -220,14 +222,14 @@ static int mmio_print_rw(struct trace_itstatic int mmio_print_map (struct trace_iterator *iter) {struct trace_entry *entry = iter->ent; -struct mmiotrace_map *m = &entry->field.mmiomap; +struct mmiotrace_map *m = (struct mmiotrace_map *)entry;
This is different style than above, missing the struct trace_mmiotrace_map intermediate step. Looks like a bug, since struct mmiotrace_map is not the first field in struct trace_mmiotrace_map.
Quoted 22 lines
kernel/trace/trace_mmiotrace.c +3
-2struct trace_seq *s = &iter->seq;unsigned long long t =ns2usecs (iter->ts);unsigned long usec_rem =do_div (t,1000000ULL );unsigned secs = (unsigned long )t;int ret =1 ; -switch (entry->field.mmiorw.opcode) { +switch (m->opcode) {case MMIO_PROBE : ret = trace_seq_printf(s, "MAP %lu.%06lu %d 0x%llx 0x%lx 0x%lx 0x%lx %d\n",@@ -252,7 +254,8 @@ static int mmio_print_map(struct trace_istatic int mmio_print_mark (struct trace_iterator *iter) {struct trace_entry *entry = iter->ent; -const char *msg = entry->field.print.buf; +struct print_entry *print = (struct print_entry *)entry; +const char *msg = print->buf;struct trace_seq *s = &iter->seq;unsigned long long t =ns2usecs (iter->ts);unsigned long usec_rem =do_div (t,1000000ULL );
kernel/trace/trace_mmiotrace.c static int mmio_print_mark(struct trace_ · line 271
Quoted 6 lines
kernel/trace/trace_mmiotrace.c +1
-1@@ -264,7 +267,7 @@ static int mmio_print_mark(struct trace_if (!ret)return 0 ; -if (entry->field.flags &TRACE_FLAG_CONT ) +if (entry->flags &TRACE_FLAG_CONT )trace_seq_print_cont (s, iter);
If we have variable length entries, doesn't that mean that print_entry::buf will always hold the full nil-terminated message, and that we could simply remove all the trace_seq_print_cont() calls?
In fact, TRACE_FLAG_CONT will never be set. I didn't dig up the other patches to verify, but trace_vprintk() isn't setting it anymore.
Quoted 36 lines
kernel/trace/trace_mmiotrace.c +5
-5return 1 ;@@ -308,7 +311,7 @@ static void __trace_mmiotrace_rw(struct struct mmiotrace_rw *rw) {struct ring_buffer_event *event; -struct trace_entry *entry; +struct trace_mmiotrace_rw *entry;unsigned long irq_flags; event = ring_buffer_lock_reserve(tr->buffer, sizeof(*entry),@@ -316,9 +319,9 @@ static void __trace_mmiotrace_rw(structif (!event)return ; entry =ring_buffer_event_data (event); -tracing_generic_entry_update (entry,0 ); - entry->type =TRACE_MMIO_RW ; - entry->field.mmiorw = *rw; +tracing_generic_entry_update (&entry->ent,0 ); + entry->ent.type =TRACE_MMIO_RW ; + entry->rw = *rw;ring_buffer_unlock_commit (tr->buffer, event, irq_flags);trace_wake_up ();@@ -336,7 +339,7 @@ static void __trace_mmiotrace_map(struct struct mmiotrace_map *map) {struct ring_buffer_event *event; -struct trace_entry *entry; +struct trace_mmiotrace_map *entry;unsigned long irq_flags; event = ring_buffer_lock_reserve(tr->buffer, sizeof(*entry),@@ -344,9 +347,9 @@ static void __trace_mmiotrace_map(structif (!event)return ;
kernel/trace/trace_mmiotrace.c static void __trace_mmiotrace_map(struct · line 355
Quoted 10 lines
kernel/trace/trace_mmiotrace.c +3
-3entry =ring_buffer_event_data (event); -tracing_generic_entry_update (entry,0 ); - entry->type =TRACE_MMIO_MAP ; - entry->field.mmiomap = *map; +tracing_generic_entry_update (&entry->ent,0 ); + entry->ent.type =TRACE_MMIO_MAP ; + entry->map = *map;ring_buffer_unlock_commit (tr->buffer, event, irq_flags);trace_wake_up ();
On the mmiotrace part, I don't see anything wrong here apart from that one bug.
Thanks.
Signature · 2 lines
Pekka Paalanen http://www.iki.fi/pq/
Steven Rostedt
maintainerRe: [PATCH 6/6] ftrace: take advantage of variable length entries
Quoted 3 lines · Pekka Paalanen
Hi Steven,
This is great news. I have some questions below.
Thanks!
Quoted 8 lines
Quoted 4 lines · On Mon, 29 Sep 2008 23:02:42 -0400 Steven Rostedt <[email protected]> wrote:
Now that the underlining ring buffer for ftrace now hold variable length entries, we can take advantage of this by only storing the size of the actual event into the buffer. This happens to increase the number of entries in the buffer dramatically.
Quoted 7 lines
I've read this paragraph over and over, and I can't really understand "only storing the size of the ... event". Maybe you are trying to say that now we are not consuming more ring space than the actual size of the event?
Oh! I misunderstood also the last sentence, it's not generating extra entries but there is room for more entries than before.
Yeah, it means that we can now store more entries with the same space.
Quoted 10 lines
Quoted 10 lines
kernel/trace/trace.h +1
-0@@ -71,10 +89,34 @@ struct stack_entry {* ftrace_printk entry: */ struct print_entry { +struct trace_entry ent;unsigned long ip;char buf[]; };
Quoted 5 lines
kernel/trace/trace.h struct stack_entry { · line 97
Quoted 1 line
kernel/trace/trace.h +1
-0+#define TRACE_OLD_SIZE 88I'm just wondering, does this hold for both 32- and 64-bit kernels? Long type is quite common in the structs. I realize this is going away, so maybe it doesn't even matter.
I believe 88 was what I came up with on x86_64. It was just a size to pick out of the blue and has no real meaning. I'm not sure anyone uses it but before I hacked it away, I wanted to make sure.
Quoted 16 lines
Quoted 16 lines
kernel/trace/trace.h +0
-16-/* -* The trace field - the most basic unit of tracing. This is what -* is printed in the end as a single line in the trace output, such as: -* -* bash-15816 [01] 235.197585: idle_cpu <- irq_enter -*/ -struct trace_field { -char cpu; -char flags; -char preempt_count; -int pid; -union { -struct ftrace_entry fn; -struct ctx_switch_entry ctx; -struct special_entry special; -struct stack_entry stack;
Quoted 8 lines
kernel/trace/trace.h enum trace_flag_type { · line 116
Quoted 6 lines
kernel/trace/trace.h +0
-6-struct print_entry print; -struct mmiotrace_rw mmiorw; -struct mmiotrace_map mmiomap; -struct boot_trace initcall; - }; -};Finally we get rid of the union :-)
Yeah, this is my favorite part of the patch.
Quoted 5 lines
Quoted 5 lines
kernel/trace/trace_mmiotrace.c +0
-0ret = trace_seq_printf(s, "R %d %lu.%06lu %d 0x%llx 0x%lx 0x%lx %d\n",@@ -220,14 +222,14 @@ static int mmio_print_rw(struct trace_itstatic int mmio_print_map (struct trace_iterator *iter) {
Quoted 8 lines
kernel/trace/trace_mmiotrace.c static int mmio_print_rw(struct trace_it · line 225
Quoted 3 lines
kernel/trace/trace_mmiotrace.c +1
-1struct trace_entry *entry = iter->ent; -struct mmiotrace_map *m = &entry->field.mmiomap; +struct mmiotrace_map *m = (struct mmiotrace_map *)entry;This is different style than above, missing the struct
trace_mmiotrace_mapintermediate step. Looks like a bug, since structmmiotrace_mapis not the first field in structtrace_mmiotrace_map.
Crap! yes this is a bug. Thanks for pointing this out.
Quoted 23 lines
Quoted 11 lines
kernel/trace/trace_mmiotrace.c +2
-1@@ -252,7 +254,8 @@ static int mmio_print_map(struct trace_istatic int mmio_print_mark (struct trace_iterator *iter) {struct trace_entry *entry = iter->ent; -const char *msg = entry->field.print.buf; +struct print_entry *print = (struct print_entry *)entry; +const char *msg = print->buf;struct trace_seq *s = &iter->seq;unsigned long long t =ns2usecs (iter->ts);unsigned long usec_rem =do_div (t,1000000ULL );kernel/trace/trace_mmiotrace.c static int mmio_print_mark(struct trace_ · line 271
Quoted 6 lines
kernel/trace/trace_mmiotrace.c +1
-1@@ -264,7 +267,7 @@ static int mmio_print_mark(struct trace_if (!ret)return 0 ; -if (entry->field.flags &TRACE_FLAG_CONT ) +if (entry->flags &TRACE_FLAG_CONT )trace_seq_print_cont (s, iter);If we have variable length entries, doesn't that mean that
print_entry::bufwill always hold the full nil-terminated message, and that we could simply remove all thetrace_seq_print_cont()calls?
Quoted 3 lines
In fact,
TRACE_FLAG_CONTwill never be set. I didn't dig up the other patches to verify, buttrace_vprintk()isn't setting it anymore.
This patch is bringing us to the stage to get rid of the CONT flag. I kept this in just to not break more than I need to ;-)
Quoted 21 lines
Quoted 21 lines
kernel/trace/trace_mmiotrace.c +4
-4@@ -336,7 +339,7 @@ static void __trace_mmiotrace_map(struct struct mmiotrace_map *map) {struct ring_buffer_event *event; -struct trace_entry *entry; +struct trace_mmiotrace_map *entry;unsigned long irq_flags; event = ring_buffer_lock_reserve(tr->buffer, sizeof(*entry),@@ -344,9 +347,9 @@ static void __trace_mmiotrace_map(structif (!event)return ; entry =ring_buffer_event_data (event); -tracing_generic_entry_update (entry,0 ); - entry->type =TRACE_MMIO_MAP ; - entry->field.mmiomap = *map; +tracing_generic_entry_update (&entry->ent,0 ); + entry->ent.type =TRACE_MMIO_MAP ; + entry->map = *map;ring_buffer_unlock_commit (tr->buffer, event, irq_flags);
Quoted 4 lines
Review static void __trace_mmiotrace_map(struct · line 355
Quoted 1 line
(quoted diff) +0
-0trace_wake_up();On the mmiotrace part, I don't see anything wrong here apart from that one bug.
Thanks, I'll add a patch to my coming queue to handle this.
-- Steve
Steven Rostedt
maintainerRe: [PATCH 6/6] ftrace: take advantage of variable length entries
Quoted 4 lines · Steven Rostedt
Quoted 2 lines
On the mmiotrace part, I don't see anything wrong here apart from that one bug.
Thanks, I'll add a patch to my coming queue to handle this.
Bah, I lied. The new locking design took a bit more time to do than I expected, and I forgot to add this fix. I'll add it tomorrow.
Thanks,
-- Steve
Re: [PATCH 6/6] ftrace: take advantage of variable length entries
In reply to Steven RostedtQuoted 10 lines · Steven Rostedt
Quoted 8 lines
kernel/trace/trace_mmiotrace.c static int mmio_print_rw(struct trace_it · line 225
Quoted 3 lines
kernel/trace/trace_mmiotrace.c +1
-1struct trace_entry *entry = iter->ent; -struct mmiotrace_map *m = &entry->field.mmiomap; +struct mmiotrace_map *m = (struct mmiotrace_map *)entry;This is different style than above, missing the struct
trace_mmiotrace_mapintermediate step. Looks like a bug, since structmmiotrace_mapis not the first field in structtrace_mmiotrace_map.Crap! yes this is a bug. Thanks for pointing this out.
hm, there's a significant amount of type casts, see the grep below.
The ringbuffer becoming type-opaque has exactly these kinds of dangers, and as i suggested a few days ago, please think about a debug mode that stores the record type in the trace entry and validates it on extraction or something like that.
That might even be a robustness feature: the tracer should not crash if the trace buffer gets corrupted. ftrace had that invariant before, i think we should try to keep as many aspects of it as possible.
Ingo
------------->ring_buffer.c: page = (struct buffer_page *)virt_to_page(addr);ring_buffer.c: cpu_buffer->reader_page = (struct buffer_page *)virt_to_page(addr);
ring_buffer.c:static void rb_reset_cpu(struct ring_buffer_per_cpu *cpu_buffer);ring_buffer.c: page = (struct buffer_page *)virt_to_page(addr);trace_boot.c: struct trace_boot *field = (struct trace_boot *)entry;
trace.c:static DEFINE_PER_CPU(struct trace_array_cpu, global_trace_cpu); trace.c:static DEFINE_PER_CPU(struct trace_array_cpu, max_data);trace.c: cont = (struct trace_field_cont *)ent;trace.c: struct ftrace_entry *field = (struct ftrace_entry *)entry;trace.c: (struct ctx_switch_entry *)entry;trace.c: struct special_entry *field = (struct special_entry *)entry;trace.c: struct stack_entry *field = (struct stack_entry *)entry;trace.c: struct print_entry *field = (struct print_entry *)entry;trace.c: struct ftrace_entry *field = (struct ftrace_entry *)entry;trace.c: (struct ctx_switch_entry *)entry;trace.c: struct special_entry *field = (struct special_entry *)entry;trace.c: struct stack_entry *field = (struct stack_entry *)entry;trace.c: struct print_entry *field = (struct print_entry *)entry;trace.c: struct ftrace_entry *field = (struct ftrace_entry *)entry;trace.c: (struct ctx_switch_entry *)entry;trace.c: struct special_entry *field = (struct special_entry *)entry;trace.c: struct print_entry *field = (struct print_entry *)entry;trace.c: struct ftrace_entry *field = (struct ftrace_entry *)entry;trace.c: (struct ctx_switch_entry *)entry;trace.c: struct special_entry *field = (struct special_entry *)entry;trace.c: struct ftrace_entry *field = (struct ftrace_entry *)entry;trace.c: (struct ctx_switch_entry *)entry;trace.c: struct special_entry *field = (struct special_entry *)entry;trace.c: struct seq_file *m = (struct seq_file *)file->private_data;trace.c: offsetof(struct trace_iterator, seq));trace.c: offsetof(struct trace_iterator, seq));trace_mmiotrace.c: (struct trace_mmiotrace_rw *)entry;trace_mmiotrace.c: struct mmiotrace_map *m = (struct mmiotrace_map *)entry;trace_mmiotrace.c: struct print_entry *print = (struct print_entry *)entry;
trace_sched_wakeup.c:static void __wakeup_reset(struct trace_array *tr); trace_sysprof.c:static DEFINE_PER_CPU(struct hrtimer, stack_trace_hrtimer);trace_sysprof.c: stack = ((char *)regs + sizeof(struct pt_regs));trace_sysprof.c: regs = (struct pt_regs *)current->thread.sp0 - 1;
Steven Rostedt
maintainerRe: [PATCH 6/6] ftrace: take advantage of variable length entries
Quoted 12 lines · Ingo Molnar
Quoted 9 lines · Steven Rostedt
Quoted 8 lines
kernel/trace/trace_mmiotrace.c static int mmio_print_rw(struct trace_it · line 225
Quoted 3 lines
kernel/trace/trace_mmiotrace.c +1
-1struct trace_entry *entry = iter->ent; -struct mmiotrace_map *m = &entry->field.mmiomap; +struct mmiotrace_map *m = (struct mmiotrace_map *)entry;This is different style than above, missing the struct
trace_mmiotrace_mapintermediate step. Looks like a bug, since structmmiotrace_mapis not the first field in structtrace_mmiotrace_map.
Quoted 3 lines
Quoted 1 line
Crap! yes this is a bug. Thanks for pointing this out.
hm, there's a significant amount of type casts, see the grep below.
Yeah, I don't like that either.
Quoted 9 lines
The ringbuffer becoming type-opaque has exactly these kinds of dangers, and as i suggested a few days ago, please think about a debug mode that stores the record type in the trace entry and validates it on extraction or something like that.
That might even be a robustness feature: the tracer should not crash if the trace buffer gets corrupted. ftrace had that invariant before, i think we should try to keep as many aspects of it as possible.
Although the ring buffer is type opaque, that isn't the cause of this issue. Ftrace still adds the types as needed. But since we no longer have the big "one type for all" union entry, we need to be a bit more careful. All types start with a one byte type id (giving us 255 types to use for ftrace, zero being saved).
The following patch fixes this bug and addresses the issue.
-- Steve
Steven Rostedt
maintainerPATCH 1/1 ftrace: type cast verifier
In reply to Ingo MolnarThe mmiotrace map had a bug that would typecast the entry from the trace to the wrong type.
This patch adds a macro to assign all entries of ftrace using the type of the variable and checking the entry id. The typecasts are now done in the macro for only those types that it knows about, which should be all the types that are allowed to be read from the tracer.
--- kernel/trace/trace.c | 85 ++++++++++++++++++++++++++++------------- kernel/trace/trace.h | 42 ++++++++++++++++++++ kernel/trace/trace_mmiotrace.c | 14 ++++-- 3 files changed, 112 insertions(+), 29 deletions(-)
kernel/trace/trace.c +60 -25
@@ -1350,7 +1350,9 @@ print_lat_fmt(struct trace_iterator *ite }switch (entry->type) {case TRACE_FN : { -struct ftrace_entry *field = (struct ftrace_entry *)entry; +struct ftrace_entry *field; + +trace_assign_type (field, entry);seq_print_ip_sym (s, field->ip, sym_flags);trace_seq_puts (s," (" );
@@ -1363,8 +1365,9 @@ print_lat_fmt(struct trace_iterator *ite }case TRACE_CTX :case TRACE_WAKE : { -struct ctx_switch_entry *field = - (struct ctx_switch_entry *)entry; +struct ctx_switch_entry *field; + +trace_assign_type (field, entry);T = field->next_state <sizeof (state_to_char) ? state_to_char[field->next_state] :'X' ;
@@ -1384,7 +1387,9 @@ print_lat_fmt(struct trace_iterator *itebreak ; }case TRACE_SPECIAL : { -struct special_entry *field = (struct special_entry *)entry; +struct special_entry *field; + +trace_assign_type (field, entry); trace_seq_printf(s, "# %ld %ld %ld\n", field->arg1,
@@ -1393,7 +1398,9 @@ print_lat_fmt(struct trace_iterator *itebreak ; }case TRACE_STACK : { -struct stack_entry *field = (struct stack_entry *)entry; +struct stack_entry *field; + +trace_assign_type (field, entry);for (i =0 ; i <FTRACE_STACK_ENTRIES ; i++) {if (i)
@@ -1404,7 +1411,9 @@ print_lat_fmt(struct trace_iterator *itebreak ; }case TRACE_PRINT : { -struct print_entry *field = (struct print_entry *)entry; +struct print_entry *field; + +trace_assign_type (field, entry);seq_print_ip_sym (s, field->ip, sym_flags);trace_seq_printf (s,": %s" , field->buf);
@@ -1454,7 +1463,9 @@ static enum print_line_t print_trace_fmtswitch (entry->type) {case TRACE_FN : { -struct ftrace_entry *field = (struct ftrace_entry *)entry; +struct ftrace_entry *field; + +trace_assign_type (field, entry); ret =seq_print_ip_sym (s, field->ip, sym_flags);if (!ret)
@@ -1480,8 +1491,9 @@ static enum print_line_t print_trace_fmt }case TRACE_CTX :case TRACE_WAKE : { -struct ctx_switch_entry *field = - (struct ctx_switch_entry *)entry; +struct ctx_switch_entry *field; + +trace_assign_type (field, entry);S = field->prev_state <sizeof (state_to_char) ? state_to_char[field->prev_state] :'X' ;
@@ -1501,7 +1513,9 @@ static enum print_line_t print_trace_fmtbreak ; }case TRACE_SPECIAL : { -struct special_entry *field = (struct special_entry *)entry; +struct special_entry *field; + +trace_assign_type (field, entry); ret = trace_seq_printf(s, "# %ld %ld %ld\n", field->arg1,
@@ -1512,7 +1526,9 @@ static enum print_line_t print_trace_fmtbreak ; }case TRACE_STACK : { -struct stack_entry *field = (struct stack_entry *)entry; +struct stack_entry *field; + +trace_assign_type (field, entry);for (i =0 ; i <FTRACE_STACK_ENTRIES ; i++) {if (i) {
@@ -1531,7 +1547,9 @@ static enum print_line_t print_trace_fmtbreak ; }case TRACE_PRINT : { -struct print_entry *field = (struct print_entry *)entry; +struct print_entry *field; + +trace_assign_type (field, entry);seq_print_ip_sym (s, field->ip, sym_flags);trace_seq_printf (s,": %s" , field->buf);
@@ -1562,7 +1580,9 @@ static enum print_line_t print_raw_fmt(sswitch (entry->type) {case TRACE_FN : { -struct ftrace_entry *field = (struct ftrace_entry *)entry; +struct ftrace_entry *field; + +trace_assign_type (field, entry); ret = trace_seq_printf(s, "%x %x\n", field->ip,
@@ -1573,8 +1593,9 @@ static enum print_line_t print_raw_fmt(s }case TRACE_CTX :case TRACE_WAKE : { -struct ctx_switch_entry *field = - (struct ctx_switch_entry *)entry; +struct ctx_switch_entry *field; + +trace_assign_type (field, entry);S = field->prev_state <sizeof (state_to_char) ? state_to_char[field->prev_state] :'X' ;
@@ -1596,7 +1617,9 @@ static enum print_line_t print_raw_fmt(s }case TRACE_SPECIAL :case TRACE_STACK : { -struct special_entry *field = (struct special_entry *)entry; +struct special_entry *field; + +trace_assign_type (field, entry); ret = trace_seq_printf(s, "# %ld %ld %ld\n", field->arg1,
@@ -1607,7 +1630,9 @@ static enum print_line_t print_raw_fmt(sbreak ; }case TRACE_PRINT : { -struct print_entry *field = (struct print_entry *)entry; +struct print_entry *field; + +trace_assign_type (field, entry);trace_seq_printf (s,"# %lx %s" , field->ip, field->buf);if (entry->flags &TRACE_FLAG_CONT )
@@ -1648,7 +1673,9 @@ static enum print_line_t print_hex_fmt(sswitch (entry->type) {case TRACE_FN : { -struct ftrace_entry *field = (struct ftrace_entry *)entry; +struct ftrace_entry *field; + +trace_assign_type (field, entry);SEQ_PUT_HEX_FIELD_RET (s, field->ip);SEQ_PUT_HEX_FIELD_RET (s, field->parent_ip);
@@ -1656,8 +1683,9 @@ static enum print_line_t print_hex_fmt(s }case TRACE_CTX :case TRACE_WAKE : { -struct ctx_switch_entry *field = - (struct ctx_switch_entry *)entry; +struct ctx_switch_entry *field; + +trace_assign_type (field, entry);S = field->prev_state <sizeof (state_to_char) ? state_to_char[field->prev_state] :'X' ;
@@ -1676,7 +1704,9 @@ static enum print_line_t print_hex_fmt(s }case TRACE_SPECIAL :case TRACE_STACK : { -struct special_entry *field = (struct special_entry *)entry; +struct special_entry *field; + +trace_assign_type (field, entry);SEQ_PUT_HEX_FIELD_RET (s, field->arg1);SEQ_PUT_HEX_FIELD_RET (s, field->arg2);
@@ -1705,15 +1735,18 @@ static enum print_line_t print_bin_fmt(sswitch (entry->type) {case TRACE_FN : { -struct ftrace_entry *field = (struct ftrace_entry *)entry; +struct ftrace_entry *field; + +trace_assign_type (field, entry);SEQ_PUT_FIELD_RET (s, field->ip);SEQ_PUT_FIELD_RET (s, field->parent_ip);break ; }case TRACE_CTX : { -struct ctx_switch_entry *field = - (struct ctx_switch_entry *)entry; +struct ctx_switch_entry *field; + +trace_assign_type (field, entry);SEQ_PUT_FIELD_RET (s, field->prev_pid);SEQ_PUT_FIELD_RET (s, field->prev_prio);
@@ -1725,7 +1758,9 @@ static enum print_line_t print_bin_fmt(s }case TRACE_SPECIAL :case TRACE_STACK : { -struct special_entry *field = (struct special_entry *)entry; +struct special_entry *field; + +trace_assign_type (field, entry);SEQ_PUT_FIELD_RET (s, field->arg1);SEQ_PUT_FIELD_RET (s, field->arg2);
kernel/trace/trace.h +42 -0
48 lines not on this page · raw message
kernel/trace/trace_mmiotrace.c +10 -4
@@ -178,15 +178,17 @@ print_out:static enum print_line_t mmio_print_rw (struct trace_iterator *iter) {struct trace_entry *entry = iter->ent; -struct trace_mmiotrace_rw *field = - (struct trace_mmiotrace_rw *)entry; -struct mmiotrace_rw *rw = &field->rw; +struct trace_mmiotrace_rw *field; +struct mmiotrace_rw *rw;struct trace_seq *s = &iter->seq;unsigned long long t =ns2usecs (iter->ts);unsigned long usec_rem =do_div (t,1000000ULL );unsigned secs = (unsigned long )t;int ret =1 ; +trace_assign_type (field, entry); + rw = &field->rw; +switch (rw->opcode) {case MMIO_READ : ret = trace_seq_printf(s,
@@ -222,13 +224,17 @@ static enum print_line_t mmio_print_rw(sstatic enum print_line_t mmio_print_map (struct trace_iterator *iter) {struct trace_entry *entry = iter->ent; -struct mmiotrace_map *m = (struct mmiotrace_map *)entry; +struct trace_mmiotrace_map *field; +struct mmiotrace_map *m;struct trace_seq *s = &iter->seq;unsigned long long t =ns2usecs (iter->ts);unsigned long usec_rem =do_div (t,1000000ULL );unsigned secs = (unsigned long )t;int ret; +trace_assign_type (field, entry); + m = &field->map; +switch (m->opcode) {case MMIO_PROBE : ret = trace_seq_printf(s,
Re: [PATCH] ftrace: type cast verifier
kernel/trace/trace.h struct trace_array { · line 181
Quoted 2 lines · Steven Rostedt
kernel/trace/trace.h +2
-0+#define FTRACE_CMP_TYPE (var, type) \ + __builtin_types_compatible_p(typeof(var), type *)
ah, the -rt type trick ;-)
i'd suggest one more small detail:
kernel/trace/trace_mmiotrace.c static enum print_line_t mmio_print_rw(s · line 235
Quoted 4 lines
kernel/trace/trace_mmiotrace.c +3
-0+struct trace_mmiotrace_map *field; +struct mmiotrace_map *m; +trace_assign_type (field, entry);
could you rename it to trace_type() - that way the initialization could be written in a more compact way as:
Review
Quoted 1 line
(quoted diff) +1
-0+ struct trace_mmiotrace_map *field = trace_type(field, entry);
[ NOTE: there's namespace clash with a local symbol in ./trace_irqsoff.c
and a trace_type enum as well ]
Ingo
Re: [PATCH] ftrace: type cast verifier
Quoted 4 lines · Ingo Molnar
could you rename it to
trace_type()- that way the initialization could be written in a more compact way as:Review
Quoted 1 line
(quoted diff) +1
-0+ struct trace_mmiotrace_map *field = trace_type(field, entry);
ah, it cannot be done that way, as 'field' has to be known to the compiler.
so your patch is fine as-is, the extra line is an acceptable cost, as we get:
- the type filter (trying to cast an object outside of the narrow list of trace entry types will cause a failed build - i.e. most of the practical dangers of C type casting are avoided!)
- the runtime entry type checker
Ingo
Quoted 7 lines · Steven Rostedt
These patches are against linux-tip.
The first is just a fix in the wakeup selftest.
The next is a port of the Unified tracer buffer to linux-tip and some updates.
Quoted 6 lines
After that is the ftrace port to use the ring buffer, followed by some more enhancements to ftrace because of the new variable length buffer.
I tried a few configurations and tried to test all the different ftrace tracers, but I'm sure there may be some bugs still to work out. I worked out all those that I found.
very nice! I'd expect breakages and complications too so i restructured tip/tracing/* a bit: firstly i created a tip/tracing/core append-only merge branch which collects all the known-robust bits. Then i created a new branch for your new generic ring-buffer feature:
tip/tracing/ring-buffer, and applied your patches. I've started testing it.
Once we declare it OK, it can be merged into tip/tracing/core.
Quoted 6 lines
But, with the
ring_bufferI can envision several ways to clean up ftrace and to make adding new tracers cleaner.I'm also thinking about making a way that each tracer can allocate its own buffer, and allow for more than one tracer to be running at the same time! (only with different buffers).
yeah. Ideally this should just fall out of the generic framework - i.e. tracer plugins should not have to do anything extra to get per tracer buffers. They should just add their own specialistic flavor, there should be no repetitions otherwise. (barring cases where a tracer wants to deviate from default behavior)
Ingo
Quoted 6 lines · Ingo Molnar
very nice! I'd expect breakages and complications too so i restructured tip/tracing/* a bit: firstly i created a tip/tracing/core append-only merge branch which collects all the known-robust bits. Then i created a new branch for your new generic ring-buffer feature:
tip/tracing/ring-buffer, and applied your patches. I've started testing it.
-tip testing found that tip/tracing/ring-buffer causes a new lockdep splat:
[ 0.000000] Linux version 2.6.27-rc8-tip-00915-g8cb18a9-dirty (mingo@dione)
(gcc version 4.2.3) #37501 SMP Tue Sep 30 10:10:10 CEST 2008
[...]
[ 0.268001] calling tracer_alloc_buffers+0x0/0x1e5 @ 1
[ 0.270983] ------------[ cut here ]------------
[ 0.271100] WARNING: at kernel/lockdep.c:2880 check_flags+0x63/0x179()
[ 0.271219] Modules linked in:
[ 0.271356] Pid: 1, comm: swapper Not tainted 2.6.27-rc8-tip-00915-g8cb18a9-dirty #37501
[ 0.271563] Call Trace:
[ 0.271678] [<ffffffff80271d2b>] warn_on_slowpath+0x5d/0x84
[ 0.271797] [<ffffffff80295973>] ? __lock_acquire+0xba4/0xbc5
[ 0.271916] [<ffffffff8029266d>] ? __raw_spin_is_locked+0x17/0x1a
[ 0.272001] [<ffffffff802929cc>] ? graph_unlock+0x79/0x7e
[ 0.272001] [<ffffffff8029449f>] ? mark_lock+0x1c/0x361
[ 0.272001] [<ffffffff8029483a>] ? mark_held_locks+0x56/0x71
[ 0.272001] [<ffffffff802cbb77>] ? time_hardirqs_off+0x12/0x26
[ 0.272001] [<ffffffff802934f1>] ? trace_hardirqs_off_caller+0x21/0xc2
[ 0.272001] [<ffffffff802927c3>] check_flags+0x63/0x179
[ 0.272001] [<ffffffff802966a1>] lock_acquire+0x51/0xc2
[ 0.272001] [<ffffffff816fcead>] _spin_lock+0x36/0x65
[ 0.272001] [<ffffffff802c7511>] ? ring_buffer_reset_cpu+0x47/0x6b
[ 0.272001] [<ffffffff802c7511>] ring_buffer_reset_cpu+0x47/0x6b
[ 0.272001] [<ffffffff802ca33f>] tracing_reset+0xc/0xe
[ 0.272001] [<ffffffff802cd0b4>] boot_trace_init+0x2a/0x46
[ 0.272001] [<ffffffff826817c3>] tracer_alloc_buffers+0x1a7/0x1e5
[ 0.272001] [<ffffffff8268161c>] ? tracer_alloc_buffers+0x0/0x1e5
[ 0.272001] [<ffffffff8020a062>] do_one_initcall+0x62/0x165
[ 0.272001] [<ffffffff816f3291>] ? print_cpu_info+0xab/0x135
[ 0.272001] [<ffffffff8024d8aa>] ? get_apic_id+0x0/0x13
[ 0.272001] [<ffffffff8268161c>] ? tracer_alloc_buffers+0x0/0x1e5
[ 0.272001] [<ffffffff8266190c>] kernel_init+0x60/0x21a
[ 0.272001] [<ffffffff8022daf9>] child_rip+0xa/0x11
[ 0.272001] [<ffffffff8022cc83>] ? restore_args+0x0/0x30
[ 0.272001] [<ffffffff802c5d03>] ? ftrace_convert_nops+0x25/0xb0
[ 0.272001] [<ffffffff8023362a>] ? sched_clock+0x17/0x1a
[ 0.272001] [<ffffffff826618ac>] ? kernel_init+0x0/0x21a
[ 0.272001] [<ffffffff8022daef>] ? child_rip+0x0/0x11
[ 0.272001] ---[ end trace a7919e7f17c0a725 ]---
[ 0.272001] possible reason: unannotated irqs-off.
[ 0.272001] irq event stamp: 9069
[ 0.272001] hardirqs last enabled at (9069): [<ffffffff802949bf>] trace_hardirqs_on+0xd/0xf
[ 0.272001] hardirqs last disabled at (9068): [<ffffffff8029359f>] trace_hardirqs_off+0xd/0xf
[ 0.272001] softirqs last enabled at (4082): [<ffffffff802773c3>] __do_softirq+0xe0/0xed
[ 0.272001] softirqs last disabled at (4075): [<ffffffff8022dfec>] call_softirq+0x1c/0x28
[ 0.272010] initcall tracer_alloc_buffers+0x0/0x1e5 returned 0 after 7 msecs
[ 0.272409] lockdep: fixing up alternatives.
[ 0.272604] Booting processor 1 APIC 0x1 ip 0x6000
[ 0.004000] Initializing CPU#1on a 64-bit allyesconfig bootup. Config attached.
The box booted up fine otherwise, so i'll continue testing the new code, to find other problems (if any).
Ingo
#
# Automatically generated make config: don't edit # Linux kernel version: 2.6.27-rc8
# Tue Sep 30 10:13:31 2008
#
# CONFIG_64BIT is not setCONFIG_X86_32=y
# CONFIG_X86_64 is not setCONFIG_X86=y CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig" # CONFIG_GENERIC_LOCKBREAK is not set CONFIG_GENERIC_TIME=yCONFIG_GENERIC_CMOS_UPDATE=y CONFIG_CLOCKSOURCE_WATCHDOG=y CONFIG_GENERIC_CLOCKEVENTS=y CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_HAVE_LATENCYTOP_SUPPORT=y CONFIG_FAST_CMPXCHG_LOCAL=yCONFIG_MMU=yCONFIG_ZONE_DMA=yCONFIG_GENERIC_ISA_DMA=yCONFIG_GENERIC_IOMAP=yCONFIG_GENERIC_BUG=yCONFIG_GENERIC_HWEIGHT=yCONFIG_GENERIC_GPIO=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y
# CONFIG_RWSEM_GENERIC_SPINLOCK is not set CONFIG_RWSEM_XCHGADD_ALGORITHM=y
# CONFIG_ARCH_HAS_ILOG2_U32 is not set
# CONFIG_ARCH_HAS_ILOG2_U64 is not set CONFIG_ARCH_HAS_CPU_IDLE_WAIT=y CONFIG_GENERIC_CALIBRATE_DELAY=y
# CONFIG_GENERIC_TIME_VSYSCALL is not set CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y
# CONFIG_HAVE_CPUMASK_OF_CPU_MAP is not set CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y
# CONFIG_ZONE_DMA32 is not set CONFIG_ARCH_POPULATES_NODE_MAP=y
# CONFIG_AUDIT_ARCH is not set CONFIG_ARCH_SUPPORTS_AOUT=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_GENERIC_HARDIRQS=y CONFIG_GENERIC_IRQ_PROBE=y CONFIG_GENERIC_PENDING_IRQ=yCONFIG_X86_SMP=yCONFIG_X86_32_SMP=yCONFIG_X86_HT=yCONFIG_X86_BIOS_REBOOT=yCONFIG_X86_TRAMPOLINE=yCONFIG_KTIME_SCALAR=y CONFIG_BOOTPARAM_SUPPORT_NOT_WANTED=y CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
#
# General setup
#CONFIG_EXPERIMENTAL=yCONFIG_BROKEN_BOOT_ALLOWED4=yCONFIG_BROKEN_BOOT_ALLOWED3=yCONFIG_BROKEN_BOOT_ALLOWED2=y
# CONFIG_BROKEN_BOOT_ALLOWED is not set
# CONFIG_BROKEN_BOOT_EUROPE is not set
# CONFIG_BROKEN_BOOT_TITAN is not setCONFIG_LOCK_KERNEL=yCONFIG_INIT_ENV_ARG_LIMIT=32CONFIG_LOCALVERSION=""CONFIG_LOCALVERSION_AUTO=yCONFIG_SWAP=yCONFIG_SYSVIPC=yCONFIG_SYSVIPC_SYSCTL=yCONFIG_POSIX_MQUEUE=yCONFIG_BSD_PROCESS_ACCT=yCONFIG_BSD_PROCESS_ACCT_V3=yCONFIG_TASKSTATS=yCONFIG_TASK_DELAY_ACCT=yCONFIG_TASK_XACCT=yCONFIG_TASK_IO_ACCOUNTING=yCONFIG_AUDIT=yCONFIG_AUDITSYSCALL=yCONFIG_AUDIT_TREE=yCONFIG_IKCONFIG=yCONFIG_IKCONFIG_PROC=yCONFIG_LOG_BUF_SHIFT=21CONFIG_CGROUPS=yCONFIG_CGROUP_DEBUG=yCONFIG_CGROUP_NS=yCONFIG_CGROUP_DEVICE=yCONFIG_CPUSETS=yCONFIG_HAVE_UNSTABLE_SCHED_CLOCK=yCONFIG_GROUP_SCHED=yCONFIG_FAIR_GROUP_SCHED=yCONFIG_RT_GROUP_SCHED=yCONFIG_USER_SCHED=y
# CONFIG_CGROUP_SCHED is not setCONFIG_CGROUP_CPUACCT=yCONFIG_RESOURCE_COUNTERS=yCONFIG_MM_OWNER=yCONFIG_CGROUP_MEM_RES_CTLR=yCONFIG_SYSFS_DEPRECATED=yCONFIG_SYSFS_DEPRECATED_V2=yCONFIG_PROC_PID_CPUSET=yCONFIG_RELAY=yCONFIG_NAMESPACES=yCONFIG_UTS_NS=yCONFIG_IPC_NS=yCONFIG_USER_NS=yCONFIG_PID_NS=yCONFIG_BLK_DEV_INITRD=yCONFIG_INITRAMFS_SOURCE=""CONFIG_CC_OPTIMIZE_FOR_SIZE=yCONFIG_FASTBOOT=yCONFIG_SYSCTL=yCONFIG_EMBEDDED=yCONFIG_UID16=yCONFIG_SYSCTL_SYSCALL=yCONFIG_KALLSYMS=yCONFIG_KALLSYMS_ALL=yCONFIG_KALLSYMS_EXTRA_PASS=yCONFIG_HOTPLUG=yCONFIG_PRINTK=yCONFIG_BUG=yCONFIG_ELF_CORE=yCONFIG_PCSPKR_PLATFORM=yCONFIG_COMPAT_BRK=yCONFIG_BASE_FULL=yCONFIG_FUTEX=yCONFIG_ANON_INODES=yCONFIG_EPOLL=yCONFIG_SIGNALFD=yCONFIG_TIMERFD=yCONFIG_EVENTFD=yCONFIG_SHMEM=yCONFIG_VM_EVENT_COUNTERS=yCONFIG_SLUB_DEBUG=y
# CONFIG_SLAB is not setCONFIG_SLUB=y
# CONFIG_SLOB is not setCONFIG_PROFILING=yCONFIG_TRACEPOINTS=yCONFIG_MARKERS=yCONFIG_OPROFILE=yCONFIG_OPROFILE_IBS=yCONFIG_HAVE_OPROFILE=yCONFIG_KPROBES=yCONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=yCONFIG_KRETPROBES=yCONFIG_HAVE_IOREMAP_PROT=yCONFIG_HAVE_KPROBES=yCONFIG_HAVE_KRETPROBES=yCONFIG_HAVE_ARCH_TRACEHOOK=y
# CONFIG_HAVE_DMA_ATTRS is not setCONFIG_USE_GENERIC_SMP_HELPERS=y
# CONFIG_HAVE_CLK is not setCONFIG_HAVE_DYN_ARRAY=yCONFIG_PROC_PAGE_MONITOR=yCONFIG_HAVE_GENERIC_DMA_COHERENT=yCONFIG_SLABINFO=yCONFIG_RT_MUTEXES=y
# CONFIG_TINY_SHMEM is not setCONFIG_BASE_SMALL=0CONFIG_MODULES=yCONFIG_MODULE_FORCE_LOAD=yCONFIG_MODULE_UNLOAD=yCONFIG_MODULE_FORCE_UNLOAD=yCONFIG_MODVERSIONS=yCONFIG_MODULE_SRCVERSION_ALL=yCONFIG_KMOD=yCONFIG_STOP_MACHINE=yCONFIG_BLOCK=yCONFIG_LBD=yCONFIG_BLK_DEV_IO_TRACE=yCONFIG_LSF=yCONFIG_BLK_DEV_BSG=yCONFIG_BLK_DEV_INTEGRITY=y
#
# IO Schedulers
#CONFIG_IOSCHED_NOOP=yCONFIG_IOSCHED_AS=yCONFIG_IOSCHED_DEADLINE=yCONFIG_IOSCHED_CFQ=y
# CONFIG_DEFAULT_AS is not set
# CONFIG_DEFAULT_DEADLINE is not setCONFIG_DEFAULT_CFQ=y
# CONFIG_DEFAULT_NOOP is not setCONFIG_DEFAULT_IOSCHED="cfq"CONFIG_PREEMPT_NOTIFIERS=yCONFIG_CLASSIC_RCU=y
#
# Processor type and features
#CONFIG_TICK_ONESHOT=yCONFIG_NO_HZ=yCONFIG_HIGH_RES_TIMERS=yCONFIG_GENERIC_CLOCKEVENTS_BUILD=yCONFIG_SMP_SUPPORT=yCONFIG_HAVE_SPARSE_IRQ=yCONFIG_X86_FIND_SMP_CONFIG=yCONFIG_X86_MPPARSE=yCONFIG_UP_WANTED_1=yCONFIG_UP_WANTED_2=yCONFIG_UP_WANTED=yCONFIG_SMP=yCONFIG_X86_PC=y
# CONFIG_X86_ELAN is not set
# CONFIG_X86_VOYAGER is not set
# CONFIG_X86_GENERICARCH is not set
# CONFIG_X86_VSMP is not setCONFIG_X86_RDC321X=yCONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=yCONFIG_PARAVIRT_GUEST=yCONFIG_VMI=yCONFIG_KVM_CLOCK=yCONFIG_KVM_GUEST=yCONFIG_LGUEST_GUEST=yCONFIG_PARAVIRT=yCONFIG_PARAVIRT_CLOCK=yCONFIG_PARAVIRT_DEBUG=yCONFIG_MEMTEST=y
# CONFIG_M386 is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not setCONFIG_M686=y
# CONFIG_MPENTIUMII is not set
# CONFIG_MPENTIUMIII is not set
# CONFIG_MPENTIUMM is not set
# CONFIG_MPENTIUM4 is not set
# CONFIG_MK6 is not set
# CONFIG_MK7 is not set
# CONFIG_MK8 is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MEFFICEON is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MGEODEGX1 is not set
# CONFIG_MGEODE_LX is not set
# CONFIG_MCYRIXIII is not set
# CONFIG_MVIAC3_2 is not set
# CONFIG_MVIAC7 is not set
# CONFIG_MPSC is not set
# CONFIG_MCORE2 is not set
# CONFIG_GENERIC_CPU is not setCONFIG_X86_GENERIC=yCONFIG_X86_CPU=yCONFIG_X86_CMPXCHG=yCONFIG_X86_L1_CACHE_SHIFT=7CONFIG_X86_XADD=yCONFIG_X86_PPRO_FENCE=yCONFIG_X86_WP_WORKS_OK=yCONFIG_X86_INVLPG=yCONFIG_X86_BSWAP=yCONFIG_X86_POPAD_OK=yCONFIG_X86_INTEL_USERCOPY=yCONFIG_X86_USE_PPRO_CHECKSUM=yCONFIG_X86_TSC=yCONFIG_X86_CMOV=yCONFIG_X86_MINIMUM_CPU_FAMILY=4CONFIG_X86_DEBUGCTLMSR=yCONFIG_PROCESSOR_SELECT=yCONFIG_CPU_SUP_INTEL=yCONFIG_CPU_SUP_CYRIX_32=yCONFIG_CPU_SUP_AMD=yCONFIG_CPU_SUP_CENTAUR_32=yCONFIG_CPU_SUP_TRANSMETA_32=yCONFIG_CPU_SUP_UMC_32=yCONFIG_X86_DS=yCONFIG_X86_PTRACE_BTS=yCONFIG_HPET_TIMER=yCONFIG_HPET_EMULATE_RTC=yCONFIG_DMI=y
# CONFIG_IOMMU_HELPER is not setCONFIG_NR_CPUS=8CONFIG_SCHED_SMT=yCONFIG_SCHED_MC=yCONFIG_PREEMPT_NONE=y
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT is not setCONFIG_X86_LOCAL_APIC=yCONFIG_X86_IO_APIC=yCONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS=yCONFIG_X86_MCE=yCONFIG_X86_MCE_NONFATAL=yCONFIG_X86_MCE_P4THERMAL=yCONFIG_VM86=yCONFIG_TOSHIBA=yCONFIG_I8K=yCONFIG_X86_REBOOTFIXUPS=yCONFIG_MICROCODE=yCONFIG_MICROCODE_INTEL=yCONFIG_MICROCODE_AMD=yCONFIG_MICROCODE_OLD_INTERFACE=yCONFIG_X86_MSR=yCONFIG_X86_CPUID=y
# CONFIG_NOHIGHMEM is not setCONFIG_HIGHMEM4G=y
# CONFIG_HIGHMEM64G is not setCONFIG_VMSPLIT_3G=y
# CONFIG_VMSPLIT_3G_OPT is not set
# CONFIG_VMSPLIT_2G is not set
# CONFIG_VMSPLIT_2G_OPT is not set
# CONFIG_VMSPLIT_1G is not setCONFIG_PAGE_OFFSET=0xC0000000CONFIG_HIGHMEM=y
# CONFIG_ARCH_PHYS_ADDR_T_64BIT is not setCONFIG_ARCH_FLATMEM_ENABLE=yCONFIG_ARCH_SPARSEMEM_ENABLE=yCONFIG_ARCH_SELECT_MEMORY_MODEL=yCONFIG_ILLEGAL_POINTER_VALUE=0CONFIG_SELECT_MEMORY_MODEL=yCONFIG_FLATMEM_MANUAL=y
# CONFIG_DISCONTIGMEM_MANUAL is not set
# CONFIG_SPARSEMEM_MANUAL is not setCONFIG_FLATMEM=yCONFIG_FLAT_NODE_MEM_MAP=yCONFIG_SPARSEMEM_STATIC=y
# CONFIG_SPARSEMEM_VMEMMAP_ENABLE is not setCONFIG_PAGEFLAGS_EXTENDED=yCONFIG_SPLIT_PTLOCK_CPUS=4CONFIG_RESOURCES_64BIT=y
# CONFIG_PHYS_ADDR_T_64BIT is not setCONFIG_ZONE_DMA_FLAG=1CONFIG_BOUNCE=yCONFIG_VIRT_TO_BUS=yCONFIG_MMU_NOTIFIER=yCONFIG_HIGHPTE=yCONFIG_X86_CHECK_BIOS_CORRUPTION=yCONFIG_X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK=yCONFIG_X86_RESERVE_LOW_64K=yCONFIG_MATH_EMULATION=yCONFIG_MTRR=yCONFIG_MTRR_SANITIZER=yCONFIG_MTRR_SANITIZER_ENABLE_DEFAULT=0CONFIG_MTRR_SANITIZER_SPARE_REG_NR_DEFAULT=1CONFIG_X86_PAT=yCONFIG_EFI=yCONFIG_SECCOMP=y
# CONFIG_HZ_100 is not setCONFIG_HZ_250=y
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not setCONFIG_HZ=250CONFIG_SCHED_HRTICK=yCONFIG_KEXEC=yCONFIG_CRASH_DUMP=yCONFIG_KEXEC_JUMP=yCONFIG_PHYSICAL_START=0x100000CONFIG_RELOCATABLE=yCONFIG_PHYSICAL_ALIGN=0x100000CONFIG_HOTPLUG_CPU=yCONFIG_COMPAT_VDSO=yCONFIG_CMDLINE_BOOL=yCONFIG_CMDLINE=""CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
#
# Power management options
#CONFIG_PM=yCONFIG_PM_DEBUG=yCONFIG_PM_VERBOSE=yCONFIG_CAN_PM_TRACE=yCONFIG_PM_TRACE=yCONFIG_PM_TRACE_RTC=yCONFIG_PM_SLEEP_SMP=yCONFIG_PM_SLEEP=yCONFIG_SUSPEND=yCONFIG_SUSPEND_FREEZER=yCONFIG_HIBERNATION=yCONFIG_PM_STD_PARTITION=""CONFIG_ACPI=yCONFIG_ACPI_SLEEP=yCONFIG_ACPI_PROCFS=yCONFIG_ACPI_PROCFS_POWER=yCONFIG_ACPI_SYSFS_POWER=yCONFIG_ACPI_PROC_EVENT=yCONFIG_ACPI_AC=yCONFIG_ACPI_BATTERY=yCONFIG_ACPI_BUTTON=yCONFIG_ACPI_VIDEO=yCONFIG_ACPI_FAN=yCONFIG_ACPI_DOCK=yCONFIG_ACPI_BAY=yCONFIG_ACPI_PROCESSOR=yCONFIG_ACPI_HOTPLUG_CPU=yCONFIG_ACPI_THERMAL=yCONFIG_ACPI_WMI=yCONFIG_ACPI_ASUS=yCONFIG_ACPI_TOSHIBA=y
# CONFIG_ACPI_CUSTOM_DSDT is not setCONFIG_ACPI_BLACKLIST_YEAR=0CONFIG_ACPI_DEBUG=yCONFIG_ACPI_DEBUG_FUNC_TRACE=yCONFIG_ACPI_EC=yCONFIG_ACPI_PCI_SLOT=yCONFIG_ACPI_POWER=yCONFIG_ACPI_SYSTEM=yCONFIG_X86_PM_TIMER=yCONFIG_ACPI_CONTAINER=yCONFIG_ACPI_SBS=yCONFIG_X86_APM_BOOT=yCONFIG_APM=yCONFIG_APM_IGNORE_USER_SUSPEND=yCONFIG_APM_DO_ENABLE=yCONFIG_APM_CPU_IDLE=yCONFIG_APM_DISPLAY_BLANK=yCONFIG_APM_ALLOW_INTS=yCONFIG_APM_REAL_MODE_POWER_OFF=y
#
# CPU Frequency scaling
#CONFIG_CPU_FREQ=yCONFIG_CPU_FREQ_TABLE=y CONFIG_CPU_FREQ_DEBUG=y CONFIG_CPU_FREQ_STAT=y CONFIG_CPU_FREQ_STAT_DETAILS=y CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set CONFIG_CPU_FREQ_GOV_PERFORMANCE=y CONFIG_CPU_FREQ_GOV_POWERSAVE=y CONFIG_CPU_FREQ_GOV_USERSPACE=y CONFIG_CPU_FREQ_GOV_ONDEMAND=y CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
#
# CPUFreq processor drivers
#CONFIG_X86_ACPI_CPUFREQ=yCONFIG_X86_POWERNOW_K6=yCONFIG_X86_POWERNOW_K7=yCONFIG_X86_POWERNOW_K7_ACPI=yCONFIG_X86_POWERNOW_K8=yCONFIG_X86_POWERNOW_K8_ACPI=yCONFIG_X86_GX_SUSPMOD=yCONFIG_X86_SPEEDSTEP_CENTRINO=yCONFIG_X86_SPEEDSTEP_CENTRINO_TABLE=yCONFIG_X86_SPEEDSTEP_ICH=yCONFIG_X86_SPEEDSTEP_SMI=yCONFIG_X86_P4_CLOCKMOD=yCONFIG_X86_CPUFREQ_NFORCE2=yCONFIG_X86_LONGRUN=yCONFIG_X86_LONGHAUL=yCONFIG_X86_E_POWERSAVER=y
#
# shared options # CONFIG_X86_ACPI_CPUFREQ_PROC_INTF=y CONFIG_X86_SPEEDSTEP_LIB=y CONFIG_X86_SPEEDSTEP_RELAXED_CAP_CHECK=y CONFIG_CPU_IDLE=y CONFIG_CPU_IDLE_GOV_LADDER=y CONFIG_CPU_IDLE_GOV_MENU=y
#
# Bus options (PCI etc.)
#CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GOMMCONFIG is not set
# CONFIG_PCI_GODIRECT is not set
# CONFIG_PCI_GOOLPC is not setCONFIG_PCI_GOANY=yCONFIG_PCI_BIOS=yCONFIG_PCI_DIRECT=yCONFIG_PCI_MMCONFIG=yCONFIG_PCI_OLPC=yCONFIG_PCI_DOMAINS=yCONFIG_PCIEPORTBUS=yCONFIG_HOTPLUG_PCI_PCIE=yCONFIG_PCIEAER=yCONFIG_PCIEASPM=yCONFIG_PCIEASPM_DEBUG=yCONFIG_ARCH_SUPPORTS_MSI=yCONFIG_PCI_MSI=yCONFIG_PCI_LEGACY=yCONFIG_PCI_DEBUG=yCONFIG_HT_IRQ=yCONFIG_ISA_DMA_API=yCONFIG_ISA=yCONFIG_EISA=yCONFIG_EISA_VLB_PRIMING=yCONFIG_EISA_PCI_EISA=yCONFIG_EISA_VIRTUAL_ROOT=yCONFIG_EISA_NAMES=yCONFIG_MCA=yCONFIG_MCA_LEGACY=yCONFIG_MCA_PROC_FS=y
CONFIG_SCx200=y
CONFIG_SCx200HR_TIMER=yCONFIG_OLPC=yCONFIG_K8_NB=yCONFIG_PCCARD=yCONFIG_PCMCIA_DEBUG=yCONFIG_PCMCIA=yCONFIG_PCMCIA_LOAD_CIS=yCONFIG_PCMCIA_IOCTL=yCONFIG_CARDBUS=y
#
# PC-card bridges
#CONFIG_YENTA=yCONFIG_YENTA_O2=yCONFIG_YENTA_RICOH=yCONFIG_YENTA_TI=yCONFIG_YENTA_ENE_TUNE=yCONFIG_YENTA_TOSHIBA=yCONFIG_PD6729=yCONFIG_I82092=yCONFIG_I82365=yCONFIG_TCIC=yCONFIG_PCMCIA_PROBE=yCONFIG_PCCARD_NONSTATIC=yCONFIG_HOTPLUG_PCI=yCONFIG_HOTPLUG_PCI_FAKE=yCONFIG_HOTPLUG_PCI_COMPAQ=yCONFIG_HOTPLUG_PCI_COMPAQ_NVRAM=yCONFIG_HOTPLUG_PCI_IBM=yCONFIG_HOTPLUG_PCI_ACPI=yCONFIG_HOTPLUG_PCI_ACPI_IBM=yCONFIG_HOTPLUG_PCI_CPCI=yCONFIG_HOTPLUG_PCI_CPCI_ZT5550=yCONFIG_HOTPLUG_PCI_CPCI_GENERIC=yCONFIG_HOTPLUG_PCI_SHPC=y
#
# Executable file formats / Emulations
#CONFIG_BINFMT_ELF=yCONFIG_BINFMT_AOUT=yCONFIG_BINFMT_MISC=yCONFIG_NET=y
#
# Networking options
#CONFIG_PACKET=yCONFIG_PACKET_MMAP=yCONFIG_UNIX=yCONFIG_XFRM=yCONFIG_XFRM_USER=yCONFIG_XFRM_SUB_POLICY=yCONFIG_XFRM_MIGRATE=yCONFIG_XFRM_STATISTICS=yCONFIG_XFRM_IPCOMP=yCONFIG_NET_KEY=yCONFIG_NET_KEY_MIGRATE=yCONFIG_INET=yCONFIG_IP_MULTICAST=yCONFIG_IP_ADVANCED_ROUTER=yCONFIG_ASK_IP_FIB_HASH=y
# CONFIG_IP_FIB_TRIE is not setCONFIG_IP_FIB_HASH=yCONFIG_IP_MULTIPLE_TABLES=yCONFIG_IP_ROUTE_MULTIPATH=yCONFIG_IP_ROUTE_VERBOSE=yCONFIG_IP_PNP=yCONFIG_IP_PNP_DHCP=yCONFIG_IP_PNP_BOOTP=yCONFIG_IP_PNP_RARP=yCONFIG_NET_IPIP=yCONFIG_NET_IPGRE=yCONFIG_NET_IPGRE_BROADCAST=yCONFIG_IP_MROUTE=yCONFIG_IP_PIMSM_V1=yCONFIG_IP_PIMSM_V2=yCONFIG_ARPD=yCONFIG_SYN_COOKIES=yCONFIG_INET_AH=yCONFIG_INET_ESP=yCONFIG_INET_IPCOMP=yCONFIG_INET_XFRM_TUNNEL=yCONFIG_INET_TUNNEL=yCONFIG_INET_XFRM_MODE_TRANSPORT=yCONFIG_INET_XFRM_MODE_TUNNEL=yCONFIG_INET_XFRM_MODE_BEET=yCONFIG_INET_LRO=yCONFIG_INET_DIAG=yCONFIG_INET_TCP_DIAG=yCONFIG_TCP_CONG_ADVANCED=yCONFIG_TCP_CONG_BIC=yCONFIG_TCP_CONG_CUBIC=yCONFIG_TCP_CONG_WESTWOOD=yCONFIG_TCP_CONG_HTCP=yCONFIG_TCP_CONG_HSTCP=yCONFIG_TCP_CONG_HYBLA=yCONFIG_TCP_CONG_VEGAS=yCONFIG_TCP_CONG_SCALABLE=yCONFIG_TCP_CONG_LP=yCONFIG_TCP_CONG_VENO=yCONFIG_TCP_CONG_YEAH=yCONFIG_TCP_CONG_ILLINOIS=y
# CONFIG_DEFAULT_BIC is not setCONFIG_DEFAULT_CUBIC=y
# CONFIG_DEFAULT_HTCP is not set
# CONFIG_DEFAULT_VEGAS is not set
# CONFIG_DEFAULT_WESTWOOD is not set
# CONFIG_DEFAULT_RENO is not setCONFIG_DEFAULT_TCP_CONG="cubic"CONFIG_TCP_MD5SIG=yCONFIG_IP_VS=yCONFIG_IP_VS_DEBUG=yCONFIG_IP_VS_TAB_BITS=12
#
# IPVS transport protocol load balancing support
#CONFIG_IP_VS_PROTO_TCP=yCONFIG_IP_VS_PROTO_UDP=yCONFIG_IP_VS_PROTO_ESP=yCONFIG_IP_VS_PROTO_AH=y
#
# IPVS scheduler
#CONFIG_IP_VS_RR=yCONFIG_IP_VS_WRR=yCONFIG_IP_VS_LC=yCONFIG_IP_VS_WLC=yCONFIG_IP_VS_LBLC=yCONFIG_IP_VS_LBLCR=yCONFIG_IP_VS_DH=yCONFIG_IP_VS_SH=yCONFIG_IP_VS_SED=yCONFIG_IP_VS_NQ=y
#
# IPVS application helper
#CONFIG_IP_VS_FTP=yCONFIG_IPV6=yCONFIG_IPV6_PRIVACY=yCONFIG_IPV6_ROUTER_PREF=yCONFIG_IPV6_ROUTE_INFO=yCONFIG_IPV6_OPTIMISTIC_DAD=yCONFIG_INET6_AH=yCONFIG_INET6_ESP=yCONFIG_INET6_IPCOMP=yCONFIG_IPV6_MIP6=yCONFIG_INET6_XFRM_TUNNEL=yCONFIG_INET6_TUNNEL=yCONFIG_INET6_XFRM_MODE_TRANSPORT=yCONFIG_INET6_XFRM_MODE_TUNNEL=yCONFIG_INET6_XFRM_MODE_BEET=yCONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION=yCONFIG_IPV6_SIT=yCONFIG_IPV6_NDISC_NODETYPE=yCONFIG_IPV6_TUNNEL=yCONFIG_IPV6_MULTIPLE_TABLES=yCONFIG_IPV6_SUBTREES=yCONFIG_IPV6_MROUTE=yCONFIG_IPV6_PIMSM_V2=yCONFIG_NETLABEL=yCONFIG_NETWORK_SECMARK=yCONFIG_NETFILTER=yCONFIG_NETFILTER_DEBUG=yCONFIG_NETFILTER_ADVANCED=yCONFIG_BRIDGE_NETFILTER=y
#
# Core Netfilter Configuration
#CONFIG_NETFILTER_NETLINK=yCONFIG_NETFILTER_NETLINK_QUEUE=yCONFIG_NETFILTER_NETLINK_LOG=yCONFIG_NF_CONNTRACK=yCONFIG_NF_CT_ACCT=yCONFIG_NF_CONNTRACK_MARK=yCONFIG_NF_CONNTRACK_SECMARK=yCONFIG_NF_CONNTRACK_EVENTS=yCONFIG_NF_CT_PROTO_DCCP=yCONFIG_NF_CT_PROTO_GRE=yCONFIG_NF_CT_PROTO_SCTP=yCONFIG_NF_CT_PROTO_UDPLITE=yCONFIG_NF_CONNTRACK_AMANDA=yCONFIG_NF_CONNTRACK_FTP=yCONFIG_NF_CONNTRACK_H323=yCONFIG_NF_CONNTRACK_IRC=yCONFIG_NF_CONNTRACK_NETBIOS_NS=yCONFIG_NF_CONNTRACK_PPTP=yCONFIG_NF_CONNTRACK_SANE=yCONFIG_NF_CONNTRACK_SIP=yCONFIG_NF_CONNTRACK_TFTP=yCONFIG_NF_CT_NETLINK=yCONFIG_NETFILTER_XTABLES=yCONFIG_NETFILTER_XT_TARGET_CLASSIFY=yCONFIG_NETFILTER_XT_TARGET_CONNMARK=yCONFIG_NETFILTER_XT_TARGET_DSCP=yCONFIG_NETFILTER_XT_TARGET_MARK=yCONFIG_NETFILTER_XT_TARGET_NFQUEUE=yCONFIG_NETFILTER_XT_TARGET_NFLOG=yCONFIG_NETFILTER_XT_TARGET_NOTRACK=yCONFIG_NETFILTER_XT_TARGET_RATEEST=yCONFIG_NETFILTER_XT_TARGET_TRACE=yCONFIG_NETFILTER_XT_TARGET_SECMARK=yCONFIG_NETFILTER_XT_TARGET_CONNSECMARK=yCONFIG_NETFILTER_XT_TARGET_TCPMSS=yCONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP=yCONFIG_NETFILTER_XT_MATCH_COMMENT=yCONFIG_NETFILTER_XT_MATCH_CONNBYTES=yCONFIG_NETFILTER_XT_MATCH_CONNLIMIT=yCONFIG_NETFILTER_XT_MATCH_CONNMARK=yCONFIG_NETFILTER_XT_MATCH_CONNTRACK=yCONFIG_NETFILTER_XT_MATCH_DCCP=yCONFIG_NETFILTER_XT_MATCH_DSCP=yCONFIG_NETFILTER_XT_MATCH_ESP=yCONFIG_NETFILTER_XT_MATCH_HELPER=yCONFIG_NETFILTER_XT_MATCH_IPRANGE=yCONFIG_NETFILTER_XT_MATCH_LENGTH=yCONFIG_NETFILTER_XT_MATCH_LIMIT=yCONFIG_NETFILTER_XT_MATCH_MAC=yCONFIG_NETFILTER_XT_MATCH_MARK=yCONFIG_NETFILTER_XT_MATCH_OWNER=yCONFIG_NETFILTER_XT_MATCH_POLICY=yCONFIG_NETFILTER_XT_MATCH_MULTIPORT=yCONFIG_NETFILTER_XT_MATCH_PHYSDEV=yCONFIG_NETFILTER_XT_MATCH_PKTTYPE=yCONFIG_NETFILTER_XT_MATCH_QUOTA=yCONFIG_NETFILTER_XT_MATCH_RATEEST=yCONFIG_NETFILTER_XT_MATCH_REALM=yCONFIG_NETFILTER_XT_MATCH_SCTP=yCONFIG_NETFILTER_XT_MATCH_STATE=yCONFIG_NETFILTER_XT_MATCH_STATISTIC=yCONFIG_NETFILTER_XT_MATCH_STRING=yCONFIG_NETFILTER_XT_MATCH_TCPMSS=yCONFIG_NETFILTER_XT_MATCH_TIME=yCONFIG_NETFILTER_XT_MATCH_U32=yCONFIG_NETFILTER_XT_MATCH_HASHLIMIT=y
#
# IP: Netfilter Configuration
#CONFIG_NF_CONNTRACK_IPV4=yCONFIG_NF_CONNTRACK_PROC_COMPAT=yCONFIG_IP_NF_QUEUE=yCONFIG_IP_NF_IPTABLES=yCONFIG_IP_NF_MATCH_RECENT=yCONFIG_IP_NF_MATCH_ECN=yCONFIG_IP_NF_MATCH_AH=yCONFIG_IP_NF_MATCH_TTL=yCONFIG_IP_NF_MATCH_ADDRTYPE=yCONFIG_IP_NF_FILTER=yCONFIG_IP_NF_TARGET_REJECT=yCONFIG_IP_NF_TARGET_LOG=yCONFIG_IP_NF_TARGET_ULOG=yCONFIG_NF_NAT=yCONFIG_NF_NAT_NEEDED=yCONFIG_IP_NF_TARGET_MASQUERADE=yCONFIG_IP_NF_TARGET_REDIRECT=yCONFIG_IP_NF_TARGET_NETMAP=yCONFIG_NF_NAT_SNMP_BASIC=yCONFIG_NF_NAT_PROTO_DCCP=yCONFIG_NF_NAT_PROTO_GRE=yCONFIG_NF_NAT_PROTO_UDPLITE=yCONFIG_NF_NAT_PROTO_SCTP=yCONFIG_NF_NAT_FTP=yCONFIG_NF_NAT_IRC=yCONFIG_NF_NAT_TFTP=yCONFIG_NF_NAT_AMANDA=yCONFIG_NF_NAT_PPTP=yCONFIG_NF_NAT_H323=yCONFIG_NF_NAT_SIP=yCONFIG_IP_NF_MANGLE=yCONFIG_IP_NF_TARGET_ECN=yCONFIG_IP_NF_TARGET_TTL=yCONFIG_IP_NF_TARGET_CLUSTERIP=yCONFIG_IP_NF_RAW=yCONFIG_IP_NF_SECURITY=yCONFIG_IP_NF_ARPTABLES=yCONFIG_IP_NF_ARPFILTER=yCONFIG_IP_NF_ARP_MANGLE=y
#
# IPv6: Netfilter Configuration
#CONFIG_NF_CONNTRACK_IPV6=yCONFIG_IP6_NF_QUEUE=yCONFIG_IP6_NF_IPTABLES=yCONFIG_IP6_NF_MATCH_RT=yCONFIG_IP6_NF_MATCH_OPTS=yCONFIG_IP6_NF_MATCH_FRAG=yCONFIG_IP6_NF_MATCH_HL=yCONFIG_IP6_NF_MATCH_IPV6HEADER=yCONFIG_IP6_NF_MATCH_AH=yCONFIG_IP6_NF_MATCH_MH=yCONFIG_IP6_NF_MATCH_EUI64=yCONFIG_IP6_NF_FILTER=yCONFIG_IP6_NF_TARGET_LOG=yCONFIG_IP6_NF_TARGET_REJECT=yCONFIG_IP6_NF_MANGLE=yCONFIG_IP6_NF_TARGET_HL=yCONFIG_IP6_NF_RAW=yCONFIG_IP6_NF_SECURITY=y
#
# DECnet: Netfilter Configuration
#CONFIG_DECNET_NF_GRABULATOR=y
#
# Bridge: Netfilter Configuration
#CONFIG_BRIDGE_NF_EBTABLES=yCONFIG_BRIDGE_EBT_BROUTE=yCONFIG_BRIDGE_EBT_T_FILTER=yCONFIG_BRIDGE_EBT_T_NAT=yCONFIG_BRIDGE_EBT_802_3=yCONFIG_BRIDGE_EBT_AMONG=yCONFIG_BRIDGE_EBT_ARP=yCONFIG_BRIDGE_EBT_IP=yCONFIG_BRIDGE_EBT_IP6=yCONFIG_BRIDGE_EBT_LIMIT=yCONFIG_BRIDGE_EBT_MARK=yCONFIG_BRIDGE_EBT_PKTTYPE=yCONFIG_BRIDGE_EBT_STP=yCONFIG_BRIDGE_EBT_VLAN=yCONFIG_BRIDGE_EBT_ARPREPLY=yCONFIG_BRIDGE_EBT_DNAT=yCONFIG_BRIDGE_EBT_MARK_T=yCONFIG_BRIDGE_EBT_REDIRECT=yCONFIG_BRIDGE_EBT_SNAT=yCONFIG_BRIDGE_EBT_LOG=yCONFIG_BRIDGE_EBT_ULOG=yCONFIG_BRIDGE_EBT_NFLOG=yCONFIG_IP_DCCP=yCONFIG_INET_DCCP_DIAG=yCONFIG_IP_DCCP_ACKVEC=y
#
# DCCP CCIDs Configuration (EXPERIMENTAL)
#CONFIG_IP_DCCP_CCID2=yCONFIG_IP_DCCP_CCID2_DEBUG=yCONFIG_IP_DCCP_CCID3=yCONFIG_IP_DCCP_CCID3_DEBUG=yCONFIG_IP_DCCP_CCID3_RTO=100CONFIG_IP_DCCP_TFRC_LIB=yCONFIG_IP_DCCP_TFRC_DEBUG=y
#
# DCCP Kernel Hacking
#CONFIG_IP_DCCP_DEBUG=yCONFIG_NET_DCCPPROBE=yCONFIG_IP_SCTP=yCONFIG_SCTP_DBG_MSG=yCONFIG_SCTP_DBG_OBJCNT=y
# CONFIG_SCTP_HMAC_NONE is not set
# CONFIG_SCTP_HMAC_SHA1 is not setCONFIG_SCTP_HMAC_MD5=yCONFIG_TIPC=yCONFIG_TIPC_ADVANCED=yCONFIG_TIPC_ZONES=3CONFIG_TIPC_CLUSTERS=1CONFIG_TIPC_NODES=255CONFIG_TIPC_SLAVE_NODES=0CONFIG_TIPC_PORTS=8191CONFIG_TIPC_LOG=0CONFIG_TIPC_DEBUG=yCONFIG_ATM=yCONFIG_ATM_CLIP=yCONFIG_ATM_CLIP_NO_ICMP=yCONFIG_ATM_LANE=yCONFIG_ATM_MPOA=yCONFIG_ATM_BR2684=yCONFIG_ATM_BR2684_IPFILTER=yCONFIG_STP=yCONFIG_GARP=yCONFIG_BRIDGE=yCONFIG_VLAN_8021Q=yCONFIG_VLAN_8021Q_GVRP=yCONFIG_DECNET=yCONFIG_DECNET_ROUTER=yCONFIG_LLC=yCONFIG_LLC2=yCONFIG_IPX=yCONFIG_IPX_INTERN=yCONFIG_ATALK=yCONFIG_DEV_APPLETALK=yCONFIG_LTPC=yCONFIG_IPDDP=yCONFIG_IPDDP_ENCAP=yCONFIG_IPDDP_DECAP=yCONFIG_X25=yCONFIG_LAPB=yCONFIG_ECONET=yCONFIG_ECONET_AUNUDP=yCONFIG_ECONET_NATIVE=yCONFIG_WAN_ROUTER=yCONFIG_NET_SCHED=y
#
# Queueing/Scheduling
#CONFIG_NET_SCH_CBQ=yCONFIG_NET_SCH_HTB=yCONFIG_NET_SCH_HFSC=yCONFIG_NET_SCH_ATM=yCONFIG_NET_SCH_PRIO=yCONFIG_NET_SCH_RED=yCONFIG_NET_SCH_SFQ=yCONFIG_NET_SCH_TEQL=yCONFIG_NET_SCH_TBF=yCONFIG_NET_SCH_GRED=yCONFIG_NET_SCH_DSMARK=yCONFIG_NET_SCH_NETEM=yCONFIG_NET_SCH_INGRESS=y
#
# Classification
#CONFIG_NET_CLS=yCONFIG_NET_CLS_BASIC=yCONFIG_NET_CLS_TCINDEX=yCONFIG_NET_CLS_ROUTE4=yCONFIG_NET_CLS_ROUTE=yCONFIG_NET_CLS_FW=yCONFIG_NET_CLS_U32=yCONFIG_CLS_U32_PERF=yCONFIG_CLS_U32_MARK=yCONFIG_NET_CLS_RSVP=yCONFIG_NET_CLS_RSVP6=yCONFIG_NET_CLS_FLOW=yCONFIG_NET_EMATCH=yCONFIG_NET_EMATCH_STACK=32CONFIG_NET_EMATCH_CMP=yCONFIG_NET_EMATCH_NBYTE=yCONFIG_NET_EMATCH_U32=yCONFIG_NET_EMATCH_META=yCONFIG_NET_EMATCH_TEXT=yCONFIG_NET_CLS_ACT=yCONFIG_NET_ACT_POLICE=yCONFIG_NET_ACT_GACT=yCONFIG_GACT_PROB=yCONFIG_NET_ACT_MIRRED=yCONFIG_NET_ACT_IPT=yCONFIG_NET_ACT_NAT=yCONFIG_NET_ACT_PEDIT=yCONFIG_NET_ACT_SIMP=yCONFIG_NET_CLS_IND=yCONFIG_NET_SCH_FIFO=y
#
# Network testing
#CONFIG_NET_PKTGEN=yCONFIG_NET_TCPPROBE=yCONFIG_HAMRADIO=y
#
# Packet Radio protocols
#CONFIG_AX25=yCONFIG_AX25_DAMA_SLAVE=yCONFIG_NETROM=yCONFIG_ROSE=y
#
# AX.25 network device drivers
#CONFIG_MKISS=yCONFIG_6PACK=yCONFIG_BPQETHER=yCONFIG_SCC=yCONFIG_SCC_DELAY=yCONFIG_SCC_TRXECHO=yCONFIG_BAYCOM_SER_FDX=yCONFIG_BAYCOM_SER_HDX=yCONFIG_BAYCOM_PAR=yCONFIG_BAYCOM_EPP=yCONFIG_YAM=yCONFIG_CAN=yCONFIG_CAN_RAW=yCONFIG_CAN_BCM=y
#
# CAN Device Drivers
#CONFIG_CAN_VCAN=yCONFIG_CAN_DEBUG_DEVICES=yCONFIG_IRDA=y
#
# IrDA protocols
#CONFIG_IRLAN=yCONFIG_IRNET=yCONFIG_IRCOMM=yCONFIG_IRDA_ULTRA=y
#
# IrDA options
#CONFIG_IRDA_CACHE_LAST_LSAP=yCONFIG_IRDA_FAST_RR=yCONFIG_IRDA_DEBUG=y
#
# Infrared-port device drivers
#
#
# SIR device drivers
#CONFIG_IRTTY_SIR=y
#
# Dongle support
#CONFIG_DONGLE=yCONFIG_ESI_DONGLE=yCONFIG_ACTISYS_DONGLE=yCONFIG_TEKRAM_DONGLE=yCONFIG_TOIM3232_DONGLE=yCONFIG_LITELINK_DONGLE=yCONFIG_MA600_DONGLE=yCONFIG_GIRBIL_DONGLE=yCONFIG_MCP2120_DONGLE=yCONFIG_OLD_BELKIN_DONGLE=yCONFIG_ACT200L_DONGLE=yCONFIG_KINGSUN_DONGLE=yCONFIG_KSDAZZLE_DONGLE=yCONFIG_KS959_DONGLE=y
#
# FIR device drivers
#CONFIG_USB_IRDA=yCONFIG_SIGMATEL_FIR=yCONFIG_NSC_FIR=yCONFIG_WINBOND_FIR=yCONFIG_TOSHIBA_FIR=yCONFIG_SMC_IRCC_FIR=yCONFIG_ALI_FIR=yCONFIG_VLSI_FIR=yCONFIG_VIA_FIR=yCONFIG_MCS_FIR=yCONFIG_BT=yCONFIG_BT_L2CAP=yCONFIG_BT_SCO=yCONFIG_BT_RFCOMM=yCONFIG_BT_RFCOMM_TTY=yCONFIG_BT_BNEP=yCONFIG_BT_BNEP_MC_FILTER=yCONFIG_BT_BNEP_PROTO_FILTER=yCONFIG_BT_CMTP=yCONFIG_BT_HIDP=y
#
# Bluetooth device drivers
#CONFIG_BT_HCIBTUSB=yCONFIG_BT_HCIBTSDIO=yCONFIG_BT_HCIUART=yCONFIG_BT_HCIUART_H4=yCONFIG_BT_HCIUART_BCSP=yCONFIG_BT_HCIUART_LL=yCONFIG_BT_HCIBCM203X=yCONFIG_BT_HCIBPA10X=yCONFIG_BT_HCIBFUSB=yCONFIG_BT_HCIDTL1=yCONFIG_BT_HCIBT3C=yCONFIG_BT_HCIBLUECARD=yCONFIG_BT_HCIBTUART=yCONFIG_BT_HCIVHCI=yCONFIG_AF_RXRPC=yCONFIG_AF_RXRPC_DEBUG=yCONFIG_RXKAD=yCONFIG_FIB_RULES=y
#
# Wireless
#CONFIG_CFG80211=yCONFIG_NL80211=yCONFIG_WIRELESS_EXT=yCONFIG_WIRELESS_EXT_SYSFS=yCONFIG_MAC80211=y
#
# Rate control algorithm selection
#CONFIG_MAC80211_RC_PID=yCONFIG_MAC80211_RC_DEFAULT_PID=yCONFIG_MAC80211_RC_DEFAULT="pid"CONFIG_MAC80211_MESH=yCONFIG_MAC80211_LEDS=yCONFIG_MAC80211_DEBUGFS=yCONFIG_MAC80211_DEBUG_MENU=yCONFIG_MAC80211_DEBUG_PACKET_ALIGNMENT=yCONFIG_MAC80211_NOINLINE=yCONFIG_MAC80211_VERBOSE_DEBUG=yCONFIG_MAC80211_HT_DEBUG=yCONFIG_MAC80211_TKIP_DEBUG=yCONFIG_MAC80211_IBSS_DEBUG=yCONFIG_MAC80211_VERBOSE_PS_DEBUG=yCONFIG_MAC80211_VERBOSE_MPL_DEBUG=yCONFIG_MAC80211_LOWTX_FRAME_DUMP=yCONFIG_MAC80211_DEBUG_COUNTERS=yCONFIG_MAC80211_VERBOSE_SPECT_MGMT_DEBUG=yCONFIG_IEEE80211=yCONFIG_IEEE80211_DEBUG=yCONFIG_IEEE80211_CRYPT_WEP=yCONFIG_IEEE80211_CRYPT_CCMP=yCONFIG_IEEE80211_CRYPT_TKIP=yCONFIG_RFKILL=yCONFIG_RFKILL_INPUT=yCONFIG_RFKILL_LEDS=yCONFIG_NET_9P=yCONFIG_NET_9P_VIRTIO=yCONFIG_NET_9P_DEBUG=y
#
# Device Drivers
#
#
# Generic Driver Options
#CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"CONFIG_STANDALONE=yCONFIG_PREVENT_FIRMWARE_BUILD=yCONFIG_FW_LOADER=yCONFIG_FIRMWARE_IN_KERNEL=yCONFIG_EXTRA_FIRMWARE=""CONFIG_DEBUG_DRIVER=yCONFIG_DEBUG_DEVRES=y
# CONFIG_SYS_HYPERVISOR is not setCONFIG_CONNECTOR=yCONFIG_PROC_EVENTS=yCONFIG_PARPORT=yCONFIG_PARPORT_PC=yCONFIG_PARPORT_SERIAL=yCONFIG_PARPORT_PC_FIFO=yCONFIG_PARPORT_PC_SUPERIO=yCONFIG_PARPORT_PC_PCMCIA=y
# CONFIG_PARPORT_GSC is not setCONFIG_PARPORT_AX88796=yCONFIG_PARPORT_1284=yCONFIG_PARPORT_NOT_PC=yCONFIG_PNP=yCONFIG_PNP_DEBUG=y
#
# Protocols
#CONFIG_ISAPNP=yCONFIG_PNPBIOS=yCONFIG_PNPBIOS_PROC_FS=yCONFIG_PNPACPI=yCONFIG_BLK_DEV=yCONFIG_BLK_DEV_FD=yCONFIG_BLK_DEV_XD=yCONFIG_BLK_CPQ_DA=yCONFIG_BLK_CPQ_CISS_DA=yCONFIG_CISS_SCSI_TAPE=yCONFIG_BLK_DEV_DAC960=yCONFIG_BLK_DEV_UMEM=y
# CONFIG_BLK_DEV_COW_COMMON is not setCONFIG_BLK_DEV_LOOP=yCONFIG_BLK_DEV_CRYPTOLOOP=yCONFIG_BLK_DEV_NBD=yCONFIG_BLK_DEV_SX8=yCONFIG_BLK_DEV_UB=yCONFIG_BLK_DEV_RAM=yCONFIG_BLK_DEV_RAM_COUNT=16CONFIG_BLK_DEV_RAM_SIZE=4096CONFIG_BLK_DEV_XIP=yCONFIG_CDROM_PKTCDVD=yCONFIG_CDROM_PKTCDVD_BUFFERS=8CONFIG_CDROM_PKTCDVD_WCACHE=yCONFIG_ATA_OVER_ETH=yCONFIG_VIRTIO_BLK=yCONFIG_BLK_DEV_HD=yCONFIG_MISC_DEVICES=yCONFIG_IBM_ASM=yCONFIG_PHANTOM=yCONFIG_EEPROM_93CX6=yCONFIG_SGI_IOC4=yCONFIG_TIFM_CORE=yCONFIG_TIFM_7XX1=yCONFIG_ACER_WMI=yCONFIG_FUJITSU_LAPTOP=yCONFIG_FUJITSU_LAPTOP_DEBUG=yCONFIG_TC1100_WMI=yCONFIG_HP_WMI=yCONFIG_MSI_LAPTOP=yCONFIG_COMPAL_LAPTOP=yCONFIG_SONY_LAPTOP=yCONFIG_SONYPI_COMPAT=yCONFIG_THINKPAD_ACPI=yCONFIG_THINKPAD_ACPI_DEBUG=yCONFIG_THINKPAD_ACPI_BAY=yCONFIG_THINKPAD_ACPI_VIDEO=yCONFIG_THINKPAD_ACPI_HOTKEY_POLL=yCONFIG_INTEL_MENLOW=yCONFIG_EEEPC_LAPTOP=yCONFIG_ENCLOSURE_SERVICES=yCONFIG_HP_ILO=yCONFIG_HAVE_IDE=y
#
# SCSI device support
#CONFIG_RAID_ATTRS=yCONFIG_SCSI=yCONFIG_SCSI_DMA=yCONFIG_SCSI_TGT=yCONFIG_SCSI_NETLINK=yCONFIG_SCSI_PROC_FS=y
#
# SCSI support type (disk, tape, CD-ROM)
#CONFIG_BLK_DEV_SD=yCONFIG_CHR_DEV_ST=yCONFIG_CHR_DEV_OSST=yCONFIG_BLK_DEV_SR=yCONFIG_BLK_DEV_SR_VENDOR=yCONFIG_CHR_DEV_SG=yCONFIG_CHR_DEV_SCH=yCONFIG_SCSI_ENCLOSURE=y
#
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs #CONFIG_SCSI_MULTI_LUN=yCONFIG_SCSI_CONSTANTS=yCONFIG_SCSI_LOGGING=yCONFIG_SCSI_SCAN_ASYNC=yCONFIG_SCSI_WAIT_SCAN=m
#
# SCSI Transports
#CONFIG_SCSI_SPI_ATTRS=yCONFIG_SCSI_FC_ATTRS=yCONFIG_SCSI_FC_TGT_ATTRS=yCONFIG_SCSI_ISCSI_ATTRS=yCONFIG_SCSI_SAS_ATTRS=yCONFIG_SCSI_SRP_ATTRS=yCONFIG_SCSI_SRP_TGT_ATTRS=yCONFIG_SCSI_LOWLEVEL=yCONFIG_ISCSI_TCP=yCONFIG_BLK_DEV_3W_XXXX_RAID=yCONFIG_SCSI_3W_9XXX=yCONFIG_SCSI_7000FASST=yCONFIG_SCSI_ACARD=yCONFIG_SCSI_AHA152X=yCONFIG_SCSI_AHA1542=yCONFIG_SCSI_AHA1740=yCONFIG_SCSI_AACRAID=yCONFIG_SCSI_AIC7XXX=yCONFIG_AIC7XXX_CMDS_PER_DEVICE=32CONFIG_AIC7XXX_RESET_DELAY_MS=5000CONFIG_AIC7XXX_DEBUG_ENABLE=yCONFIG_AIC7XXX_DEBUG_MASK=0CONFIG_AIC7XXX_REG_PRETTY_PRINT=yCONFIG_SCSI_AIC7XXX_OLD=yCONFIG_SCSI_AIC79XX=yCONFIG_AIC79XX_CMDS_PER_DEVICE=32CONFIG_AIC79XX_RESET_DELAY_MS=5000CONFIG_AIC79XX_DEBUG_ENABLE=yCONFIG_AIC79XX_DEBUG_MASK=0CONFIG_AIC79XX_REG_PRETTY_PRINT=yCONFIG_SCSI_DPT_I2O=yCONFIG_SCSI_ADVANSYS=yCONFIG_SCSI_IN2000=yCONFIG_SCSI_ARCMSR=yCONFIG_SCSI_ARCMSR_AER=yCONFIG_MEGARAID_NEWGEN=yCONFIG_MEGARAID_MM=yCONFIG_MEGARAID_MAILBOX=yCONFIG_MEGARAID_LEGACY=yCONFIG_MEGARAID_SAS=yCONFIG_SCSI_HPTIOP=yCONFIG_SCSI_BUSLOGIC=yCONFIG_SCSI_FLASHPOINT=yCONFIG_SCSI_DMX3191D=yCONFIG_SCSI_DTC3280=yCONFIG_SCSI_EATA=yCONFIG_SCSI_EATA_TAGGED_QUEUE=yCONFIG_SCSI_EATA_LINKED_COMMANDS=yCONFIG_SCSI_EATA_MAX_TAGS=16CONFIG_SCSI_FUTURE_DOMAIN=yCONFIG_SCSI_FD_MCS=yCONFIG_SCSI_GDTH=yCONFIG_SCSI_GENERIC_NCR5380=yCONFIG_SCSI_GENERIC_NCR5380_MMIO=yCONFIG_SCSI_GENERIC_NCR53C400=yCONFIG_SCSI_IBMMCA=yCONFIG_IBMMCA_SCSI_ORDER_STANDARD=yCONFIG_IBMMCA_SCSI_DEV_RESET=yCONFIG_SCSI_IPS=yCONFIG_SCSI_INITIO=yCONFIG_SCSI_INIA100=yCONFIG_SCSI_PPA=yCONFIG_SCSI_IMM=yCONFIG_SCSI_IZIP_EPP16=yCONFIG_SCSI_IZIP_SLOW_CTR=yCONFIG_SCSI_NCR53C406A=yCONFIG_SCSI_NCR_D700=yCONFIG_SCSI_STEX=yCONFIG_SCSI_SYM53C8XX_2=yCONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=1CONFIG_SCSI_SYM53C8XX_DEFAULT_TAGS=16CONFIG_SCSI_SYM53C8XX_MAX_TAGS=64CONFIG_SCSI_SYM53C8XX_MMIO=yCONFIG_SCSI_IPR=yCONFIG_SCSI_IPR_TRACE=yCONFIG_SCSI_IPR_DUMP=yCONFIG_SCSI_NCR_Q720=yCONFIG_SCSI_NCR53C8XX_DEFAULT_TAGS=8CONFIG_SCSI_NCR53C8XX_MAX_TAGS=32CONFIG_SCSI_NCR53C8XX_SYNC=20CONFIG_SCSI_PAS16=yCONFIG_SCSI_QLOGIC_FAS=yCONFIG_SCSI_QLOGIC_1280=yCONFIG_SCSI_QLA_FC=yCONFIG_SCSI_QLA_ISCSI=yCONFIG_SCSI_LPFC=yCONFIG_SCSI_SIM710=yCONFIG_SCSI_SYM53C416=y
CONFIG_SCSI_DC395x=yCONFIG_SCSI_DC390T=yCONFIG_SCSI_T128=yCONFIG_SCSI_U14_34F=yCONFIG_SCSI_U14_34F_TAGGED_QUEUE=yCONFIG_SCSI_U14_34F_LINKED_COMMANDS=yCONFIG_SCSI_U14_34F_MAX_TAGS=8CONFIG_SCSI_ULTRASTOR=yCONFIG_SCSI_NSP32=yCONFIG_SCSI_SRP=yCONFIG_SCSI_LOWLEVEL_PCMCIA=yCONFIG_PCMCIA_AHA152X=mCONFIG_PCMCIA_FDOMAIN=mCONFIG_PCMCIA_NINJA_SCSI=mCONFIG_PCMCIA_QLOGIC=mCONFIG_PCMCIA_SYM53C500=mCONFIG_SCSI_DH=yCONFIG_SCSI_DH_RDAC=yCONFIG_SCSI_DH_HP_SW=yCONFIG_SCSI_DH_EMC=yCONFIG_SCSI_DH_ALUA=yCONFIG_ATA=y
# CONFIG_ATA_NONSTANDARD is not setCONFIG_ATA_ACPI=yCONFIG_SATA_PMP=yCONFIG_SATA_AHCI=yCONFIG_SATA_SIL24=yCONFIG_ATA_SFF=yCONFIG_SATA_SVW=yCONFIG_ATA_PIIX=yCONFIG_SATA_MV=yCONFIG_SATA_NV=yCONFIG_PDC_ADMA=yCONFIG_SATA_QSTOR=yCONFIG_SATA_PROMISE=yCONFIG_SATA_SX4=yCONFIG_SATA_SIL=yCONFIG_SATA_SIS=yCONFIG_SATA_ULI=yCONFIG_SATA_VIA=yCONFIG_SATA_VITESSE=yCONFIG_SATA_INIC162X=yCONFIG_PATA_ACPI=yCONFIG_PATA_ALI=yCONFIG_PATA_AMD=yCONFIG_PATA_ARTOP=yCONFIG_PATA_ATIIXP=yCONFIG_PATA_CMD640_PCI=yCONFIG_PATA_CMD64X=yCONFIG_PATA_CS5520=yCONFIG_PATA_CS5530=yCONFIG_PATA_CS5535=yCONFIG_PATA_CS5536=yCONFIG_PATA_CYPRESS=yCONFIG_PATA_EFAR=yCONFIG_ATA_GENERIC=yCONFIG_PATA_HPT366=yCONFIG_PATA_HPT37X=yCONFIG_PATA_HPT3X2N=yCONFIG_PATA_HPT3X3=yCONFIG_PATA_HPT3X3_DMA=yCONFIG_PATA_ISAPNP=yCONFIG_PATA_IT821X=yCONFIG_PATA_IT8213=yCONFIG_PATA_JMICRON=yCONFIG_PATA_LEGACY=yCONFIG_PATA_TRIFLEX=yCONFIG_PATA_MARVELL=yCONFIG_PATA_MPIIX=yCONFIG_PATA_OLDPIIX=yCONFIG_PATA_NETCELL=yCONFIG_PATA_NINJA32=yCONFIG_PATA_NS87410=yCONFIG_PATA_NS87415=yCONFIG_PATA_OPTI=yCONFIG_PATA_OPTIDMA=yCONFIG_PATA_PCMCIA=yCONFIG_PATA_PDC_OLD=yCONFIG_PATA_QDI=yCONFIG_PATA_RADISYS=yCONFIG_PATA_RZ1000=yCONFIG_PATA_SC1200=yCONFIG_PATA_SERVERWORKS=yCONFIG_PATA_PDC2027X=yCONFIG_PATA_SIL680=yCONFIG_PATA_SIS=yCONFIG_PATA_VIA=yCONFIG_PATA_WINBOND=yCONFIG_PATA_WINBOND_VLB=yCONFIG_PATA_PLATFORM=yCONFIG_PATA_SCH=yCONFIG_MD=yCONFIG_BLK_DEV_MD=yCONFIG_MD_AUTODETECT=yCONFIG_MD_LINEAR=yCONFIG_MD_RAID0=yCONFIG_MD_RAID1=yCONFIG_MD_RAID10=yCONFIG_MD_RAID456=yCONFIG_MD_RAID5_RESHAPE=yCONFIG_MD_MULTIPATH=yCONFIG_MD_FAULTY=yCONFIG_BLK_DEV_DM=yCONFIG_DM_DEBUG=yCONFIG_DM_CRYPT=yCONFIG_DM_SNAPSHOT=yCONFIG_DM_MIRROR=yCONFIG_DM_ZERO=yCONFIG_DM_MULTIPATH=yCONFIG_DM_DELAY=yCONFIG_DM_UEVENT=yCONFIG_FUSION=yCONFIG_FUSION_SPI=yCONFIG_FUSION_FC=yCONFIG_FUSION_SAS=yCONFIG_FUSION_MAX_SGE=128CONFIG_FUSION_CTL=yCONFIG_FUSION_LAN=yCONFIG_FUSION_LOGGING=y
#
# IEEE 1394 (FireWire) support
#
#
# Enable only one of the two stacks, unless you know what you are doing #CONFIG_FIREWIRE=yCONFIG_FIREWIRE_OHCI=yCONFIG_FIREWIRE_OHCI_DEBUG=yCONFIG_FIREWIRE_SBP2=yCONFIG_IEEE1394=yCONFIG_IEEE1394_OHCI1394=yCONFIG_IEEE1394_PCILYNX=yCONFIG_IEEE1394_SBP2=yCONFIG_IEEE1394_SBP2_PHYS_DMA=y CONFIG_IEEE1394_ETH1394_ROM_ENTRY=y CONFIG_IEEE1394_ETH1394=yCONFIG_IEEE1394_RAWIO=yCONFIG_IEEE1394_VIDEO1394=yCONFIG_IEEE1394_DV1394=yCONFIG_IEEE1394_VERBOSEDEBUG=yCONFIG_I2O=yCONFIG_I2O_LCT_NOTIFY_ON_CHANGES=yCONFIG_I2O_EXT_ADAPTEC=yCONFIG_I2O_CONFIG=yCONFIG_I2O_CONFIG_OLD_IOCTL=yCONFIG_I2O_BUS=yCONFIG_I2O_BLOCK=yCONFIG_I2O_SCSI=yCONFIG_I2O_PROC=yCONFIG_MACINTOSH_DRIVERS=yCONFIG_MAC_EMUMOUSEBTN=yCONFIG_NETDEVICES=yCONFIG_IFB=yCONFIG_DUMMY=yCONFIG_BONDING=yCONFIG_MACVLAN=yCONFIG_EQUALIZER=yCONFIG_TUN=yCONFIG_VETH=yCONFIG_NET_SB1000=yCONFIG_ARCNET=yCONFIG_ARCNET_1201=yCONFIG_ARCNET_1051=yCONFIG_ARCNET_RAW=yCONFIG_ARCNET_CAP=y
CONFIG_ARCNET_COM90xx=y
CONFIG_ARCNET_COM90xxIO=yCONFIG_ARCNET_RIM_I=yCONFIG_ARCNET_COM20020=yCONFIG_ARCNET_COM20020_ISA=yCONFIG_ARCNET_COM20020_PCI=yCONFIG_PHYLIB=y
#
# MII PHY device drivers
#CONFIG_MARVELL_PHY=yCONFIG_DAVICOM_PHY=yCONFIG_QSEMI_PHY=yCONFIG_LXT_PHY=yCONFIG_CICADA_PHY=yCONFIG_VITESSE_PHY=yCONFIG_SMSC_PHY=yCONFIG_BROADCOM_PHY=yCONFIG_ICPLUS_PHY=yCONFIG_REALTEK_PHY=yCONFIG_FIXED_PHY=yCONFIG_MDIO_BITBANG=yCONFIG_NET_ETHERNET=yCONFIG_MII=yCONFIG_HAPPYMEAL=yCONFIG_SUNGEM=yCONFIG_CASSINI=yCONFIG_NET_VENDOR_3COM=yCONFIG_EL1=yCONFIG_EL2=yCONFIG_ELPLUS=yCONFIG_EL16=yCONFIG_EL3=yCONFIG_3C515=yCONFIG_ELMC=yCONFIG_ELMC_II=yCONFIG_VORTEX=yCONFIG_TYPHOON=yCONFIG_LANCE=yCONFIG_NET_VENDOR_SMC=yCONFIG_ULTRAMCA=yCONFIG_ULTRA=yCONFIG_ULTRA32=yCONFIG_SMC9194=yCONFIG_ENC28J60=yCONFIG_ENC28J60_WRITEVERIFY=yCONFIG_NET_VENDOR_RACAL=yCONFIG_NI52=yCONFIG_NI65=yCONFIG_NET_TULIP=yCONFIG_DE2104X=yCONFIG_TULIP=yCONFIG_TULIP_MWI=yCONFIG_TULIP_MMIO=yCONFIG_TULIP_NAPI=yCONFIG_TULIP_NAPI_HW_MITIGATION=yCONFIG_DE4X5=yCONFIG_WINBOND_840=yCONFIG_DM9102=yCONFIG_ULI526X=yCONFIG_PCMCIA_XIRCOM=yCONFIG_AT1700=yCONFIG_DEPCA=yCONFIG_HP100=yCONFIG_NET_ISA=yCONFIG_E2100=yCONFIG_EWRK3=yCONFIG_EEXPRESS=yCONFIG_EEXPRESS_PRO=yCONFIG_HPLAN=yCONFIG_LP486E=yCONFIG_ETH16I=yCONFIG_NE2000=yCONFIG_ZNET=yCONFIG_SEEQ8005=yCONFIG_NE2_MCA=yCONFIG_IBMLANA=y
# CONFIG_IBM_NEW_EMAC_ZMII is not set
# CONFIG_IBM_NEW_EMAC_RGMII is not set
# CONFIG_IBM_NEW_EMAC_TAH is not set
# CONFIG_IBM_NEW_EMAC_EMAC4 is not setCONFIG_NET_PCI=yCONFIG_PCNET32=yCONFIG_AMD8111_ETH=yCONFIG_ADAPTEC_STARFIRE=yCONFIG_AC3200=yCONFIG_APRICOT=yCONFIG_B44=yCONFIG_B44_PCI_AUTOSELECT=yCONFIG_B44_PCICORE_AUTOSELECT=yCONFIG_B44_PCI=yCONFIG_FORCEDETH=yCONFIG_FORCEDETH_NAPI=y
CONFIG_CS89x0=yCONFIG_EEPRO100=yCONFIG_E100=yCONFIG_LNE390=yCONFIG_FEALNX=yCONFIG_NATSEMI=yCONFIG_NE2K_PCI=yCONFIG_NE3210=yCONFIG_ES3210=yCONFIG_8139CP=yCONFIG_8139TOO=yCONFIG_8139TOO_PIO=yCONFIG_8139TOO_TUNE_TWISTER=yCONFIG_8139TOO_8129=yCONFIG_8139_OLD_RX_RESET=yCONFIG_R6040=yCONFIG_SIS900=yCONFIG_EPIC100=yCONFIG_SUNDANCE=yCONFIG_SUNDANCE_MMIO=yCONFIG_TLAN=yCONFIG_VIA_RHINE=yCONFIG_VIA_RHINE_MMIO=yCONFIG_SC92031=yCONFIG_NET_POCKET=yCONFIG_ATP=yCONFIG_DE600=yCONFIG_DE620=yCONFIG_NETDEV_1000=yCONFIG_ACENIC=yCONFIG_ACENIC_OMIT_TIGON_I=yCONFIG_DL2K=yCONFIG_E1000=yCONFIG_E1000_DISABLE_PACKET_SPLIT=yCONFIG_E1000E=yCONFIG_IP1000=yCONFIG_IGB=yCONFIG_IGB_LRO=yCONFIG_NS83820=yCONFIG_HAMACHI=yCONFIG_YELLOWFIN=yCONFIG_R8169=yCONFIG_R8169_VLAN=yCONFIG_SIS190=yCONFIG_SKGE=yCONFIG_SKGE_DEBUG=yCONFIG_SKY2=yCONFIG_SKY2_DEBUG=yCONFIG_VIA_VELOCITY=yCONFIG_TIGON3=yCONFIG_BNX2=yCONFIG_QLA3XXX=yCONFIG_ATL1=yCONFIG_ATL1E=yCONFIG_NETDEV_10000=yCONFIG_CHELSIO_T1=yCONFIG_CHELSIO_T1_1G=yCONFIG_CHELSIO_T3=yCONFIG_IXGBE=yCONFIG_IXGB=yCONFIG_S2IO=yCONFIG_MYRI10GE=yCONFIG_NETXEN_NIC=yCONFIG_NIU=yCONFIG_MLX4_CORE=yCONFIG_MLX4_DEBUG=yCONFIG_TEHUTI=yCONFIG_BNX2X=yCONFIG_SFC=yCONFIG_TR=yCONFIG_IBMTR=yCONFIG_IBMOL=yCONFIG_IBMLS=yCONFIG_3C359=yCONFIG_TMS380TR=yCONFIG_TMSPCI=yCONFIG_SKISA=yCONFIG_PROTEON=yCONFIG_ABYSS=yCONFIG_MADGEMC=yCONFIG_SMCTR=y
#
# Wireless LAN
#CONFIG_WLAN_PRE80211=yCONFIG_STRIP=yCONFIG_ARLAN=yCONFIG_WAVELAN=yCONFIG_PCMCIA_WAVELAN=yCONFIG_PCMCIA_NETWAVE=yCONFIG_WLAN_80211=yCONFIG_PCMCIA_RAYCS=yCONFIG_IPW2100=yCONFIG_IPW2100_MONITOR=yCONFIG_IPW2100_DEBUG=yCONFIG_IPW2200=yCONFIG_IPW2200_MONITOR=yCONFIG_IPW2200_RADIOTAP=yCONFIG_IPW2200_PROMISCUOUS=yCONFIG_IPW2200_QOS=yCONFIG_IPW2200_DEBUG=yCONFIG_LIBERTAS=yCONFIG_LIBERTAS_USB=yCONFIG_LIBERTAS_CS=yCONFIG_LIBERTAS_SDIO=yCONFIG_LIBERTAS_DEBUG=yCONFIG_AIRO=yCONFIG_HERMES=yCONFIG_PLX_HERMES=yCONFIG_TMD_HERMES=yCONFIG_NORTEL_HERMES=yCONFIG_PCI_HERMES=yCONFIG_PCMCIA_HERMES=yCONFIG_PCMCIA_SPECTRUM=yCONFIG_ATMEL=yCONFIG_PCI_ATMEL=yCONFIG_PCMCIA_ATMEL=yCONFIG_AIRO_CS=yCONFIG_PCMCIA_WL3501=yCONFIG_PRISM54=yCONFIG_USB_ZD1201=yCONFIG_USB_NET_RNDIS_WLAN=yCONFIG_RTL8180=yCONFIG_RTL8187=yCONFIG_ADM8211=yCONFIG_MAC80211_HWSIM=yCONFIG_P54_COMMON=yCONFIG_P54_USB=yCONFIG_P54_PCI=yCONFIG_ATH5K=yCONFIG_ATH5K_DEBUG=yCONFIG_ATH9K=yCONFIG_IWLWIFI=yCONFIG_IWLCORE=yCONFIG_IWLWIFI_LEDS=yCONFIG_IWLWIFI_RFKILL=yCONFIG_IWLWIFI_DEBUG=yCONFIG_IWLWIFI_DEBUGFS=yCONFIG_IWLAGN=yCONFIG_IWLAGN_SPECTRUM_MEASUREMENT=yCONFIG_IWLAGN_LEDS=yCONFIG_IWL4965=yCONFIG_IWL5000=yCONFIG_IWL3945=yCONFIG_IWL3945_RFKILL=yCONFIG_IWL3945_SPECTRUM_MEASUREMENT=yCONFIG_IWL3945_LEDS=yCONFIG_IWL3945_DEBUG=yCONFIG_HOSTAP=yCONFIG_HOSTAP_FIRMWARE=yCONFIG_HOSTAP_FIRMWARE_NVRAM=yCONFIG_HOSTAP_PLX=yCONFIG_HOSTAP_PCI=yCONFIG_HOSTAP_CS=yCONFIG_B43=yCONFIG_B43_PCI_AUTOSELECT=yCONFIG_B43_PCICORE_AUTOSELECT=yCONFIG_B43_PCMCIA=yCONFIG_B43_PIO=yCONFIG_B43_LEDS=yCONFIG_B43_RFKILL=yCONFIG_B43_DEBUG=yCONFIG_B43_FORCE_PIO=yCONFIG_B43LEGACY=yCONFIG_B43LEGACY_PCI_AUTOSELECT=yCONFIG_B43LEGACY_PCICORE_AUTOSELECT=yCONFIG_B43LEGACY_LEDS=yCONFIG_B43LEGACY_RFKILL=yCONFIG_B43LEGACY_DEBUG=yCONFIG_B43LEGACY_DMA=yCONFIG_B43LEGACY_PIO=yCONFIG_B43LEGACY_DMA_AND_PIO_MODE=y
# CONFIG_B43LEGACY_DMA_MODE is not set
# CONFIG_B43LEGACY_PIO_MODE is not setCONFIG_ZD1211RW=yCONFIG_ZD1211RW_DEBUG=y
#
# USB Network Adapters
#CONFIG_USB_CATC=yCONFIG_USB_KAWETH=yCONFIG_USB_PEGASUS=yCONFIG_USB_RTL8150=yCONFIG_USB_USBNET=yCONFIG_USB_NET_AX8817X=yCONFIG_USB_NET_CDCETHER=yCONFIG_USB_NET_DM9601=yCONFIG_USB_NET_GL620A=yCONFIG_USB_NET_NET1080=yCONFIG_USB_NET_PLUSB=yCONFIG_USB_NET_MCS7830=yCONFIG_USB_NET_RNDIS_HOST=yCONFIG_USB_NET_CDC_SUBSET=yCONFIG_USB_ALI_M5632=yCONFIG_USB_AN2720=yCONFIG_USB_BELKIN=yCONFIG_USB_ARMLINUX=yCONFIG_USB_EPSON2888=yCONFIG_USB_KC2190=yCONFIG_USB_NET_ZAURUS=yCONFIG_USB_HSO=yCONFIG_NET_PCMCIA=yCONFIG_PCMCIA_3C589=yCONFIG_PCMCIA_3C574=yCONFIG_PCMCIA_FMVJ18X=yCONFIG_PCMCIA_PCNET=yCONFIG_PCMCIA_NMCLAN=yCONFIG_PCMCIA_SMC91C92=yCONFIG_PCMCIA_XIRC2PS=yCONFIG_PCMCIA_AXNET=yCONFIG_ARCNET_COM20020_CS=yCONFIG_WAN=yCONFIG_HOSTESS_SV11=mCONFIG_COSA=mCONFIG_LANMEDIA=yCONFIG_SEALEVEL_4021=mCONFIG_HDLC=yCONFIG_HDLC_RAW=yCONFIG_HDLC_RAW_ETH=yCONFIG_HDLC_CISCO=yCONFIG_HDLC_FR=yCONFIG_HDLC_PPP=yCONFIG_HDLC_X25=yCONFIG_PCI200SYN=yCONFIG_WANXL=yCONFIG_PC300=yCONFIG_PC300_MLPPP=yCONFIG_PC300TOO=yCONFIG_N2=yCONFIG_C101=yCONFIG_FARSYNC=yCONFIG_DSCC4=mCONFIG_DSCC4_PCISYNC=yCONFIG_DSCC4_PCI_RST=yCONFIG_DLCI=yCONFIG_DLCI_MAX=8CONFIG_SDLA=yCONFIG_WAN_ROUTER_DRIVERS=yCONFIG_CYCLADES_SYNC=yCONFIG_CYCLOMX_X25=yCONFIG_LAPBETHER=yCONFIG_X25_ASY=yCONFIG_SBNI=yCONFIG_SBNI_MULTILINE=yCONFIG_ATM_DRIVERS=yCONFIG_ATM_DUMMY=yCONFIG_ATM_TCP=yCONFIG_ATM_LANAI=yCONFIG_ATM_ENI=yCONFIG_ATM_ENI_DEBUG=yCONFIG_ATM_ENI_TUNE_BURST=yCONFIG_ATM_ENI_BURST_TX_16W=yCONFIG_ATM_ENI_BURST_TX_8W=yCONFIG_ATM_ENI_BURST_TX_4W=yCONFIG_ATM_ENI_BURST_TX_2W=yCONFIG_ATM_ENI_BURST_RX_16W=yCONFIG_ATM_ENI_BURST_RX_8W=yCONFIG_ATM_ENI_BURST_RX_4W=yCONFIG_ATM_ENI_BURST_RX_2W=yCONFIG_ATM_FIRESTREAM=yCONFIG_ATM_ZATM=yCONFIG_ATM_ZATM_DEBUG=yCONFIG_ATM_NICSTAR=yCONFIG_ATM_NICSTAR_USE_SUNI=yCONFIG_ATM_NICSTAR_USE_IDT77105=yCONFIG_ATM_IDT77252=yCONFIG_ATM_IDT77252_DEBUG=yCONFIG_ATM_IDT77252_RCV_ALL=yCONFIG_ATM_IDT77252_USE_SUNI=yCONFIG_ATM_AMBASSADOR=yCONFIG_ATM_AMBASSADOR_DEBUG=yCONFIG_ATM_HORIZON=yCONFIG_ATM_HORIZON_DEBUG=yCONFIG_ATM_IA=yCONFIG_ATM_IA_DEBUG=yCONFIG_ATM_FORE200E=yCONFIG_ATM_FORE200E_USE_TASKLET=yCONFIG_ATM_FORE200E_TX_RETRY=16CONFIG_ATM_FORE200E_DEBUG=0CONFIG_ATM_HE=yCONFIG_ATM_HE_USE_SUNI=yCONFIG_FDDI=yCONFIG_DEFXX=yCONFIG_DEFXX_MMIO=yCONFIG_SKFP=yCONFIG_HIPPI=yCONFIG_ROADRUNNER=yCONFIG_ROADRUNNER_LARGE_RINGS=yCONFIG_PLIP=yCONFIG_PPP=yCONFIG_PPP_MULTILINK=yCONFIG_PPP_FILTER=yCONFIG_PPP_ASYNC=yCONFIG_PPP_SYNC_TTY=yCONFIG_PPP_DEFLATE=yCONFIG_PPP_BSDCOMP=yCONFIG_PPP_MPPE=yCONFIG_PPPOE=yCONFIG_PPPOATM=yCONFIG_PPPOL2TP=yCONFIG_SLIP=yCONFIG_SLIP_COMPRESSED=yCONFIG_SLHC=yCONFIG_SLIP_SMART=yCONFIG_SLIP_MODE_SLIP6=yCONFIG_NET_FC=yCONFIG_NETCONSOLE=yCONFIG_NETCONSOLE_DYNAMIC=yCONFIG_NETPOLL=yCONFIG_NETPOLL_TRAP=yCONFIG_NET_POLL_CONTROLLER=yCONFIG_VIRTIO_NET=yCONFIG_ISDN=yCONFIG_ISDN_I4L=yCONFIG_ISDN_PPP=yCONFIG_ISDN_PPP_VJ=yCONFIG_ISDN_MPP=yCONFIG_IPPP_FILTER=yCONFIG_ISDN_PPP_BSDCOMP=yCONFIG_ISDN_AUDIO=yCONFIG_ISDN_TTY_FAX=yCONFIG_ISDN_X25=y
#
# ISDN feature submodules
#CONFIG_ISDN_DIVERSION=y
#
# ISDN4Linux hardware drivers
#
#
# Passive cards
#CONFIG_ISDN_DRV_HISAX=y
#
# D-channel protocol features
#CONFIG_HISAX_EURO=yCONFIG_DE_AOC=yCONFIG_HISAX_NO_SENDCOMPLETE=yCONFIG_HISAX_NO_LLC=yCONFIG_HISAX_NO_KEYPAD=yCONFIG_HISAX_1TR6=yCONFIG_HISAX_NI1=yCONFIG_HISAX_MAX_CARDS=8
#
# HiSax supported cards
#CONFIG_HISAX_16_0=yCONFIG_HISAX_16_3=yCONFIG_HISAX_TELESPCI=yCONFIG_HISAX_S0BOX=yCONFIG_HISAX_AVM_A1=yCONFIG_HISAX_FRITZPCI=yCONFIG_HISAX_AVM_A1_PCMCIA=yCONFIG_HISAX_ELSA=yCONFIG_HISAX_IX1MICROR2=yCONFIG_HISAX_DIEHLDIVA=yCONFIG_HISAX_ASUSCOM=yCONFIG_HISAX_TELEINT=yCONFIG_HISAX_HFCS=yCONFIG_HISAX_SEDLBAUER=yCONFIG_HISAX_SPORTSTER=yCONFIG_HISAX_MIC=yCONFIG_HISAX_NETJET=yCONFIG_HISAX_NETJET_U=yCONFIG_HISAX_NICCY=yCONFIG_HISAX_ISURF=yCONFIG_HISAX_HSTSAPHIR=yCONFIG_HISAX_BKM_A4T=yCONFIG_HISAX_SCT_QUADRO=yCONFIG_HISAX_GAZEL=yCONFIG_HISAX_HFC_PCI=yCONFIG_HISAX_W6692=yCONFIG_HISAX_HFC_SX=yCONFIG_HISAX_ENTERNOW_PCI=yCONFIG_HISAX_DEBUG=y
#
# HiSax PCMCIA card service modules
#CONFIG_HISAX_SEDLBAUER_CS=yCONFIG_HISAX_ELSA_CS=yCONFIG_HISAX_AVM_A1_CS=yCONFIG_HISAX_TELES_CS=y
#
# HiSax sub driver modules
#CONFIG_HISAX_ST5481=yCONFIG_HISAX_HFCUSB=yCONFIG_HISAX_HFC4S8S=yCONFIG_HISAX_FRITZ_PCIPNP=yCONFIG_HISAX_HDLC=y
#
# Active cards
#CONFIG_ISDN_DRV_PCBIT=yCONFIG_ISDN_DRV_SC=yCONFIG_ISDN_DRV_ACT2000=yCONFIG_HYSDN=mCONFIG_HYSDN_CAPI=yCONFIG_ISDN_DRV_GIGASET=yCONFIG_GIGASET_BASE=yCONFIG_GIGASET_M105=yCONFIG_GIGASET_M101=yCONFIG_GIGASET_DEBUG=yCONFIG_GIGASET_UNDOCREQ=yCONFIG_ISDN_CAPI=yCONFIG_ISDN_DRV_AVMB1_VERBOSE_REASON=yCONFIG_CAPI_TRACE=yCONFIG_ISDN_CAPI_MIDDLEWARE=yCONFIG_ISDN_CAPI_CAPI20=yCONFIG_ISDN_CAPI_CAPIFS_BOOL=yCONFIG_ISDN_CAPI_CAPIFS=yCONFIG_ISDN_CAPI_CAPIDRV=y
#
# CAPI hardware drivers
#CONFIG_CAPI_AVM=yCONFIG_ISDN_DRV_AVMB1_B1ISA=yCONFIG_ISDN_DRV_AVMB1_B1PCI=yCONFIG_ISDN_DRV_AVMB1_B1PCIV4=yCONFIG_ISDN_DRV_AVMB1_T1ISA=yCONFIG_ISDN_DRV_AVMB1_B1PCMCIA=yCONFIG_ISDN_DRV_AVMB1_AVM_CS=yCONFIG_ISDN_DRV_AVMB1_T1PCI=yCONFIG_ISDN_DRV_AVMB1_C4=yCONFIG_CAPI_EICON=yCONFIG_ISDN_DIVAS=yCONFIG_ISDN_DIVAS_BRIPCI=yCONFIG_ISDN_DIVAS_PRIPCI=yCONFIG_ISDN_DIVAS_DIVACAPI=yCONFIG_ISDN_DIVAS_USERIDI=yCONFIG_ISDN_DIVAS_MAINT=mCONFIG_PHONE=y
#
# Input device support
#CONFIG_INPUT=yCONFIG_INPUT_FF_MEMLESS=yCONFIG_INPUT_POLLDEV=y
#
# Userland interfaces
#CONFIG_INPUT_MOUSEDEV=yCONFIG_INPUT_MOUSEDEV_PSAUX=yCONFIG_INPUT_MOUSEDEV_SCREEN_X=1024CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768CONFIG_INPUT_JOYDEV=yCONFIG_INPUT_EVDEV=yCONFIG_INPUT_EVBUG=y
#
# Input Device Drivers
#CONFIG_INPUT_KEYBOARD=yCONFIG_KEYBOARD_ATKBD=yCONFIG_KEYBOARD_SUNKBD=yCONFIG_KEYBOARD_LKKBD=yCONFIG_KEYBOARD_XTKBD=yCONFIG_KEYBOARD_NEWTON=yCONFIG_KEYBOARD_STOWAWAY=yCONFIG_KEYBOARD_GPIO=yCONFIG_INPUT_MOUSE=yCONFIG_MOUSE_PS2=yCONFIG_MOUSE_PS2_ALPS=yCONFIG_MOUSE_PS2_LOGIPS2PP=yCONFIG_MOUSE_PS2_SYNAPTICS=yCONFIG_MOUSE_PS2_LIFEBOOK=yCONFIG_MOUSE_PS2_TRACKPOINT=yCONFIG_MOUSE_PS2_TOUCHKIT=yCONFIG_MOUSE_SERIAL=yCONFIG_MOUSE_APPLETOUCH=yCONFIG_MOUSE_BCM5974=yCONFIG_MOUSE_INPORT=yCONFIG_MOUSE_ATIXL=yCONFIG_MOUSE_LOGIBM=yCONFIG_MOUSE_PC110PAD=yCONFIG_MOUSE_VSXXXAA=yCONFIG_MOUSE_GPIO=yCONFIG_INPUT_JOYSTICK=yCONFIG_JOYSTICK_ANALOG=yCONFIG_JOYSTICK_A3D=yCONFIG_JOYSTICK_ADI=yCONFIG_JOYSTICK_COBRA=yCONFIG_JOYSTICK_GF2K=yCONFIG_JOYSTICK_GRIP=yCONFIG_JOYSTICK_GRIP_MP=yCONFIG_JOYSTICK_GUILLEMOT=yCONFIG_JOYSTICK_INTERACT=yCONFIG_JOYSTICK_SIDEWINDER=yCONFIG_JOYSTICK_TMDC=yCONFIG_JOYSTICK_IFORCE=yCONFIG_JOYSTICK_IFORCE_USB=yCONFIG_JOYSTICK_IFORCE_232=yCONFIG_JOYSTICK_WARRIOR=yCONFIG_JOYSTICK_MAGELLAN=yCONFIG_JOYSTICK_SPACEORB=yCONFIG_JOYSTICK_SPACEBALL=yCONFIG_JOYSTICK_STINGER=yCONFIG_JOYSTICK_TWIDJOY=yCONFIG_JOYSTICK_ZHENHUA=yCONFIG_JOYSTICK_DB9=yCONFIG_JOYSTICK_GAMECON=yCONFIG_JOYSTICK_TURBOGRAFX=yCONFIG_JOYSTICK_JOYDUMP=yCONFIG_JOYSTICK_XPAD=yCONFIG_JOYSTICK_XPAD_FF=yCONFIG_JOYSTICK_XPAD_LEDS=yCONFIG_INPUT_TABLET=yCONFIG_TABLET_USB_ACECAD=yCONFIG_TABLET_USB_AIPTEK=yCONFIG_TABLET_USB_GTCO=yCONFIG_TABLET_USB_KBTAB=yCONFIG_TABLET_USB_WACOM=yCONFIG_INPUT_TOUCHSCREEN=yCONFIG_TOUCHSCREEN_ADS7846=yCONFIG_TOUCHSCREEN_FUJITSU=yCONFIG_TOUCHSCREEN_GUNZE=yCONFIG_TOUCHSCREEN_ELO=yCONFIG_TOUCHSCREEN_MTOUCH=yCONFIG_TOUCHSCREEN_INEXIO=yCONFIG_TOUCHSCREEN_MK712=yCONFIG_TOUCHSCREEN_HTCPEN=yCONFIG_TOUCHSCREEN_PENMOUNT=yCONFIG_TOUCHSCREEN_TOUCHRIGHT=yCONFIG_TOUCHSCREEN_TOUCHWIN=yCONFIG_TOUCHSCREEN_UCB1400=yCONFIG_TOUCHSCREEN_WM97XX=yCONFIG_TOUCHSCREEN_WM9705=yCONFIG_TOUCHSCREEN_WM9712=yCONFIG_TOUCHSCREEN_WM9713=yCONFIG_TOUCHSCREEN_USB_COMPOSITE=yCONFIG_TOUCHSCREEN_USB_EGALAX=yCONFIG_TOUCHSCREEN_USB_PANJIT=yCONFIG_TOUCHSCREEN_USB_3M=yCONFIG_TOUCHSCREEN_USB_ITM=yCONFIG_TOUCHSCREEN_USB_ETURBO=yCONFIG_TOUCHSCREEN_USB_GUNZE=yCONFIG_TOUCHSCREEN_USB_DMC_TSC10=yCONFIG_TOUCHSCREEN_USB_IRTOUCH=yCONFIG_TOUCHSCREEN_USB_IDEALTEK=yCONFIG_TOUCHSCREEN_USB_GENERAL_TOUCH=yCONFIG_TOUCHSCREEN_USB_GOTOP=yCONFIG_TOUCHSCREEN_TOUCHIT213=yCONFIG_INPUT_MISC=yCONFIG_INPUT_PCSPKR=yCONFIG_INPUT_APANEL=yCONFIG_INPUT_WISTRON_BTNS=yCONFIG_INPUT_ATLAS_BTNS=yCONFIG_INPUT_ATI_REMOTE=yCONFIG_INPUT_ATI_REMOTE2=yCONFIG_INPUT_KEYSPAN_REMOTE=yCONFIG_INPUT_POWERMATE=yCONFIG_INPUT_YEALINK=yCONFIG_INPUT_UINPUT=y
#
# Hardware I/O ports
#CONFIG_SERIO=yCONFIG_SERIO_I8042=yCONFIG_SERIO_SERPORT=yCONFIG_SERIO_CT82C710=yCONFIG_SERIO_PARKBD=yCONFIG_SERIO_PCIPS2=yCONFIG_SERIO_LIBPS2=yCONFIG_SERIO_RAW=yCONFIG_GAMEPORT=yCONFIG_GAMEPORT_NS558=yCONFIG_GAMEPORT_L4=yCONFIG_GAMEPORT_EMU10K1=yCONFIG_GAMEPORT_FM801=y
#
# Character devices
#CONFIG_VT=yCONFIG_CONSOLE_TRANSLATIONS=yCONFIG_VT_CONSOLE=yCONFIG_HW_CONSOLE=yCONFIG_VT_HW_CONSOLE_BINDING=yCONFIG_DEVKMEM=yCONFIG_SERIAL_NONSTANDARD=yCONFIG_COMPUTONE=yCONFIG_ROCKETPORT=yCONFIG_CYCLADES=yCONFIG_CYZ_INTR=yCONFIG_DIGIEPCA=yCONFIG_ESPSERIAL=yCONFIG_MOXA_INTELLIO=yCONFIG_MOXA_SMARTIO=yCONFIG_ISI=yCONFIG_SYNCLINK=yCONFIG_SYNCLINKMP=yCONFIG_SYNCLINK_GT=yCONFIG_N_HDLC=yCONFIG_RISCOM8=yCONFIG_SPECIALIX=yCONFIG_SX=yCONFIG_RIO=yCONFIG_RIO_OLDPCI=yCONFIG_STALDRV=yCONFIG_NOZOMI=y
#
# Serial drivers
#CONFIG_SERIAL_8250=yCONFIG_SERIAL_8250_CONSOLE=yCONFIG_FIX_EARLYCON_MEM=yCONFIG_SERIAL_8250_PCI=yCONFIG_SERIAL_8250_PNP=yCONFIG_SERIAL_8250_CS=yCONFIG_SERIAL_8250_NR_UARTS=4CONFIG_SERIAL_8250_RUNTIME_UARTS=4CONFIG_SERIAL_8250_EXTENDED=yCONFIG_SERIAL_8250_MANY_PORTS=yCONFIG_SERIAL_8250_FOURPORT=yCONFIG_SERIAL_8250_ACCENT=yCONFIG_SERIAL_8250_BOCA=yCONFIG_SERIAL_8250_EXAR_ST16C554=yCONFIG_SERIAL_8250_HUB6=yCONFIG_SERIAL_8250_SHARE_IRQ=yCONFIG_SERIAL_8250_DETECT_IRQ=yCONFIG_SERIAL_8250_RSA=yCONFIG_SERIAL_8250_MCA=y
#
# Non-8250 serial port support
#CONFIG_SERIAL_CORE=yCONFIG_SERIAL_CORE_CONSOLE=yCONFIG_CONSOLE_POLL=yCONFIG_SERIAL_JSM=yCONFIG_UNIX98_PTYS=yCONFIG_LEGACY_PTYS=yCONFIG_LEGACY_PTY_COUNT=256CONFIG_PRINTER=yCONFIG_LP_CONSOLE=yCONFIG_PPDEV=yCONFIG_HVC_DRIVER=yCONFIG_VIRTIO_CONSOLE=yCONFIG_IPMI_HANDLER=yCONFIG_IPMI_PANIC_EVENT=yCONFIG_IPMI_PANIC_STRING=yCONFIG_IPMI_DEVICE_INTERFACE=yCONFIG_IPMI_SI=yCONFIG_IPMI_WATCHDOG=yCONFIG_IPMI_POWEROFF=yCONFIG_HW_RANDOM=yCONFIG_HW_RANDOM_INTEL=yCONFIG_HW_RANDOM_AMD=yCONFIG_HW_RANDOM_GEODE=yCONFIG_HW_RANDOM_VIA=yCONFIG_HW_RANDOM_VIRTIO=yCONFIG_NVRAM=yCONFIG_DTLK=yCONFIG_R3964=yCONFIG_APPLICOM=yCONFIG_SONYPI=y
#
# PCMCIA character devices
#CONFIG_SYNCLINK_CS=yCONFIG_CARDMAN_4000=yCONFIG_CARDMAN_4040=yCONFIG_IPWIRELESS=yCONFIG_MWAVE=y
CONFIG_SCx200_GPIO=y
CONFIG_PC8736x_GPIO=yCONFIG_NSC_GPIO=yCONFIG_CS5535_GPIO=yCONFIG_RAW_DRIVER=yCONFIG_MAX_RAW_DEVS=256CONFIG_HPET=yCONFIG_HPET_MMAP=yCONFIG_HANGCHECK_TIMER=yCONFIG_TCG_TPM=yCONFIG_TCG_TIS=yCONFIG_TCG_NSC=yCONFIG_TCG_ATMEL=yCONFIG_TCG_INFINEON=yCONFIG_TELCLOCK=yCONFIG_DEVPORT=yCONFIG_I2C=yCONFIG_I2C_BOARDINFO=yCONFIG_I2C_CHARDEV=yCONFIG_I2C_HELPER_AUTO=yCONFIG_I2C_ALGOBIT=yCONFIG_I2C_ALGOPCA=y
#
# I2C Hardware Bus support
#
#
# PC SMBus host controller drivers
#CONFIG_I2C_ALI1535=yCONFIG_I2C_ALI1563=yCONFIG_I2C_ALI15X3=yCONFIG_I2C_AMD756=yCONFIG_I2C_AMD8111=yCONFIG_I2C_I801=yCONFIG_I2C_ISCH=yCONFIG_I2C_PIIX4=yCONFIG_I2C_NFORCE2=yCONFIG_I2C_SIS5595=yCONFIG_I2C_SIS630=yCONFIG_I2C_SIS96X=yCONFIG_I2C_VIA=yCONFIG_I2C_VIAPRO=y
#
# I2C system bus drivers (mostly embedded / system-on-chip) #CONFIG_I2C_GPIO=yCONFIG_I2C_OCORES=yCONFIG_I2C_SIMTEC=y
#
# External I2C/SMBus adapter drivers
#CONFIG_I2C_PARPORT=yCONFIG_I2C_PARPORT_LIGHT=yCONFIG_I2C_TAOS_EVM=yCONFIG_I2C_TINY_USB=y
#
# Graphics adapter I2C/DDC channel drivers
#CONFIG_I2C_VOODOO3=y
#
# Other I2C/SMBus bus drivers
#CONFIG_I2C_PCA_PLATFORM=yCONFIG_I2C_STUB=m
CONFIG_SCx200_I2C=y
CONFIG_SCx200_I2C_SCL=12
CONFIG_SCx200_I2C_SDA=13
CONFIG_SCx200_ACB=y
#
# Miscellaneous I2C Chip support
#CONFIG_DS1682=yCONFIG_AT24=yCONFIG_SENSORS_EEPROM=yCONFIG_SENSORS_PCF8591=yCONFIG_TPS65010=yCONFIG_SENSORS_MAX6875=yCONFIG_SENSORS_TSL2550=yCONFIG_I2C_DEBUG_CORE=yCONFIG_I2C_DEBUG_ALGO=yCONFIG_I2C_DEBUG_BUS=yCONFIG_I2C_DEBUG_CHIP=yCONFIG_SPI=yCONFIG_SPI_DEBUG=yCONFIG_SPI_MASTER=y
#
# SPI Master Controller Drivers
#CONFIG_SPI_BITBANG=yCONFIG_SPI_BUTTERFLY=yCONFIG_SPI_LM70_LLP=y
#
# SPI Protocol Masters
#CONFIG_SPI_AT25=yCONFIG_SPI_SPIDEV=yCONFIG_SPI_TLE62X0=yCONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=yCONFIG_GPIOLIB=yCONFIG_DEBUG_GPIO=yCONFIG_GPIO_SYSFS=y
#
# I2C GPIO expanders:
#CONFIG_GPIO_MAX732X=yCONFIG_GPIO_PCA953X=yCONFIG_GPIO_PCF857X=y
#
# PCI GPIO expanders:
#
#
# SPI GPIO expanders:
#CONFIG_GPIO_MAX7301=yCONFIG_GPIO_MCP23S08=yCONFIG_W1=yCONFIG_W1_CON=y
#
# 1-wire Bus Masters
#CONFIG_W1_MASTER_MATROX=yCONFIG_W1_MASTER_DS2490=yCONFIG_W1_MASTER_DS2482=yCONFIG_W1_MASTER_GPIO=y
#
# 1-wire Slaves
#CONFIG_W1_SLAVE_THERM=yCONFIG_W1_SLAVE_SMEM=yCONFIG_W1_SLAVE_DS2433=yCONFIG_W1_SLAVE_DS2433_CRC=yCONFIG_W1_SLAVE_DS2760=yCONFIG_POWER_SUPPLY=yCONFIG_POWER_SUPPLY_DEBUG=yCONFIG_PDA_POWER=yCONFIG_BATTERY_DS2760=yCONFIG_BATTERY_OLPC=yCONFIG_HWMON=yCONFIG_HWMON_VID=yCONFIG_SENSORS_ABITUGURU=yCONFIG_SENSORS_ABITUGURU3=yCONFIG_SENSORS_AD7414=yCONFIG_SENSORS_AD7418=yCONFIG_SENSORS_ADCXX=yCONFIG_SENSORS_ADM1021=yCONFIG_SENSORS_ADM1025=yCONFIG_SENSORS_ADM1026=yCONFIG_SENSORS_ADM1029=yCONFIG_SENSORS_ADM1031=yCONFIG_SENSORS_ADM9240=yCONFIG_SENSORS_ADT7470=yCONFIG_SENSORS_ADT7473=yCONFIG_SENSORS_K8TEMP=yCONFIG_SENSORS_ASB100=yCONFIG_SENSORS_ATXP1=yCONFIG_SENSORS_DS1621=yCONFIG_SENSORS_I5K_AMB=yCONFIG_SENSORS_F71805F=yCONFIG_SENSORS_F71882FG=yCONFIG_SENSORS_F75375S=yCONFIG_SENSORS_FSCHER=yCONFIG_SENSORS_FSCPOS=yCONFIG_SENSORS_FSCHMD=yCONFIG_SENSORS_GL518SM=yCONFIG_SENSORS_GL520SM=yCONFIG_SENSORS_CORETEMP=yCONFIG_SENSORS_IBMAEM=yCONFIG_SENSORS_IBMPEX=yCONFIG_SENSORS_IT87=yCONFIG_SENSORS_LM63=yCONFIG_SENSORS_LM70=yCONFIG_SENSORS_LM75=yCONFIG_SENSORS_LM77=yCONFIG_SENSORS_LM78=yCONFIG_SENSORS_LM80=yCONFIG_SENSORS_LM83=yCONFIG_SENSORS_LM85=yCONFIG_SENSORS_LM87=yCONFIG_SENSORS_LM90=yCONFIG_SENSORS_LM92=yCONFIG_SENSORS_LM93=yCONFIG_SENSORS_MAX1619=yCONFIG_SENSORS_MAX6650=yCONFIG_SENSORS_PC87360=yCONFIG_SENSORS_PC87427=yCONFIG_SENSORS_SIS5595=yCONFIG_SENSORS_DME1737=yCONFIG_SENSORS_SMSC47M1=yCONFIG_SENSORS_SMSC47M192=yCONFIG_SENSORS_SMSC47B397=yCONFIG_SENSORS_ADS7828=yCONFIG_SENSORS_THMC50=yCONFIG_SENSORS_VIA686A=yCONFIG_SENSORS_VT1211=yCONFIG_SENSORS_VT8231=yCONFIG_SENSORS_W83781D=yCONFIG_SENSORS_W83791D=yCONFIG_SENSORS_W83792D=yCONFIG_SENSORS_W83793=yCONFIG_SENSORS_W83L785TS=yCONFIG_SENSORS_W83L786NG=yCONFIG_SENSORS_W83627HF=yCONFIG_SENSORS_W83627EHF=yCONFIG_SENSORS_HDAPS=yCONFIG_SENSORS_APPLESMC=yCONFIG_HWMON_DEBUG_CHIP=yCONFIG_THERMAL=yCONFIG_THERMAL_HWMON=yCONFIG_WATCHDOG=yCONFIG_WATCHDOG_NOWAYOUT=y
#
# Watchdog Device Drivers
#CONFIG_SOFT_WATCHDOG=yCONFIG_ACQUIRE_WDT=yCONFIG_ADVANTECH_WDT=yCONFIG_ALIM1535_WDT=yCONFIG_ALIM7101_WDT=yCONFIG_SC520_WDT=yCONFIG_IB700_WDT=yCONFIG_IBMASR=yCONFIG_WAFER_WDT=yCONFIG_I6300ESB_WDT=yCONFIG_ITCO_WDT=yCONFIG_ITCO_VENDOR_SUPPORT=yCONFIG_IT8712F_WDT=yCONFIG_HP_WATCHDOG=yCONFIG_SC1200_WDT=y
CONFIG_SCx200_WDT=yCONFIG_PC87413_WDT=yCONFIG_RDC321X_WDT=yCONFIG_60XX_WDT=yCONFIG_SBC8360_WDT=yCONFIG_SBC7240_WDT=yCONFIG_CPU5_WDT=yCONFIG_SMSC37B787_WDT=yCONFIG_W83627HF_WDT=yCONFIG_W83697HF_WDT=yCONFIG_W83877F_WDT=yCONFIG_W83977F_WDT=yCONFIG_MACHZ_WDT=yCONFIG_SBC_EPX_C3_WATCHDOG=y
#
# ISA-based Watchdog Cards
#CONFIG_PCWATCHDOG=yCONFIG_MIXCOMWD=y
#
# PCI-based Watchdog Cards
#CONFIG_PCIPCWATCHDOG=yCONFIG_WDTPCI=yCONFIG_WDT_501_PCI=y
#
# USB-based Watchdog Cards
#CONFIG_USBPCWATCHDOG=y
#
# Sonics Silicon Backplane
#CONFIG_SSB_POSSIBLE=yCONFIG_SSB=yCONFIG_SSB_SPROM=yCONFIG_SSB_BLOCKIO=yCONFIG_SSB_PCIHOST_POSSIBLE=yCONFIG_SSB_PCIHOST=yCONFIG_SSB_B43_PCI_BRIDGE=yCONFIG_SSB_PCMCIAHOST_POSSIBLE=yCONFIG_SSB_PCMCIAHOST=yCONFIG_SSB_SILENT=yCONFIG_SSB_DRIVER_PCICORE_POSSIBLE=yCONFIG_SSB_DRIVER_PCICORE=y
#
# Multifunction device drivers
#
# CONFIG_MFD_CORE is not setCONFIG_MFD_SM501=yCONFIG_HTC_PASIC3=y
# CONFIG_MFD_TMIO is not set
#
# Multimedia devices
#
#
# Multimedia core support
#CONFIG_VIDEO_DEV=yCONFIG_VIDEO_V4L2_COMMON=yCONFIG_VIDEO_ALLOW_V4L1=yCONFIG_VIDEO_V4L1_COMPAT=yCONFIG_DVB_CORE=yCONFIG_VIDEO_MEDIA=y
#
# Multimedia drivers
#CONFIG_VIDEO_SAA7146=yCONFIG_VIDEO_SAA7146_VV=yCONFIG_MEDIA_ATTACH=yCONFIG_MEDIA_TUNER=yCONFIG_MEDIA_TUNER_CUSTOMIZE=yCONFIG_MEDIA_TUNER_SIMPLE=yCONFIG_MEDIA_TUNER_TDA8290=yCONFIG_MEDIA_TUNER_TDA827X=yCONFIG_MEDIA_TUNER_TDA18271=yCONFIG_MEDIA_TUNER_TDA9887=yCONFIG_MEDIA_TUNER_TEA5761=yCONFIG_MEDIA_TUNER_TEA5767=yCONFIG_MEDIA_TUNER_MT20XX=yCONFIG_MEDIA_TUNER_MT2060=yCONFIG_MEDIA_TUNER_MT2266=yCONFIG_MEDIA_TUNER_MT2131=yCONFIG_MEDIA_TUNER_QT1010=yCONFIG_MEDIA_TUNER_XC2028=yCONFIG_MEDIA_TUNER_XC5000=yCONFIG_MEDIA_TUNER_MXL5005S=yCONFIG_MEDIA_TUNER_MXL5007T=yCONFIG_VIDEO_V4L2=yCONFIG_VIDEO_V4L1=yCONFIG_VIDEOBUF_GEN=yCONFIG_VIDEOBUF_DMA_SG=yCONFIG_VIDEOBUF_VMALLOC=yCONFIG_VIDEOBUF_DMA_CONTIG=yCONFIG_VIDEOBUF_DVB=yCONFIG_VIDEO_BTCX=yCONFIG_VIDEO_IR=yCONFIG_VIDEO_TVEEPROM=yCONFIG_VIDEO_TUNER=yCONFIG_VIDEO_CAPTURE_DRIVERS=yCONFIG_VIDEO_ADV_DEBUG=yCONFIG_VIDEO_HELPER_CHIPS_AUTO=yCONFIG_VIDEO_IR_I2C=yCONFIG_VIDEO_TVAUDIO=yCONFIG_VIDEO_TDA7432=yCONFIG_VIDEO_TDA9840=yCONFIG_VIDEO_TDA9875=yCONFIG_VIDEO_TEA6415C=yCONFIG_VIDEO_TEA6420=yCONFIG_VIDEO_MSP3400=yCONFIG_VIDEO_CS5345=yCONFIG_VIDEO_CS53L32A=yCONFIG_VIDEO_M52790=yCONFIG_VIDEO_WM8775=yCONFIG_VIDEO_WM8739=yCONFIG_VIDEO_VP27SMPX=yCONFIG_VIDEO_BT819=yCONFIG_VIDEO_BT856=yCONFIG_VIDEO_KS0127=yCONFIG_VIDEO_OV7670=yCONFIG_VIDEO_SAA7110=yCONFIG_VIDEO_SAA7111=yCONFIG_VIDEO_SAA7114=yCONFIG_VIDEO_SAA711X=yCONFIG_VIDEO_SAA717X=yCONFIG_VIDEO_TVP5150=yCONFIG_VIDEO_VPX3220=yCONFIG_VIDEO_CX25840=yCONFIG_VIDEO_CX2341X=yCONFIG_VIDEO_SAA7127=yCONFIG_VIDEO_SAA7185=yCONFIG_VIDEO_ADV7170=yCONFIG_VIDEO_ADV7175=yCONFIG_VIDEO_UPD64031A=yCONFIG_VIDEO_UPD64083=yCONFIG_VIDEO_VIVI=yCONFIG_VIDEO_BT848=yCONFIG_VIDEO_BT848_DVB=yCONFIG_VIDEO_SAA6588=yCONFIG_VIDEO_BWQCAM=yCONFIG_VIDEO_CQCAM=yCONFIG_VIDEO_W9966=yCONFIG_VIDEO_CPIA=yCONFIG_VIDEO_CPIA_PP=yCONFIG_VIDEO_CPIA_USB=yCONFIG_VIDEO_CPIA2=yCONFIG_VIDEO_SAA5246A=yCONFIG_VIDEO_SAA5249=yCONFIG_TUNER_3036=yCONFIG_VIDEO_STRADIS=yCONFIG_VIDEO_ZORAN=yCONFIG_VIDEO_ZORAN_DC30=yCONFIG_VIDEO_ZORAN_ZR36060=yCONFIG_VIDEO_ZORAN_BUZ=yCONFIG_VIDEO_ZORAN_DC10=yCONFIG_VIDEO_ZORAN_LML33=yCONFIG_VIDEO_ZORAN_LML33R10=yCONFIG_VIDEO_ZORAN_AVS6EYES=yCONFIG_VIDEO_MEYE=yCONFIG_VIDEO_SAA7134=yCONFIG_VIDEO_SAA7134_ALSA=yCONFIG_VIDEO_SAA7134_DVB=yCONFIG_VIDEO_MXB=yCONFIG_VIDEO_DPC=yCONFIG_VIDEO_HEXIUM_ORION=yCONFIG_VIDEO_HEXIUM_GEMINI=yCONFIG_VIDEO_CX88=yCONFIG_VIDEO_CX88_ALSA=yCONFIG_VIDEO_CX88_BLACKBIRD=yCONFIG_VIDEO_CX88_DVB=yCONFIG_VIDEO_CX88_VP3054=yCONFIG_VIDEO_CX23885=yCONFIG_VIDEO_AU0828=yCONFIG_VIDEO_IVTV=yCONFIG_VIDEO_FB_IVTV=yCONFIG_VIDEO_CX18=yCONFIG_VIDEO_CAFE_CCIC=yCONFIG_V4L_USB_DRIVERS=yCONFIG_USB_VIDEO_CLASS=yCONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=yCONFIG_USB_GSPCA=yCONFIG_VIDEO_PVRUSB2=yCONFIG_VIDEO_PVRUSB2_SYSFS=yCONFIG_VIDEO_PVRUSB2_DVB=yCONFIG_VIDEO_PVRUSB2_DEBUGIFC=yCONFIG_VIDEO_EM28XX=yCONFIG_VIDEO_EM28XX_ALSA=yCONFIG_VIDEO_EM28XX_DVB=yCONFIG_VIDEO_USBVISION=yCONFIG_VIDEO_USBVIDEO=yCONFIG_USB_VICAM=yCONFIG_USB_IBMCAM=yCONFIG_USB_KONICAWC=yCONFIG_USB_QUICKCAM_MESSENGER=yCONFIG_USB_ET61X251=yCONFIG_VIDEO_OVCAMCHIP=yCONFIG_USB_W9968CF=yCONFIG_USB_OV511=yCONFIG_USB_SE401=yCONFIG_USB_SN9C102=yCONFIG_USB_STV680=yCONFIG_USB_ZC0301=yCONFIG_USB_PWC=yCONFIG_USB_PWC_DEBUG=yCONFIG_USB_ZR364XX=yCONFIG_USB_STKWEBCAM=yCONFIG_USB_S2255=yCONFIG_SOC_CAMERA=yCONFIG_SOC_CAMERA_MT9M001=yCONFIG_MT9M001_PCA9536_SWITCH=yCONFIG_SOC_CAMERA_MT9V022=yCONFIG_MT9V022_PCA9536_SWITCH=yCONFIG_SOC_CAMERA_PLATFORM=yCONFIG_VIDEO_SH_MOBILE_CEU=yCONFIG_RADIO_ADAPTERS=yCONFIG_RADIO_CADET=yCONFIG_RADIO_RTRACK=yCONFIG_RADIO_RTRACK_PORT=20fCONFIG_RADIO_RTRACK2=yCONFIG_RADIO_RTRACK2_PORT=30cCONFIG_RADIO_AZTECH=yCONFIG_RADIO_AZTECH_PORT=350CONFIG_RADIO_GEMTEK=yCONFIG_RADIO_GEMTEK_PORT=34cCONFIG_RADIO_GEMTEK_PROBE=yCONFIG_RADIO_GEMTEK_PCI=yCONFIG_RADIO_MAXIRADIO=yCONFIG_RADIO_MAESTRO=yCONFIG_RADIO_SF16FMI=yCONFIG_RADIO_SF16FMR2=yCONFIG_RADIO_TERRATEC=yCONFIG_RADIO_TERRATEC_PORT=590CONFIG_RADIO_TRUST=yCONFIG_RADIO_TRUST_PORT=350CONFIG_RADIO_TYPHOON=yCONFIG_RADIO_TYPHOON_PROC_FS=yCONFIG_RADIO_TYPHOON_PORT=316CONFIG_RADIO_TYPHOON_MUTEFREQ=87500CONFIG_RADIO_ZOLTRIX=yCONFIG_RADIO_ZOLTRIX_PORT=20cCONFIG_USB_DSBR=yCONFIG_USB_SI470X=yCONFIG_DVB_CAPTURE_DRIVERS=y
#
# Supported SAA7146 based PCI Adapters
#CONFIG_TTPCI_EEPROM=yCONFIG_DVB_AV7110=yCONFIG_DVB_AV7110_OSD=yCONFIG_DVB_BUDGET_CORE=yCONFIG_DVB_BUDGET=yCONFIG_DVB_BUDGET_CI=yCONFIG_DVB_BUDGET_AV=yCONFIG_DVB_BUDGET_PATCH=y
#
# Supported USB Adapters
#CONFIG_DVB_USB=yCONFIG_DVB_USB_DEBUG=yCONFIG_DVB_USB_A800=yCONFIG_DVB_USB_DIBUSB_MB=yCONFIG_DVB_USB_DIBUSB_MB_FAULTY=yCONFIG_DVB_USB_DIBUSB_MC=yCONFIG_DVB_USB_DIB0700=yCONFIG_DVB_USB_UMT_010=yCONFIG_DVB_USB_CXUSB=yCONFIG_DVB_USB_M920X=yCONFIG_DVB_USB_GL861=yCONFIG_DVB_USB_AU6610=yCONFIG_DVB_USB_DIGITV=yCONFIG_DVB_USB_VP7045=yCONFIG_DVB_USB_VP702X=yCONFIG_DVB_USB_GP8PSK=yCONFIG_DVB_USB_NOVA_T_USB2=yCONFIG_DVB_USB_TTUSB2=yCONFIG_DVB_USB_DTT200U=yCONFIG_DVB_USB_OPERA1=yCONFIG_DVB_USB_DW2102=yCONFIG_DVB_USB_ANYSEE=yCONFIG_DVB_TTUSB_BUDGET=yCONFIG_DVB_TTUSB_DEC=yCONFIG_DVB_CINERGYT2=yCONFIG_DVB_CINERGYT2_TUNING=yCONFIG_DVB_CINERGYT2_STREAM_URB_COUNT=32CONFIG_DVB_CINERGYT2_STREAM_BUF_SIZE=512CONFIG_DVB_CINERGYT2_QUERY_INTERVAL=250CONFIG_DVB_CINERGYT2_ENABLE_RC_INPUT_DEVICE=yCONFIG_DVB_CINERGYT2_RC_QUERY_INTERVAL=50CONFIG_DVB_SIANO_SMS1XXX=yCONFIG_DVB_SIANO_SMS1XXX_SMS_IDS=y
#
# Supported FlexCopII (B2C2) Adapters
#CONFIG_DVB_B2C2_FLEXCOP=yCONFIG_DVB_B2C2_FLEXCOP_PCI=yCONFIG_DVB_B2C2_FLEXCOP_USB=yCONFIG_DVB_B2C2_FLEXCOP_DEBUG=y
#
# Supported BT878 Adapters
#CONFIG_DVB_BT8XX=y
#
# Supported Pluto2 Adapters
#CONFIG_DVB_PLUTO2=y
#
# Supported DVB Frontends
#
#
# Customise DVB Frontends
#CONFIG_DVB_FE_CUSTOMISE=y
#
# DVB-S (satellite) frontends
#CONFIG_DVB_CX24110=yCONFIG_DVB_CX24123=yCONFIG_DVB_MT312=yCONFIG_DVB_S5H1420=yCONFIG_DVB_STV0299=yCONFIG_DVB_TDA8083=yCONFIG_DVB_TDA10086=yCONFIG_DVB_VES1X93=yCONFIG_DVB_TUNER_ITD1000=yCONFIG_DVB_TDA826X=yCONFIG_DVB_TUA6100=y
#
# DVB-T (terrestrial) frontends
#CONFIG_DVB_SP8870=yCONFIG_DVB_SP887X=yCONFIG_DVB_CX22700=yCONFIG_DVB_CX22702=yCONFIG_DVB_DRX397XD=yCONFIG_DVB_L64781=yCONFIG_DVB_TDA1004X=yCONFIG_DVB_NXT6000=yCONFIG_DVB_MT352=yCONFIG_DVB_ZL10353=yCONFIG_DVB_DIB3000MB=yCONFIG_DVB_DIB3000MC=yCONFIG_DVB_DIB7000M=yCONFIG_DVB_DIB7000P=yCONFIG_DVB_TDA10048=y
#
# DVB-C (cable) frontends
#CONFIG_DVB_VES1820=yCONFIG_DVB_TDA10021=yCONFIG_DVB_TDA10023=yCONFIG_DVB_STV0297=y
#
# ATSC (North American/Korean Terrestrial/Cable DTV) frontends #CONFIG_DVB_NXT200X=yCONFIG_DVB_OR51211=yCONFIG_DVB_OR51132=yCONFIG_DVB_BCM3510=yCONFIG_DVB_LGDT330X=yCONFIG_DVB_S5H1409=yCONFIG_DVB_AU8522=yCONFIG_DVB_S5H1411=y
#
# Digital terrestrial only tuners/PLL
#CONFIG_DVB_PLL=yCONFIG_DVB_TUNER_DIB0070=y
#
# SEC control devices for DVB-S
#CONFIG_DVB_LNBP21=yCONFIG_DVB_ISL6405=yCONFIG_DVB_ISL6421=yCONFIG_DAB=yCONFIG_USB_DABUSB=y
#
# Graphics support
#CONFIG_AGP=yCONFIG_AGP_ALI=yCONFIG_AGP_ATI=yCONFIG_AGP_AMD=yCONFIG_AGP_AMD64=yCONFIG_AGP_INTEL=yCONFIG_AGP_NVIDIA=yCONFIG_AGP_SIS=yCONFIG_AGP_SWORKS=yCONFIG_AGP_VIA=yCONFIG_AGP_EFFICEON=yCONFIG_DRM=yCONFIG_DRM_TDFX=yCONFIG_DRM_R128=yCONFIG_DRM_RADEON=yCONFIG_DRM_I810=yCONFIG_DRM_I830=y
# CONFIG_DRM_I915 is not setCONFIG_DRM_MGA=yCONFIG_DRM_SIS=yCONFIG_DRM_VIA=yCONFIG_DRM_SAVAGE=yCONFIG_VGASTATE=yCONFIG_VIDEO_OUTPUT_CONTROL=yCONFIG_FB=yCONFIG_FIRMWARE_EDID=yCONFIG_FB_DDC=yCONFIG_FB_CFB_FILLRECT=yCONFIG_FB_CFB_COPYAREA=yCONFIG_FB_CFB_IMAGEBLIT=y
# CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not setCONFIG_FB_SYS_FILLRECT=yCONFIG_FB_SYS_COPYAREA=yCONFIG_FB_SYS_IMAGEBLIT=yCONFIG_FB_FOREIGN_ENDIAN=yCONFIG_FB_BOTH_ENDIAN=y
# CONFIG_FB_BIG_ENDIAN is not set
# CONFIG_FB_LITTLE_ENDIAN is not setCONFIG_FB_SYS_FOPS=yCONFIG_FB_DEFERRED_IO=yCONFIG_FB_HECUBA=yCONFIG_FB_SVGALIB=y
# CONFIG_FB_MACMODES is not setCONFIG_FB_BACKLIGHT=yCONFIG_FB_MODE_HELPERS=yCONFIG_FB_TILEBLITTING=y
#
# Frame buffer hardware drivers
#CONFIG_FB_PM2=yCONFIG_FB_PM2_FIFO_DISCONNECT=yCONFIG_FB_CYBER2000=yCONFIG_FB_ARC=yCONFIG_FB_IMSTT=yCONFIG_FB_UVESA=yCONFIG_FB_EFI=yCONFIG_FB_IMAC=yCONFIG_FB_N411=yCONFIG_FB_HGA=yCONFIG_FB_HGA_ACCEL=yCONFIG_FB_S1D13XXX=yCONFIG_FB_NVIDIA=yCONFIG_FB_NVIDIA_I2C=yCONFIG_FB_NVIDIA_DEBUG=yCONFIG_FB_NVIDIA_BACKLIGHT=yCONFIG_FB_RIVA=yCONFIG_FB_RIVA_I2C=yCONFIG_FB_RIVA_DEBUG=yCONFIG_FB_RIVA_BACKLIGHT=yCONFIG_FB_I810=yCONFIG_FB_I810_GTF=yCONFIG_FB_I810_I2C=yCONFIG_FB_LE80578=yCONFIG_FB_CARILLO_RANCH=yCONFIG_FB_INTEL=yCONFIG_FB_INTEL_DEBUG=yCONFIG_FB_INTEL_I2C=yCONFIG_FB_MATROX=yCONFIG_FB_MATROX_MILLENIUM=yCONFIG_FB_MATROX_MYSTIQUE=yCONFIG_FB_MATROX_G=yCONFIG_FB_MATROX_I2C=yCONFIG_FB_MATROX_MAVEN=yCONFIG_FB_MATROX_MULTIHEAD=yCONFIG_FB_ATY128=yCONFIG_FB_ATY128_BACKLIGHT=yCONFIG_FB_ATY=yCONFIG_FB_ATY_CT=yCONFIG_FB_ATY_GENERIC_LCD=yCONFIG_FB_ATY_GX=yCONFIG_FB_ATY_BACKLIGHT=yCONFIG_FB_S3=yCONFIG_FB_SAVAGE=yCONFIG_FB_SAVAGE_I2C=yCONFIG_FB_SAVAGE_ACCEL=yCONFIG_FB_SIS=yCONFIG_FB_SIS_300=yCONFIG_FB_SIS_315=yCONFIG_FB_NEOMAGIC=yCONFIG_FB_KYRO=yCONFIG_FB_3DFX=yCONFIG_FB_3DFX_ACCEL=yCONFIG_FB_VOODOO1=yCONFIG_FB_VT8623=yCONFIG_FB_TRIDENT=yCONFIG_FB_TRIDENT_ACCEL=yCONFIG_FB_ARK=yCONFIG_FB_PM3=yCONFIG_FB_CARMINE=yCONFIG_FB_CARMINE_DRAM_EVAL=y
# CONFIG_CARMINE_DRAM_CUSTOM is not setCONFIG_FB_GEODE=yCONFIG_FB_GEODE_LX=yCONFIG_FB_GEODE_GX=yCONFIG_FB_GEODE_GX1=yCONFIG_FB_SM501=yCONFIG_BACKLIGHT_LCD_SUPPORT=yCONFIG_LCD_CLASS_DEVICE=yCONFIG_LCD_LTV350QV=yCONFIG_LCD_ILI9320=yCONFIG_LCD_VGG2432A4=yCONFIG_LCD_PLATFORM=yCONFIG_BACKLIGHT_CLASS_DEVICE=yCONFIG_BACKLIGHT_CORGI=yCONFIG_BACKLIGHT_PROGEAR=yCONFIG_BACKLIGHT_CARILLO_RANCH=yCONFIG_BACKLIGHT_MBP_NVIDIA=y
#
# Display device support
#CONFIG_DISPLAY_SUPPORT=y
#
# Display hardware drivers
#
#
# Console display driver support
#CONFIG_VGA_CONSOLE=y CONFIG_VGACON_SOFT_SCROLLBACK=y CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=64 CONFIG_DUMMY_CONSOLE=y
CONFIG_FONT_8x16=yCONFIG_LOGO=yCONFIG_LOGO_LINUX_MONO=y CONFIG_LOGO_LINUX_VGA16=y CONFIG_LOGO_LINUX_CLUT224=yCONFIG_SOUND=yCONFIG_SND=yCONFIG_SND_TIMER=yCONFIG_SND_PCM=yCONFIG_SND_HWDEP=yCONFIG_SND_RAWMIDI=yCONFIG_SND_SEQUENCER=y CONFIG_SND_SEQ_DUMMY=yCONFIG_SND_OSSEMUL=yCONFIG_SND_MIXER_OSS=yCONFIG_SND_PCM_OSS=y CONFIG_SND_PCM_OSS_PLUGINS=y CONFIG_SND_SEQUENCER_OSS=y CONFIG_SND_DYNAMIC_MINORS=y CONFIG_SND_SUPPORT_OLD_API=y CONFIG_SND_VERBOSE_PROCFS=y CONFIG_SND_VERBOSE_PRINTK=y CONFIG_SND_DEBUG=y CONFIG_SND_DEBUG_VERBOSE=y CONFIG_SND_PCM_XRUN_DEBUG=y CONFIG_SND_VMASTER=y CONFIG_SND_MPU401_UART=y CONFIG_SND_OPL3_LIB=yCONFIG_SND_OPL4_LIB=yCONFIG_SND_VX_LIB=yCONFIG_SND_AC97_CODEC=y CONFIG_SND_DRIVERS=yCONFIG_SND_PCSP=yCONFIG_SND_DUMMY=yCONFIG_SND_VIRMIDI=yCONFIG_SND_MTPAV=yCONFIG_SND_MTS64=y CONFIG_SND_SERIAL_U16550=y CONFIG_SND_MPU401=yCONFIG_SND_PORTMAN2X4=y CONFIG_SND_AC97_POWER_SAVE=y CONFIG_SND_AC97_POWER_SAVE_DEFAULT=0 CONFIG_SND_AD1848_LIB=y CONFIG_SND_CS4231_LIB=y CONFIG_SND_SB_COMMON=yCONFIG_SND_SB8_DSP=yCONFIG_SND_SB16_DSP=yCONFIG_SND_ISA=yCONFIG_SND_ADLIB=yCONFIG_SND_AD1816A=yCONFIG_SND_AD1848=yCONFIG_SND_ALS100=yCONFIG_SND_AZT2320=yCONFIG_SND_CMI8330=yCONFIG_SND_CS4231=yCONFIG_SND_CS4232=yCONFIG_SND_CS4236=yCONFIG_SND_DT019X=yCONFIG_SND_ES968=yCONFIG_SND_ES1688=yCONFIG_SND_ES18XX=yCONFIG_SND_SC6000=yCONFIG_SND_GUSCLASSIC=y CONFIG_SND_GUSEXTREME=yCONFIG_SND_GUSMAX=yCONFIG_SND_INTERWAVE=y CONFIG_SND_INTERWAVE_STB=y CONFIG_SND_OPL3SA2=y CONFIG_SND_OPTI92X_AD1848=y CONFIG_SND_OPTI92X_CS4231=y CONFIG_SND_OPTI93X=yCONFIG_SND_MIRO=yCONFIG_SND_SB8=yCONFIG_SND_SB16=yCONFIG_SND_SBAWE=yCONFIG_SND_SB16_CSP=yCONFIG_SND_SGALAXY=yCONFIG_SND_SSCAPE=yCONFIG_SND_WAVEFRONT=y CONFIG_SND_WAVEFRONT_FIRMWARE_IN_KERNEL=y CONFIG_SND_PCI=yCONFIG_SND_AD1889=yCONFIG_SND_ALS300=yCONFIG_SND_ALS4000=yCONFIG_SND_ALI5451=yCONFIG_SND_ATIIXP=y CONFIG_SND_ATIIXP_MODEM=y CONFIG_SND_AU8810=yCONFIG_SND_AU8820=yCONFIG_SND_AU8830=yCONFIG_SND_AW2=yCONFIG_SND_AZT3328=yCONFIG_SND_BT87X=y CONFIG_SND_BT87X_OVERCLOCK=y CONFIG_SND_CA0106=yCONFIG_SND_CMIPCI=yCONFIG_SND_OXYGEN_LIB=yCONFIG_SND_OXYGEN=yCONFIG_SND_CS4281=yCONFIG_SND_CS46XX=y CONFIG_SND_CS46XX_NEW_DSP=y CONFIG_SND_CS5530=y CONFIG_SND_CS5535AUDIO=y CONFIG_SND_DARLA20=yCONFIG_SND_GINA20=yCONFIG_SND_LAYLA20=yCONFIG_SND_DARLA24=yCONFIG_SND_GINA24=yCONFIG_SND_LAYLA24=yCONFIG_SND_MONA=yCONFIG_SND_MIA=yCONFIG_SND_ECHO3G=yCONFIG_SND_INDIGO=yCONFIG_SND_INDIGOIO=yCONFIG_SND_INDIGODJ=yCONFIG_SND_EMU10K1=yCONFIG_SND_EMU10K1X=yCONFIG_SND_ENS1370=yCONFIG_SND_ENS1371=yCONFIG_SND_ES1938=yCONFIG_SND_ES1968=yCONFIG_SND_FM801=y CONFIG_SND_FM801_TEA575X_BOOL=y CONFIG_SND_FM801_TEA575X=y CONFIG_SND_HDA_INTEL=y CONFIG_SND_HDA_HWDEP=y CONFIG_SND_HDA_CODEC_REALTEK=y CONFIG_SND_HDA_CODEC_ANALOG=y CONFIG_SND_HDA_CODEC_SIGMATEL=y CONFIG_SND_HDA_CODEC_VIA=y CONFIG_SND_HDA_CODEC_ATIHDMI=y CONFIG_SND_HDA_CODEC_CONEXANT=y CONFIG_SND_HDA_CODEC_CMEDIA=y CONFIG_SND_HDA_CODEC_SI3054=y CONFIG_SND_HDA_GENERIC=y CONFIG_SND_HDA_POWER_SAVE=y CONFIG_SND_HDA_POWER_SAVE_DEFAULT=0 CONFIG_SND_HDSP=yCONFIG_SND_HDSPM=yCONFIG_SND_HIFIER=yCONFIG_SND_ICE1712=yCONFIG_SND_ICE1724=yCONFIG_SND_INTEL8X0=y CONFIG_SND_INTEL8X0M=y CONFIG_SND_KORG1212=yCONFIG_SND_MAESTRO3=yCONFIG_SND_MIXART=yCONFIG_SND_NM256=yCONFIG_SND_PCXHR=yCONFIG_SND_RIPTIDE=yCONFIG_SND_RME32=yCONFIG_SND_RME96=yCONFIG_SND_RME9652=yCONFIG_SND_SIS7019=y CONFIG_SND_SONICVIBES=y CONFIG_SND_TRIDENT=yCONFIG_SND_VIA82XX=y CONFIG_SND_VIA82XX_MODEM=y CONFIG_SND_VIRTUOSO=yCONFIG_SND_VX222=yCONFIG_SND_YMFPCI=yCONFIG_SND_SPI=yCONFIG_SND_USB=yCONFIG_SND_USB_AUDIO=y CONFIG_SND_USB_USX2Y=y CONFIG_SND_USB_CAIAQ=y CONFIG_SND_USB_CAIAQ_INPUT=y CONFIG_SND_PCMCIA=yCONFIG_SND_VXPOCKET=y CONFIG_SND_PDAUDIOCF=yCONFIG_SND_SOC=yCONFIG_SOUND_PRIME=y CONFIG_SOUND_MSNDCLAS=m CONFIG_MSNDCLAS_INIT_FILE="/etc/sound/msndinit.bin" CONFIG_MSNDCLAS_PERM_FILE="/etc/sound/msndperm.bin" CONFIG_SOUND_MSNDPIN=m CONFIG_MSNDPIN_INIT_FILE="/etc/sound/pndspini.bin" CONFIG_MSNDPIN_PERM_FILE="/etc/sound/pndsperm.bin" CONFIG_SOUND_OSS=yCONFIG_SOUND_TRACEINIT=y CONFIG_SOUND_DMAP=yCONFIG_SOUND_SSCAPE=yCONFIG_SOUND_VMIDI=yCONFIG_SOUND_TRIX=yCONFIG_SOUND_MSS=yCONFIG_SOUND_MPU401=yCONFIG_SOUND_PAS=yCONFIG_PAS_JOYSTICK=yCONFIG_SOUND_PSS=yCONFIG_PSS_MIXER=yCONFIG_SOUND_SB=yCONFIG_SOUND_YM3812=y CONFIG_SOUND_UART6850=y CONFIG_SOUND_AEDSP16=yCONFIG_SC6600=yCONFIG_SC6600_JOY=yCONFIG_SC6600_CDROM=4 CONFIG_SC6600_CDROMBASE=0 CONFIG_AEDSP16_MSS=y
# CONFIG_AEDSP16_SBPRO is not set CONFIG_SOUND_KAHLUA=yCONFIG_AC97_BUS=yCONFIG_HID_SUPPORT=yCONFIG_HID=yCONFIG_HID_DEBUG=yCONFIG_HIDRAW=y
#
# USB Input Devices
#CONFIG_USB_HID=yCONFIG_USB_HIDINPUT_POWERBOOK=yCONFIG_HID_FF=yCONFIG_HID_PID=yCONFIG_LOGITECH_FF=yCONFIG_LOGIRUMBLEPAD2_FF=yCONFIG_PANTHERLORD_FF=yCONFIG_THRUSTMASTER_FF=yCONFIG_ZEROPLUS_FF=yCONFIG_USB_HIDDEV=yCONFIG_USB_MOUSE=yCONFIG_USB_SUPPORT=yCONFIG_USB_ARCH_HAS_HCD=yCONFIG_USB_ARCH_HAS_OHCI=yCONFIG_USB_ARCH_HAS_EHCI=yCONFIG_USB=yCONFIG_USB_DEBUG=yCONFIG_USB_ANNOUNCE_NEW_DEVICES=y
#
# Miscellaneous USB options
#CONFIG_USB_DEVICEFS=yCONFIG_USB_DEVICE_CLASS=yCONFIG_USB_DYNAMIC_MINORS=yCONFIG_USB_SUSPEND=y
# CONFIG_USB_OTG is not setCONFIG_USB_OTG_WHITELIST=yCONFIG_USB_OTG_BLACKLIST_HUB=yCONFIG_USB_MON=y
#
# USB Host Controller Drivers
#CONFIG_USB_C67X00_HCD=yCONFIG_USB_EHCI_HCD=yCONFIG_USB_EHCI_ROOT_HUB_TT=yCONFIG_USB_EHCI_TT_NEWSCHED=yCONFIG_USB_ISP116X_HCD=yCONFIG_USB_ISP1760_HCD=yCONFIG_USB_ISP1760_PCI=yCONFIG_USB_OHCI_HCD=yCONFIG_USB_OHCI_HCD_SSB=y
# CONFIG_USB_OHCI_BIG_ENDIAN_DESC is not set
# CONFIG_USB_OHCI_BIG_ENDIAN_MMIO is not setCONFIG_USB_OHCI_LITTLE_ENDIAN=yCONFIG_USB_UHCI_HCD=yCONFIG_USB_U132_HCD=yCONFIG_USB_SL811_HCD=yCONFIG_USB_SL811_CS=yCONFIG_USB_R8A66597_HCD=y
#
# USB Device Class drivers
#CONFIG_USB_ACM=yCONFIG_USB_PRINTER=yCONFIG_USB_WDM=y
#
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' #
#
# may also be needed; see USB_STORAGE Help for more information # CONFIG_USB_STORAGE=y CONFIG_USB_STORAGE_DEBUG=y CONFIG_USB_STORAGE_DATAFAB=y CONFIG_USB_STORAGE_FREECOM=y CONFIG_USB_STORAGE_ISD200=y CONFIG_USB_STORAGE_DPCM=y CONFIG_USB_STORAGE_USBAT=y CONFIG_USB_STORAGE_SDDR09=y CONFIG_USB_STORAGE_SDDR55=y CONFIG_USB_STORAGE_JUMPSHOT=y CONFIG_USB_STORAGE_ALAUDA=y CONFIG_USB_STORAGE_ONETOUCH=y CONFIG_USB_STORAGE_KARMA=y CONFIG_USB_STORAGE_CYPRESS_ATACB=y CONFIG_USB_LIBUSUAL=y
#
# USB Imaging devices
#CONFIG_USB_MDC800=yCONFIG_USB_MICROTEK=y
#
# USB port drivers
#CONFIG_USB_USS720=yCONFIG_USB_SERIAL=yCONFIG_USB_SERIAL_CONSOLE=yCONFIG_USB_EZUSB=yCONFIG_USB_SERIAL_GENERIC=yCONFIG_USB_SERIAL_AIRCABLE=yCONFIG_USB_SERIAL_ARK3116=yCONFIG_USB_SERIAL_BELKIN=yCONFIG_USB_SERIAL_CH341=yCONFIG_USB_SERIAL_WHITEHEAT=yCONFIG_USB_SERIAL_DIGI_ACCELEPORT=yCONFIG_USB_SERIAL_CP2101=yCONFIG_USB_SERIAL_CYPRESS_M8=yCONFIG_USB_SERIAL_EMPEG=yCONFIG_USB_SERIAL_FTDI_SIO=yCONFIG_USB_SERIAL_FUNSOFT=yCONFIG_USB_SERIAL_VISOR=yCONFIG_USB_SERIAL_IPAQ=yCONFIG_USB_SERIAL_IR=yCONFIG_USB_SERIAL_EDGEPORT=yCONFIG_USB_SERIAL_EDGEPORT_TI=yCONFIG_USB_SERIAL_GARMIN=yCONFIG_USB_SERIAL_IPW=yCONFIG_USB_SERIAL_IUU=yCONFIG_USB_SERIAL_KEYSPAN_PDA=yCONFIG_USB_SERIAL_KEYSPAN=yCONFIG_USB_SERIAL_KEYSPAN_MPR=yCONFIG_USB_SERIAL_KEYSPAN_USA28=yCONFIG_USB_SERIAL_KEYSPAN_USA28X=yCONFIG_USB_SERIAL_KEYSPAN_USA28XA=yCONFIG_USB_SERIAL_KEYSPAN_USA28XB=yCONFIG_USB_SERIAL_KEYSPAN_USA19=yCONFIG_USB_SERIAL_KEYSPAN_USA18X=yCONFIG_USB_SERIAL_KEYSPAN_USA19W=yCONFIG_USB_SERIAL_KEYSPAN_USA19QW=yCONFIG_USB_SERIAL_KEYSPAN_USA19QI=yCONFIG_USB_SERIAL_KEYSPAN_USA49W=yCONFIG_USB_SERIAL_KEYSPAN_USA49WLC=yCONFIG_USB_SERIAL_KLSI=yCONFIG_USB_SERIAL_KOBIL_SCT=yCONFIG_USB_SERIAL_MCT_U232=yCONFIG_USB_SERIAL_MOS7720=yCONFIG_USB_SERIAL_MOS7840=yCONFIG_USB_SERIAL_MOTOROLA=yCONFIG_USB_SERIAL_NAVMAN=yCONFIG_USB_SERIAL_PL2303=yCONFIG_USB_SERIAL_OTI6858=yCONFIG_USB_SERIAL_SPCP8X5=yCONFIG_USB_SERIAL_HP4X=yCONFIG_USB_SERIAL_SAFE=yCONFIG_USB_SERIAL_SAFE_PADDED=yCONFIG_USB_SERIAL_SIERRAWIRELESS=yCONFIG_USB_SERIAL_TI=yCONFIG_USB_SERIAL_CYBERJACK=yCONFIG_USB_SERIAL_XIRCOM=yCONFIG_USB_SERIAL_OPTION=yCONFIG_USB_SERIAL_OMNINET=yCONFIG_USB_SERIAL_DEBUG=y
#
# USB Miscellaneous drivers
#CONFIG_USB_EMI62=yCONFIG_USB_EMI26=yCONFIG_USB_ADUTUX=yCONFIG_USB_RIO500=yCONFIG_USB_LEGOTOWER=yCONFIG_USB_LCD=yCONFIG_USB_BERRY_CHARGE=yCONFIG_USB_LED=yCONFIG_USB_CYPRESS_CY7C63=yCONFIG_USB_CYTHERM=yCONFIG_USB_PHIDGET=yCONFIG_USB_PHIDGETKIT=yCONFIG_USB_PHIDGETMOTORCONTROL=yCONFIG_USB_PHIDGETSERVO=yCONFIG_USB_IDMOUSE=yCONFIG_USB_FTDI_ELAN=yCONFIG_USB_APPLEDISPLAY=yCONFIG_USB_SISUSBVGA=yCONFIG_USB_SISUSBVGA_CON=yCONFIG_USB_LD=yCONFIG_USB_TRANCEVIBRATOR=yCONFIG_USB_IOWARRIOR=yCONFIG_USB_TEST=yCONFIG_USB_ISIGHTFW=yCONFIG_USB_ATM=yCONFIG_USB_SPEEDTOUCH=yCONFIG_USB_CXACRU=yCONFIG_USB_UEAGLEATM=yCONFIG_USB_XUSBATM=yCONFIG_MMC=yCONFIG_MMC_DEBUG=yCONFIG_MMC_UNSAFE_RESUME=y
#
# MMC/SD Card Drivers
#CONFIG_MMC_BLOCK=yCONFIG_MMC_BLOCK_BOUNCE=yCONFIG_SDIO_UART=yCONFIG_MMC_TEST=y
#
# MMC/SD Host Controller Drivers
#CONFIG_MMC_SDHCI=yCONFIG_MMC_SDHCI_PCI=yCONFIG_MMC_RICOH_MMC=yCONFIG_MMC_WBSD=yCONFIG_MMC_TIFM_SD=yCONFIG_MMC_SDRICOH_CS=yCONFIG_MEMSTICK=yCONFIG_MEMSTICK_DEBUG=y
#
# MemoryStick drivers
#CONFIG_MEMSTICK_UNSAFE_RESUME=yCONFIG_MSPRO_BLOCK=y
#
# MemoryStick Host Controller Drivers
#CONFIG_MEMSTICK_TIFM_MS=yCONFIG_MEMSTICK_JMICRON_38X=yCONFIG_NEW_LEDS=yCONFIG_LEDS_CLASS=y
#
# LED drivers
#CONFIG_LEDS_NET48XX=yCONFIG_LEDS_WRAP=yCONFIG_LEDS_PCA9532=yCONFIG_LEDS_GPIO=yCONFIG_LEDS_CLEVO_MAIL=yCONFIG_LEDS_PCA955X=y
#
# LED Triggers
#CONFIG_LEDS_TRIGGERS=yCONFIG_LEDS_TRIGGER_TIMER=yCONFIG_LEDS_TRIGGER_HEARTBEAT=yCONFIG_LEDS_TRIGGER_DEFAULT_ON=yCONFIG_ACCESSIBILITY=yCONFIG_A11Y_BRAILLE_CONSOLE=yCONFIG_INFINIBAND=yCONFIG_INFINIBAND_USER_MAD=yCONFIG_INFINIBAND_USER_ACCESS=yCONFIG_INFINIBAND_USER_MEM=yCONFIG_INFINIBAND_ADDR_TRANS=yCONFIG_INFINIBAND_MTHCA=yCONFIG_INFINIBAND_MTHCA_DEBUG=yCONFIG_INFINIBAND_AMSO1100=yCONFIG_INFINIBAND_AMSO1100_DEBUG=yCONFIG_INFINIBAND_CXGB3=yCONFIG_INFINIBAND_CXGB3_DEBUG=yCONFIG_MLX4_INFINIBAND=yCONFIG_INFINIBAND_NES=yCONFIG_INFINIBAND_NES_DEBUG=yCONFIG_INFINIBAND_IPOIB=yCONFIG_INFINIBAND_IPOIB_CM=yCONFIG_INFINIBAND_IPOIB_DEBUG=yCONFIG_INFINIBAND_IPOIB_DEBUG_DATA=yCONFIG_INFINIBAND_SRP=yCONFIG_INFINIBAND_ISER=yCONFIG_EDAC=y
#
# Reporting subsystems
#CONFIG_EDAC_DEBUG=yCONFIG_EDAC_MM_EDAC=yCONFIG_EDAC_AMD76X=yCONFIG_EDAC_E7XXX=yCONFIG_EDAC_E752X=yCONFIG_EDAC_I82875P=yCONFIG_EDAC_I82975X=yCONFIG_EDAC_I3000=yCONFIG_EDAC_I82860=yCONFIG_EDAC_R82600=yCONFIG_EDAC_I5000=yCONFIG_EDAC_I5100=yCONFIG_RTC_LIB=yCONFIG_RTC_CLASS=yCONFIG_RTC_HCTOSYS=yCONFIG_RTC_HCTOSYS_DEVICE="rtc0"CONFIG_RTC_DEBUG=y
#
# RTC interfaces
#CONFIG_RTC_INTF_SYSFS=yCONFIG_RTC_INTF_PROC=yCONFIG_RTC_INTF_DEV=yCONFIG_RTC_INTF_DEV_UIE_EMUL=yCONFIG_RTC_DRV_TEST=y
#
# I2C RTC drivers
#CONFIG_RTC_DRV_DS1307=yCONFIG_RTC_DRV_DS1374=yCONFIG_RTC_DRV_DS1672=yCONFIG_RTC_DRV_MAX6900=yCONFIG_RTC_DRV_RS5C372=yCONFIG_RTC_DRV_ISL1208=yCONFIG_RTC_DRV_X1205=yCONFIG_RTC_DRV_PCF8563=yCONFIG_RTC_DRV_PCF8583=yCONFIG_RTC_DRV_M41T80=yCONFIG_RTC_DRV_M41T80_WDT=yCONFIG_RTC_DRV_S35390A=yCONFIG_RTC_DRV_FM3130=y
#
# SPI RTC drivers
#CONFIG_RTC_DRV_M41T94=yCONFIG_RTC_DRV_DS1305=yCONFIG_RTC_DRV_MAX6902=yCONFIG_RTC_DRV_R9701=yCONFIG_RTC_DRV_RS5C348=y
#
# Platform RTC drivers
#CONFIG_RTC_DRV_CMOS=yCONFIG_RTC_DRV_DS1511=yCONFIG_RTC_DRV_DS1553=yCONFIG_RTC_DRV_DS1742=yCONFIG_RTC_DRV_STK17TA8=yCONFIG_RTC_DRV_M48T86=yCONFIG_RTC_DRV_M48T59=yCONFIG_RTC_DRV_V3020=y
#
# on-CPU RTC drivers
#CONFIG_DMADEVICES=y
#
# DMA Devices
#CONFIG_INTEL_IOATDMA=yCONFIG_DMA_ENGINE=y
#
# DMA Clients
#CONFIG_NET_DMA=yCONFIG_DMATEST=yCONFIG_DCA=yCONFIG_AUXDISPLAY=yCONFIG_KS0108=yCONFIG_KS0108_PORT=0x378CONFIG_KS0108_DELAY=2CONFIG_CFAG12864B=yCONFIG_CFAG12864B_RATE=20CONFIG_UIO=yCONFIG_UIO_CIF=yCONFIG_UIO_PDRV=yCONFIG_UIO_PDRV_GENIRQ=yCONFIG_UIO_SMX=y
#
# Firmware Drivers
#CONFIG_EDD=yCONFIG_EDD_OFF=yCONFIG_FIRMWARE_MEMMAP=yCONFIG_EFI_VARS=yCONFIG_DELL_RBU=yCONFIG_DCDBAS=yCONFIG_DMIID=yCONFIG_ISCSI_IBFT_FIND=yCONFIG_ISCSI_IBFT=y
#
# File systems
#CONFIG_EXT2_FS=yCONFIG_EXT2_FS_XATTR=yCONFIG_EXT2_FS_POSIX_ACL=yCONFIG_EXT2_FS_SECURITY=yCONFIG_EXT2_FS_XIP=yCONFIG_FS_XIP=yCONFIG_EXT3_FS=yCONFIG_EXT3_FS_XATTR=yCONFIG_EXT3_FS_POSIX_ACL=yCONFIG_EXT3_FS_SECURITY=yCONFIG_EXT4DEV_FS=yCONFIG_EXT4DEV_FS_XATTR=yCONFIG_EXT4DEV_FS_POSIX_ACL=yCONFIG_EXT4DEV_FS_SECURITY=yCONFIG_JBD=yCONFIG_JBD_DEBUG=yCONFIG_JBD2=yCONFIG_JBD2_DEBUG=yCONFIG_FS_MBCACHE=yCONFIG_REISERFS_FS=yCONFIG_REISERFS_CHECK=yCONFIG_REISERFS_PROC_INFO=yCONFIG_REISERFS_FS_XATTR=yCONFIG_REISERFS_FS_POSIX_ACL=yCONFIG_REISERFS_FS_SECURITY=yCONFIG_JFS_FS=yCONFIG_JFS_POSIX_ACL=yCONFIG_JFS_SECURITY=yCONFIG_JFS_DEBUG=yCONFIG_JFS_STATISTICS=yCONFIG_FS_POSIX_ACL=yCONFIG_XFS_FS=yCONFIG_XFS_QUOTA=yCONFIG_XFS_POSIX_ACL=yCONFIG_XFS_RT=yCONFIG_XFS_DEBUG=yCONFIG_GFS2_FS=yCONFIG_GFS2_FS_LOCKING_DLM=yCONFIG_OCFS2_FS=yCONFIG_OCFS2_FS_O2CB=yCONFIG_OCFS2_FS_USERSPACE_CLUSTER=yCONFIG_OCFS2_FS_STATS=yCONFIG_OCFS2_DEBUG_MASKLOG=yCONFIG_OCFS2_DEBUG_FS=yCONFIG_DNOTIFY=yCONFIG_INOTIFY=yCONFIG_INOTIFY_USER=yCONFIG_QUOTA=yCONFIG_QUOTA_NETLINK_INTERFACE=yCONFIG_PRINT_QUOTA_WARNING=yCONFIG_QFMT_V1=yCONFIG_QFMT_V2=yCONFIG_QUOTACTL=yCONFIG_AUTOFS_FS=yCONFIG_AUTOFS4_FS=yCONFIG_FUSE_FS=yCONFIG_GENERIC_ACL=y
#
# CD-ROM/DVD Filesystems
#CONFIG_ISO9660_FS=yCONFIG_JOLIET=yCONFIG_ZISOFS=yCONFIG_UDF_FS=yCONFIG_UDF_NLS=y
#
# DOS/FAT/NT Filesystems
#CONFIG_FAT_FS=yCONFIG_MSDOS_FS=yCONFIG_VFAT_FS=yCONFIG_FAT_DEFAULT_CODEPAGE=437CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"CONFIG_NTFS_FS=yCONFIG_NTFS_DEBUG=yCONFIG_NTFS_RW=y
#
# Pseudo filesystems
#CONFIG_PROC_FS=yCONFIG_PROC_KCORE=yCONFIG_PROC_VMCORE=yCONFIG_PROC_SYSCTL=yCONFIG_SYSFS=yCONFIG_TMPFS=yCONFIG_TMPFS_POSIX_ACL=yCONFIG_HUGETLBFS=yCONFIG_HUGETLB_PAGE=yCONFIG_CONFIGFS_FS=y
#
# Miscellaneous filesystems
#CONFIG_ADFS_FS=yCONFIG_ADFS_FS_RW=yCONFIG_AFFS_FS=yCONFIG_HFS_FS=yCONFIG_HFSPLUS_FS=yCONFIG_BEFS_FS=yCONFIG_BEFS_DEBUG=yCONFIG_BFS_FS=yCONFIG_EFS_FS=yCONFIG_CRAMFS=yCONFIG_VXFS_FS=yCONFIG_MINIX_FS=yCONFIG_OMFS_FS=yCONFIG_HPFS_FS=yCONFIG_QNX4FS_FS=yCONFIG_ROMFS_FS=yCONFIG_SYSV_FS=yCONFIG_UFS_FS=yCONFIG_UFS_FS_WRITE=yCONFIG_UFS_DEBUG=yCONFIG_NETWORK_FILESYSTEMS=yCONFIG_NFS_FS=yCONFIG_NFS_V3=yCONFIG_NFS_V3_ACL=yCONFIG_NFS_V4=yCONFIG_NFSD=yCONFIG_NFSD_V2_ACL=yCONFIG_NFSD_V3=yCONFIG_NFSD_V3_ACL=yCONFIG_NFSD_V4=yCONFIG_LOCKD=yCONFIG_LOCKD_V4=yCONFIG_EXPORTFS=yCONFIG_NFS_ACL_SUPPORT=yCONFIG_NFS_COMMON=yCONFIG_SUNRPC=yCONFIG_SUNRPC_GSS=yCONFIG_SUNRPC_XPRT_RDMA=yCONFIG_RPCSEC_GSS_KRB5=yCONFIG_RPCSEC_GSS_SPKM3=yCONFIG_SMB_FS=yCONFIG_SMB_NLS_DEFAULT=yCONFIG_SMB_NLS_REMOTE="cp437"CONFIG_CIFS=yCONFIG_CIFS_STATS=yCONFIG_CIFS_STATS2=yCONFIG_CIFS_WEAK_PW_HASH=yCONFIG_CIFS_UPCALL=yCONFIG_CIFS_XATTR=yCONFIG_CIFS_POSIX=yCONFIG_CIFS_DEBUG2=yCONFIG_CIFS_EXPERIMENTAL=yCONFIG_CIFS_DFS_UPCALL=yCONFIG_NCP_FS=yCONFIG_NCPFS_PACKET_SIGNING=yCONFIG_NCPFS_IOCTL_LOCKING=yCONFIG_NCPFS_STRONG=yCONFIG_NCPFS_NFS_NS=yCONFIG_NCPFS_OS2_NS=yCONFIG_NCPFS_SMALLDOS=yCONFIG_NCPFS_NLS=yCONFIG_NCPFS_EXTRAS=yCONFIG_CODA_FS=yCONFIG_AFS_FS=yCONFIG_AFS_DEBUG=yCONFIG_9P_FS=y
#
# Partition Types
#CONFIG_PARTITION_ADVANCED=yCONFIG_ACORN_PARTITION=yCONFIG_ACORN_PARTITION_CUMANA=yCONFIG_ACORN_PARTITION_EESOX=yCONFIG_ACORN_PARTITION_ICS=yCONFIG_ACORN_PARTITION_ADFS=yCONFIG_ACORN_PARTITION_POWERTEC=yCONFIG_ACORN_PARTITION_RISCIX=yCONFIG_OSF_PARTITION=yCONFIG_AMIGA_PARTITION=yCONFIG_ATARI_PARTITION=yCONFIG_MAC_PARTITION=yCONFIG_MSDOS_PARTITION=yCONFIG_BSD_DISKLABEL=yCONFIG_MINIX_SUBPARTITION=yCONFIG_SOLARIS_X86_PARTITION=yCONFIG_UNIXWARE_DISKLABEL=yCONFIG_LDM_PARTITION=yCONFIG_LDM_DEBUG=yCONFIG_SGI_PARTITION=yCONFIG_ULTRIX_PARTITION=yCONFIG_SUN_PARTITION=yCONFIG_KARMA_PARTITION=yCONFIG_EFI_PARTITION=yCONFIG_SYSV68_PARTITION=yCONFIG_NLS=yCONFIG_NLS_DEFAULT="iso8859-1"CONFIG_NLS_CODEPAGE_437=yCONFIG_NLS_CODEPAGE_737=yCONFIG_NLS_CODEPAGE_775=yCONFIG_NLS_CODEPAGE_850=yCONFIG_NLS_CODEPAGE_852=yCONFIG_NLS_CODEPAGE_855=yCONFIG_NLS_CODEPAGE_857=yCONFIG_NLS_CODEPAGE_860=yCONFIG_NLS_CODEPAGE_861=yCONFIG_NLS_CODEPAGE_862=yCONFIG_NLS_CODEPAGE_863=yCONFIG_NLS_CODEPAGE_864=yCONFIG_NLS_CODEPAGE_865=yCONFIG_NLS_CODEPAGE_866=yCONFIG_NLS_CODEPAGE_869=yCONFIG_NLS_CODEPAGE_936=yCONFIG_NLS_CODEPAGE_950=yCONFIG_NLS_CODEPAGE_932=yCONFIG_NLS_CODEPAGE_949=yCONFIG_NLS_CODEPAGE_874=yCONFIG_NLS_ISO8859_8=yCONFIG_NLS_CODEPAGE_1250=yCONFIG_NLS_CODEPAGE_1251=yCONFIG_NLS_ASCII=yCONFIG_NLS_ISO8859_1=yCONFIG_NLS_ISO8859_2=yCONFIG_NLS_ISO8859_3=yCONFIG_NLS_ISO8859_4=yCONFIG_NLS_ISO8859_5=yCONFIG_NLS_ISO8859_6=yCONFIG_NLS_ISO8859_7=yCONFIG_NLS_ISO8859_9=yCONFIG_NLS_ISO8859_13=yCONFIG_NLS_ISO8859_14=yCONFIG_NLS_ISO8859_15=yCONFIG_NLS_KOI8_R=yCONFIG_NLS_KOI8_U=yCONFIG_NLS_UTF8=yCONFIG_DLM=yCONFIG_DLM_DEBUG=y
#
# Kernel hacking
#CONFIG_TRACE_IRQFLAGS_SUPPORT=yCONFIG_PRINTK_TIME=yCONFIG_ENABLE_WARN_DEPRECATED=yCONFIG_ENABLE_MUST_CHECK=yCONFIG_FRAME_WARN=1024CONFIG_MAGIC_SYSRQ=yCONFIG_UNUSED_SYMBOLS=yCONFIG_DEBUG_FS=yCONFIG_HEADERS_CHECK=yCONFIG_DEBUG_KERNEL=yCONFIG_DEBUG_SHIRQ=yCONFIG_DETECT_SOFTLOCKUP=yCONFIG_BOOTPARAM_SOFTLOCKUP_PANIC=yCONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=1CONFIG_SCHED_DEBUG=yCONFIG_SCHEDSTATS=yCONFIG_TIMER_STATS=yCONFIG_DEBUG_OBJECTS=yCONFIG_DEBUG_OBJECTS_SELFTEST=yCONFIG_DEBUG_OBJECTS_FREE=yCONFIG_DEBUG_OBJECTS_TIMERS=yCONFIG_SLUB_DEBUG_ON=yCONFIG_SLUB_STATS=yCONFIG_DEBUG_RT_MUTEXES=yCONFIG_DEBUG_PI_LIST=yCONFIG_RT_MUTEX_TESTER=yCONFIG_DEBUG_SPINLOCK=yCONFIG_DEBUG_MUTEXES=yCONFIG_DEBUG_LOCK_ALLOC=yCONFIG_PROVE_LOCKING=yCONFIG_LOCKDEP=yCONFIG_LOCK_STAT=yCONFIG_DEBUG_LOCKDEP=yCONFIG_TRACE_IRQFLAGS=yCONFIG_DEBUG_SPINLOCK_SLEEP=yCONFIG_DEBUG_LOCKING_API_SELFTESTS=yCONFIG_STACKTRACE=yCONFIG_DEBUG_HIGHMEM=yCONFIG_DEBUG_BUGVERBOSE=yCONFIG_DEBUG_VM=yCONFIG_DEBUG_VIRTUAL=yCONFIG_DEBUG_WRITECOUNT=yCONFIG_DEBUG_MEMORY_INIT=yCONFIG_DEBUG_LIST=yCONFIG_DEBUG_SG=yCONFIG_DEBUG_NOTIFIERS=yCONFIG_FRAME_POINTER=yCONFIG_BOOT_PRINTK_DELAY=yCONFIG_RCU_TORTURE_TEST=yCONFIG_RCU_TORTURE_TEST_RUNNABLE=yCONFIG_RCU_CPU_STALL=yCONFIG_KPROBES_SANITY_TEST=yCONFIG_BACKTRACE_SELF_TEST=yCONFIG_LKDTM=yCONFIG_FAULT_INJECTION=yCONFIG_FAILSLAB=yCONFIG_FAIL_PAGE_ALLOC=yCONFIG_FAIL_MAKE_REQUEST=yCONFIG_FAULT_INJECTION_DEBUG_FS=yCONFIG_FAULT_INJECTION_STACKTRACE_FILTER=yCONFIG_LATENCYTOP=yCONFIG_SYSCTL_SYSCALL_CHECK=yCONFIG_NOP_TRACER=yCONFIG_HAVE_FTRACE=yCONFIG_HAVE_DYNAMIC_FTRACE=yCONFIG_HAVE_FTRACE_MCOUNT_RECORD=yCONFIG_TRACER_MAX_TRACE=yCONFIG_RING_BUFFER=yCONFIG_TRACING=yCONFIG_FTRACE=yCONFIG_IRQSOFF_TRACER=yCONFIG_SYSPROF_TRACER=yCONFIG_SCHED_TRACER=yCONFIG_CONTEXT_SWITCH_TRACER=yCONFIG_BOOT_TRACER=yCONFIG_STACK_TRACER=yCONFIG_DYNAMIC_FTRACE=yCONFIG_FTRACE_MCOUNT_RECORD=yCONFIG_PROVIDE_OHCI1394_DMA_INIT=yCONFIG_FIREWIRE_OHCI_REMOTE_DMA=yCONFIG_BUILD_DOCSRC=yCONFIG_SAMPLES=yCONFIG_SAMPLE_MARKERS=mCONFIG_SAMPLE_TRACEPOINTS=mCONFIG_SAMPLE_KOBJECT=yCONFIG_SAMPLE_KPROBES=mCONFIG_SAMPLE_KRETPROBES=mCONFIG_HAVE_ARCH_KGDB=yCONFIG_KGDB=yCONFIG_KGDB_SERIAL_CONSOLE=yCONFIG_KGDB_TESTS=yCONFIG_STRICT_DEVMEM=yCONFIG_X86_VERBOSE_BOOTUP=yCONFIG_EARLY_PRINTK=yCONFIG_EARLY_PRINTK_DBGP=yCONFIG_DEBUG_STACKOVERFLOW=yCONFIG_DEBUG_STACK_USAGE=yCONFIG_DEBUG_PAGEALLOC=yCONFIG_DEBUG_PER_CPU_MAPS=yCONFIG_X86_PTDUMP=yCONFIG_DEBUG_RODATA=yCONFIG_DEBUG_RODATA_TEST=yCONFIG_DEBUG_NX_TEST=mCONFIG_4KSTACKS=yCONFIG_DOUBLEFAULT=yCONFIG_MMIOTRACE_HOOKS=yCONFIG_MMIOTRACE=yCONFIG_MMIOTRACE_TEST=mCONFIG_IO_DELAY_TYPE_0X80=0CONFIG_IO_DELAY_TYPE_0XED=1CONFIG_IO_DELAY_TYPE_UDELAY=2CONFIG_IO_DELAY_TYPE_NONE=3CONFIG_IO_DELAY_0X80=y
# CONFIG_IO_DELAY_0XED is not set
# CONFIG_IO_DELAY_UDELAY is not set
# CONFIG_IO_DELAY_NONE is not setCONFIG_DEFAULT_IO_DELAY_TYPE=0CONFIG_DEBUG_BOOT_PARAMS=yCONFIG_CPA_DEBUG=yCONFIG_OPTIMIZE_INLINING=y
#
# Security options
#CONFIG_KEYS=yCONFIG_KEYS_DEBUG_PROC_KEYS=y CONFIG_SECURITY=yCONFIG_SECURITY_NETWORK=y CONFIG_SECURITY_NETWORK_XFRM=y CONFIG_SECURITY_FILE_CAPABILITIES=y CONFIG_SECURITY_DEFAULT_MMAP_MIN_ADDR=0 CONFIG_SECURITY_SELINUX=y CONFIG_SECURITY_SELINUX_BOOTPARAM=y CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=1 CONFIG_SECURITY_SELINUX_DISABLE=y CONFIG_SECURITY_SELINUX_DEVELOP=y CONFIG_SECURITY_SELINUX_AVC_STATS=y CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1 CONFIG_SECURITY_SELINUX_POLICYDB_VERSION_MAX=y CONFIG_SECURITY_SELINUX_POLICYDB_VERSION_MAX_VALUE=19 CONFIG_XOR_BLOCKS=yCONFIG_ASYNC_CORE=yCONFIG_ASYNC_MEMCPY=yCONFIG_ASYNC_XOR=yCONFIG_CRYPTO=y
#
# Crypto core or helper
#CONFIG_CRYPTO_ALGAPI=yCONFIG_CRYPTO_AEAD=yCONFIG_CRYPTO_BLKCIPHER=yCONFIG_CRYPTO_HASH=yCONFIG_CRYPTO_MANAGER=yCONFIG_CRYPTO_GF128MUL=yCONFIG_CRYPTO_NULL=yCONFIG_CRYPTO_CRYPTD=yCONFIG_CRYPTO_AUTHENC=yCONFIG_CRYPTO_TEST=m
#
# Authenticated Encryption with Associated Data
#CONFIG_CRYPTO_CCM=yCONFIG_CRYPTO_GCM=yCONFIG_CRYPTO_SEQIV=y
#
# Block modes
#CONFIG_CRYPTO_CBC=yCONFIG_CRYPTO_CTR=yCONFIG_CRYPTO_CTS=yCONFIG_CRYPTO_ECB=yCONFIG_CRYPTO_LRW=yCONFIG_CRYPTO_PCBC=yCONFIG_CRYPTO_XTS=y
#
# Hash modes
#CONFIG_CRYPTO_HMAC=yCONFIG_CRYPTO_XCBC=y
#
# Digest
#CONFIG_CRYPTO_CRC32C=yCONFIG_CRYPTO_MD4=yCONFIG_CRYPTO_MD5=yCONFIG_CRYPTO_MICHAEL_MIC=yCONFIG_CRYPTO_RMD128=yCONFIG_CRYPTO_RMD160=yCONFIG_CRYPTO_RMD256=yCONFIG_CRYPTO_RMD320=yCONFIG_CRYPTO_SHA1=yCONFIG_CRYPTO_SHA256=yCONFIG_CRYPTO_SHA512=yCONFIG_CRYPTO_TGR192=yCONFIG_CRYPTO_WP512=y
#
# Ciphers
#CONFIG_CRYPTO_AES=yCONFIG_CRYPTO_AES_586=yCONFIG_CRYPTO_ANUBIS=yCONFIG_CRYPTO_ARC4=yCONFIG_CRYPTO_BLOWFISH=yCONFIG_CRYPTO_CAMELLIA=yCONFIG_CRYPTO_CAST5=yCONFIG_CRYPTO_CAST6=yCONFIG_CRYPTO_DES=yCONFIG_CRYPTO_FCRYPT=yCONFIG_CRYPTO_KHAZAD=yCONFIG_CRYPTO_SALSA20=yCONFIG_CRYPTO_SALSA20_586=yCONFIG_CRYPTO_SEED=yCONFIG_CRYPTO_SERPENT=yCONFIG_CRYPTO_TEA=yCONFIG_CRYPTO_TWOFISH=yCONFIG_CRYPTO_TWOFISH_COMMON=yCONFIG_CRYPTO_TWOFISH_586=y
#
# Compression
#CONFIG_CRYPTO_DEFLATE=yCONFIG_CRYPTO_LZO=yCONFIG_CRYPTO_HW=yCONFIG_CRYPTO_DEV_PADLOCK=yCONFIG_CRYPTO_DEV_PADLOCK_AES=yCONFIG_CRYPTO_DEV_PADLOCK_SHA=yCONFIG_CRYPTO_DEV_GEODE=yCONFIG_CRYPTO_DEV_HIFN_795X=yCONFIG_CRYPTO_DEV_HIFN_795X_RNG=yCONFIG_HAVE_KVM=yCONFIG_VIRTUALIZATION=yCONFIG_KVM=yCONFIG_KVM_INTEL=yCONFIG_KVM_AMD=yCONFIG_KVM_TRACE=yCONFIG_LGUEST=yCONFIG_VIRTIO=yCONFIG_VIRTIO_RING=yCONFIG_VIRTIO_PCI=yCONFIG_VIRTIO_BALLOON=y
#
# Library routines
#CONFIG_BITREVERSE=yCONFIG_GENERIC_FIND_FIRST_BIT=yCONFIG_GENERIC_FIND_NEXT_BIT=yCONFIG_CRC_CCITT=yCONFIG_CRC16=yCONFIG_CRC_T10DIF=yCONFIG_CRC_ITU_T=yCONFIG_CRC32=yCONFIG_CRC7=yCONFIG_LIBCRC32C=yCONFIG_AUDIT_GENERIC=yCONFIG_ZLIB_INFLATE=yCONFIG_ZLIB_DEFLATE=yCONFIG_LZO_COMPRESS=yCONFIG_LZO_DECOMPRESS=yCONFIG_GENERIC_ALLOCATOR=yCONFIG_TEXTSEARCH=yCONFIG_TEXTSEARCH_KMP=yCONFIG_TEXTSEARCH_BM=yCONFIG_TEXTSEARCH_FSM=yCONFIG_PLIST=yCONFIG_HAS_IOMEM=yCONFIG_HAS_IOPORT=yCONFIG_HAS_DMA=yCONFIG_CHECK_SIGNATURE=yCONFIG_FORCE_SUCCESSFUL_BUILD=yCONFIG_FORCE_MINIMAL_CONFIG=yCONFIG_FORCE_MINIMAL_CONFIG_PHYS=yCONFIG_X86_32_ALWAYS_ON=y
Quoted 3 lines
-tip testing found that tip/tracing/ring-buffer causes a new lockdep splat:
FYI, triggered on a number of 32-bit test-systems as well - see the log below.
Ingo
[ 0.564008] calling tracer_alloc_buffers+0x0/0x16b @ 1 [ 0.574504] ------------[ cut here ]------------ [ 0.576002] WARNING: at kernel/lockdep.c:2880 check_flags+0x5a/0x155() [ 0.576002] Modules linked in: [ 0.576002] Pid: 1, comm: swapper Not tainted 2.6.27-rc8-tip-00915-g8cb18a9-dirty #37502 [ 0.576002] [<c01536c4>] warn_on_slowpath+0x46/0x6a [ 0.576002] [<c0170b14>] ? trace_hardirqs_off+0xb/0xd [ 0.576002] [<c0173294>] ? __lock_acquire+0xa91/0xaad [ 0.576002] [<c01a6470>] ? get_page_from_freelist+0x37b/0x455 [ 0.576002] [<c0170044>] ? __raw_spin_is_locked+0x15/0x18 [ 0.576002] [<c0171cf8>] ? find_usage_backwards+0x21/0xe1 [ 0.576002] [<c019f852>] ? time_hardirqs_off+0xe/0x1f [ 0.576002] [<c0170a66>] ? trace_hardirqs_off_caller+0x15/0xb8 [ 0.576002] [<c0170b14>] ? trace_hardirqs_off+0xb/0xd [ 0.576002] [<c0120ef0>] ? native_sched_clock+0x83/0x9f [ 0.576002] [<c0170169>] check_flags+0x5a/0x155 [ 0.576002] [<c01732ec>] lock_acquire+0x3c/0x97 [ 0.576002] [<c14296e9>] _spin_lock+0x23/0x50 [ 0.576002] [<c019bd32>] ? ring_buffer_reset_cpu+0x3f/0x5f [ 0.576002] [<c019bd32>] ring_buffer_reset_cpu+0x3f/0x5f [ 0.576002] [<c019e314>] tracing_reset+0xa/0xc [ 0.576002] [<c01a0b36>] boot_trace_init+0x24/0x3b [ 0.576002] [<c208577c>] tracer_alloc_buffers+0x137/0x16b [ 0.576002] [<c010113f>] do_one_initcall+0x57/0x149 [ 0.576002] [<c2085645>] ? tracer_alloc_buffers+0x0/0x16b [ 0.576002] [<c207bd1c>] ? setup_boot_APIC_clock+0x4b6/0x4cb [ 0.576002] [<c1421701>] ? print_cpu_info+0x83/0x112 [ 0.576002] [<c2085645>] ? tracer_alloc_buffers+0x0/0x16b [ 0.576002] [<c206a4c6>] kernel_init+0x54/0x1e2 [ 0.576002] [<c206a472>] ? kernel_init+0x0/0x1e2 [ 0.576002] [<c011cbd3>] kernel_thread_helper+0x7/0x10 [ 0.576002] ======================= [ 0.576002] ---[ end trace 4eaa2a86a8e2da22 ]--- [ 0.576002] possible reason: unannotated irqs-off. [ 0.576002] irq event stamp: 5283 [ 0.576002] hardirqs last enabled at (5283): [<c0172396>] trace_hardirqs_on+0xb/0xd [ 0.576002] hardirqs last disabled at (5282): [<c0170b14>] trace_hardirqs_off+0xb/0xd [ 0.576002] softirqs last enabled at (2226): [<c015817d>] __do_softirq+0xe9/0xf1 [ 0.576002] softirqs last disabled at (2219): [<c011e206>] do_softirq+0x7e/0xdf [ 0.576017] initcall tracer_alloc_buffers+0x0/0x16b returned 0 after 7 msecs [ 0.580235] lockdep: fixing up alternatives. [ 0.584057] CPU 1 irqstacks, hard=c2299000 soft=c2291000 [ 0.588007] Booting processor 1 APIC 0x1 ip 0x6000 [ 0.004000] Initializing CPU#1 [ 0.004000] masked ExtINT on CPU#1 [ 0.004000] Calibrating delay using timer specific routine.. 4020.67 BogoMIPS (lpj=8041348)
ok, -tip testing found a serious-looking locking bug:
[ 4.044005] calling init_irqsoff_tracer+0x0/0x11 @ 1
[ 4.048005] Testing tracer irqsoff:
[ 4.056202] =============================================
[ 4.060000] [ INFO: possible recursive locking detected ]
[ 4.060000] 2.6.27-rc8-tip-00917-g01214de-dirty #37512
[ 4.060000] ---------------------------------------------
[ 4.060000] swapper/1 is trying to acquire lock:
[ 4.060000] (&cpu_buffer->lock){++..}, at: [<c015a216>] ring_buffer_lock+0x3b/0x50
[ 4.060000]
[ 4.060000] but task is already holding lock:
[ 4.060000] (&cpu_buffer->lock){++..}, at: [<c015a216>] ring_buffer_lock+0x3b/0x50
[ 4.060000]
[ 4.060000] other info that might help us debug this:
[ 4.060000] 3 locks held by swapper/1:
[ 4.060000] #0: (trace_types_lock){--..}, at: [<c015d758>] register_tracer+0x2f/0x14f
[ 4.060000] #1: (max_trace_lock){....}, at: [<c015eab0>] check_critical_timing+0x5d/0x113
[ 4.060000] #2: (&cpu_buffer->lock){++..}, at: [<c015a216>] ring_buffer_lock+0x3b/0x50
[ 4.060000]
[ 4.060000] stack backtrace:
[ 4.060000] Pid: 1, comm: swapper Not tainted 2.6.27-rc8-tip-00917-g01214de-dirty #37512
[ 4.060000] [<c014446d>] validate_chain+0x4e9/0xb4c
[ 4.060000] [<c0108b54>] ? native_sched_clock+0xe2/0x101
[ 4.060000] [<c014519a>] __lock_acquire+0x6ca/0x730
[ 4.060000] [<c014525b>] lock_acquire+0x5b/0x81
[ 4.060000] [<c015a216>] ? ring_buffer_lock+0x3b/0x50
[ 4.060000] [<c05908cf>] _spin_lock+0x23/0x50
[ 4.060000] [<c015a216>] ? ring_buffer_lock+0x3b/0x50
[ 4.060000] [<c015a216>] ring_buffer_lock+0x3b/0x50
[ 4.060000] [<c015a2b3>] ring_buffer_reset+0x16/0x46
[ 4.060000] [<c015e16f>] update_max_tr_single+0x65/0xc0
[ 4.060000] [<c015eb15>] check_critical_timing+0xc2/0x113
[ 4.060000] [<c015d270>] ? trace_selftest_startup_irqsoff+0x49/0xac
[ 4.060000] [<c015d270>] ? trace_selftest_startup_irqsoff+0x49/0xac
[ 4.060000] [<c015ec0c>] time_hardirqs_on+0xa6/0xb9
[ 4.060000] [<c014393c>] ? trace_hardirqs_on+0xb/0xd
[ 4.060000] [<c01437fb>] trace_hardirqs_on_caller+0x16/0x14c
[ 4.060000] [<c014393c>] trace_hardirqs_on+0xb/0xd
[ 4.060000] [<c015d270>] trace_selftest_startup_irqsoff+0x49/0xac
[ 4.060000] [<c0128ba9>] ? printk+0x1a/0x1c
[ 4.060000] [<c015d7f1>] register_tracer+0xc8/0x14f
[ 4.060000] [<c08803fc>] init_irqsoff_tracer+0xd/0x11
[ 4.060000] [<c010104f>] do_one_initcall+0x4f/0x130
[ 4.060000] [<c08803ef>] ? init_irqsoff_tracer+0x0/0x11
[ 4.060000] [<c0121390>] ? wake_up_process+0xf/0x11
[ 4.060000] [<c0134ab2>] ? start_workqueue_thread+0x22/0x25
[ 4.060000] [<c0134d99>] ? __create_workqueue_key+0xa9/0x141
[ 4.060000] [<c086c5c3>] kernel_init+0x17b/0x1e2
[ 4.060000] [<c086c448>] ? kernel_init+0x0/0x1e2
[ 4.060000] [<c0104ab3>] kernel_thread_helper+0x7/0x10
[ 4.060000] =======================
[ 4.064053] PASSED
[ 4.066133] initcall init_irqsoff_tracer+0x0/0x11 returned 0 after 15 msecs
[ 4.068005] calling init_wakeup_tracer+0x0/0xf @ 1Ingo
Steven Rostedt
maintainerQuoted 9 lines · Ingo Molnar
Quoted 3 lines
-tip testing found that tip/tracing/ring-buffer causes a new lockdep splat:
FYI, triggered on a number of 32-bit test-systems as well - see the log below.
Ingo
Quoted 14 lines
[ 0.564008] calling tracer_alloc_buffers+0x0/0x16b @ 1 [ 0.574504] ------------[ cut here ]------------ [ 0.576002] WARNING: at kernel/lockdep.c:2880 check_flags+0x5a/0x155() [ 0.576002] Modules linked in: [ 0.576002] Pid: 1, comm: swapper Not tainted 2.6.27-rc8-tip-00915-g8cb18a9-dirty #37502 [ 0.576002] [<c01536c4>] warn_on_slowpath+0x46/0x6a [ 0.576002] [<c0170b14>] ? trace_hardirqs_off+0xb/0xd [ 0.576002] [<c0173294>] ? __lock_acquire+0xa91/0xaad [ 0.576002] [<c01a6470>] ? get_page_from_freelist+0x37b/0x455 [ 0.576002] [<c0170044>] ? __raw_spin_is_locked+0x15/0x18 [ 0.576002] [<c0171cf8>] ? find_usage_backwards+0x21/0xe1 [ 0.576002] [<c019f852>] ? time_hardirqs_off+0xe/0x1f [ 0.576002] [<c0170a66>] ? trace_hardirqs_off_caller+0x15/0xb8 [ 0.576002] [<c0170b14>] ? trace_hardirqs_off+0xb/0xd
Again, I think this is the same issue with the raws?
-- Steve
Steven Rostedt
maintainerQuoted 22 lines · Ingo Molnar
Quoted 6 lines · Ingo Molnar
very nice! I'd expect breakages and complications too so i restructured tip/tracing/* a bit: firstly i created a tip/tracing/core append-only merge branch which collects all the known-robust bits. Then i created a new branch for your new generic ring-buffer feature:
tip/tracing/ring-buffer, and applied your patches. I've started testing it.-tip testing found that tip/tracing/ring-buffer causes a new lockdep splat:
[ 0.000000] Linux version 2.6.27-rc8-tip-00915-g8cb18a9-dirty (mingo@dione) (gcc version 4.2.3) #37501 SMP Tue Sep 30 10:10:10 CEST 2008 [...] [ 0.268001] calling tracer_alloc_buffers+0x0/0x1e5 @ 1 [ 0.270983] ------------[ cut here ]------------ [ 0.271100] WARNING: at kernel/lockdep.c:2880 check_flags+0x63/0x179() [ 0.271219] Modules linked in: [ 0.271356] Pid: 1, comm: swapper Not tainted 2.6.27-rc8-tip-00915-g8cb18a9-dirty #37501 [ 0.271563] Call Trace:
Quoted 8 lines
[ 0.271678] [<ffffffff80271d2b>] warn_on_slowpath+0x5d/0x84 [ 0.271797] [<ffffffff80295973>] ? __lock_acquire+0xba4/0xbc5 [ 0.271916] [<ffffffff8029266d>] ? __raw_spin_is_locked+0x17/0x1a [ 0.272001] [<ffffffff802929cc>] ? graph_unlock+0x79/0x7e [ 0.272001] [<ffffffff8029449f>] ? mark_lock+0x1c/0x361 [ 0.272001] [<ffffffff8029483a>] ? mark_held_locks+0x56/0x71 [ 0.272001] [<ffffffff802cbb77>] ? time_hardirqs_off+0x12/0x26 [ 0.272001] [<ffffffff802934f1>] ? trace_hardirqs_off_caller+0x21/0xc2
I don't even need to look at the configs. There's places I still used the "raw_local_irq_save" and that is what in the past has caused this issue. I'll go and remove those.
-- Steve