mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [for-next][PATCH 0/2] tracing: Remove bottle neck mutex in splicing from ring buffer
@ 2014-12-23 16:13 Steven Rostedt
  2014-12-23 16:13 ` [for-next][PATCH 1/2] tracing: Add ref count to tracer for when they are being read by pipe Steven Rostedt
  2014-12-23 16:13 ` [for-next][PATCH 2/2] tracing: Remove taking of trace_types_lock in pipe files Steven Rostedt
  0 siblings, 2 replies; 3+ messages in thread
From: Steven Rostedt @ 2014-12-23 16:13 UTC (permalink / raw)
  To: linux-kernel; +Cc: Ingo Molnar, Andrew Morton

While profiling with trace-cmd, I found that the there was a global
mutex being taken in the per-cpu splice code. This was slowing down
the recording and causing more missed events than necessary.

By adding a ref count to the tracer, and preventing the tracer from
changing when the ref count is non-zero (when a trace file is opened)
we can remove the taking of the trace_types_lock mutex from the
splice page and speed things up a bit.

  git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git
for-next

Head SHA1: d716ff71dd12bc6328f84a9ec1c3647daf01c827


Steven Rostedt (Red Hat) (2):
      tracing: Add ref count to tracer for when they are being read by pipe
      tracing: Remove taking of trace_types_lock in pipe files

----
 kernel/trace/trace.c | 126 ++++++++++++++++++---------------------------------
 kernel/trace/trace.h |   1 +
 2 files changed, 44 insertions(+), 83 deletions(-)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-12-23 16:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-23 16:13 [for-next][PATCH 0/2] tracing: Remove bottle neck mutex in splicing from ring buffer Steven Rostedt
2014-12-23 16:13 ` [for-next][PATCH 1/2] tracing: Add ref count to tracer for when they are being read by pipe Steven Rostedt
2014-12-23 16:13 ` [for-next][PATCH 2/2] tracing: Remove taking of trace_types_lock in pipe files Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome