Frederic Weisbecker
6eaaa5d57e
tracing/core: use appropriate waiting on trace_pipe
...
Impact: api and pipe waiting change
Currently, the waiting used in tracing_read_pipe() is done through a
100 msecs schedule_timeout() loop which periodically check if there
are traces on the buffer.
This can cause small latencies for programs which are reading the incoming
events.
This patch makes the reader waiting for the trace_wait waitqueue except
for few tracers such as the sched and functions tracers which might be
already hold the runqueue lock while waking up the reader.
This is performed through a new callback wait_pipe() on struct tracer.
If none is implemented on a specific tracer, the default waiting for
trace_wait queue is attached.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-02-18 01:40:20 +01:00
..
blktrace.c
tracing/blktrace: move the tracing file to kernel/trace
2009-02-09 10:51:02 +01:00
ftrace.c
Merge branch 'tip/tracing/ftrace' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into tracing/ftrace
2009-02-18 01:09:07 +01:00
Kconfig
trace: mmiotrace to the tracer menu in Kconfig
2009-02-15 20:03:28 +01:00
kmemtrace.c
tracing: Introduce trace_buffer_{lock_reserve,unlock_commit}
2009-02-06 01:01:41 +01:00
Makefile
tracing/blktrace: move the tracing file to kernel/trace
2009-02-09 10:51:02 +01:00
ring_buffer.c
ring-buffer: add tracing_is_on to test if ring buffer is enabled
2009-02-16 22:50:01 -05:00
trace.c
tracing/core: use appropriate waiting on trace_pipe
2009-02-18 01:40:20 +01:00
trace.h
tracing/core: use appropriate waiting on trace_pipe
2009-02-18 01:40:20 +01:00
trace_boot.c
tracing: Introduce trace_buffer_{lock_reserve,unlock_commit}
2009-02-06 01:01:41 +01:00
trace_branch.c
tracing: remove unneeded variable
2009-02-10 12:32:18 -05:00
trace_functions.c
tracing/core: use appropriate waiting on trace_pipe
2009-02-18 01:40:20 +01:00
trace_functions_graph.c
tracing/core: use appropriate waiting on trace_pipe
2009-02-18 01:40:20 +01:00
trace_hw_branches.c
tracing: fix section mismatch in trace_hw_branches.c
2009-02-15 20:41:08 +01:00
trace_irqsoff.c
tracing: fix typing mistake in hint message and comments
2009-02-17 12:38:24 -05:00
trace_mmiotrace.c
mmiotrace: count events lost due to not recording
2009-02-15 20:02:42 +01:00
trace_nop.c
trace: Call tracing_reset_online_cpus before tracer->init()
2009-02-06 01:01:41 +01:00
trace_output.c
Merge branch 'tip/tracing/core/devel' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into tracing/ftrace
2009-02-09 10:35:12 +01:00
trace_output.h
trace: make the trace_event callbacks return enum print_line_t
2009-02-04 20:48:39 +01:00
trace_power.c
tracing: convert c/p state power tracer to use tracepoints
2009-02-13 09:06:18 -05:00
trace_sched_switch.c
tracing/core: use appropriate waiting on trace_pipe
2009-02-18 01:40:20 +01:00
trace_sched_wakeup.c
tracing/core: use appropriate waiting on trace_pipe
2009-02-18 01:40:20 +01:00
trace_selftest.c
tracing: fix typing mistake in hint message and comments
2009-02-17 12:38:24 -05:00
trace_selftest_dynamic.c
trace_stack.c
trace: better use of stack_trace_enabled for boot up code
2008-12-18 12:56:56 +01:00
trace_stat.c
tracing: fix typing mistake in hint message and comments
2009-02-17 12:38:24 -05:00
trace_stat.h
tracing/ftrace: separate events tracing and stats tracing engine
2009-01-14 12:11:37 +01:00
trace_sysprof.c
tracing: fix typing mistake in hint message and comments
2009-02-17 12:38:24 -05:00
trace_workqueue.c
trace_workqueue: use percpu data for workqueue stat
2009-01-20 13:06:59 +01:00