]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Add better comments for the filtering temp buffer use case
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 9 Jun 2021 22:04:59 +0000 (18:04 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 10 Jun 2021 17:42:03 +0000 (13:42 -0400)
commit0f8a9f18a7c48368b344e07dc1b7f8b0b247729f
tree5666b6b230778f9c51cb461b860c14d75c9b5dec
parent272b9c4128d78e2e5542d0ba817223bae5da2ca9
tracing: Add better comments for the filtering temp buffer use case

When filtering is enabled, the event is copied into a temp buffer instead
of being written into the ring buffer directly, because the discarding of
events from the ring buffer is very expensive, and doing the extra copy is
much faster than having to discard most of the time.

As that logic is subtle, add comments to explain in more detail to what is
going on and how it works.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace.c