Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1582434

[PATCH] trace: Correct comments about list of pages in buffer

Path csiph.com!1.us.feeder.erje.net!feeder.erje.net!2.eu.feeder.erje.net!newsfeed.datemas.de!news.albasani.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Joel Fernandes <joelaf@google.com>
Newsgroups linux.kernel
Subject [PATCH] trace: Correct comments about list of pages in buffer
Date Thu, 16 Feb 2017 11:20:02 +0100
Message-ID <tbrkm-4KJ-13@gated-at.bofh.it> (permalink)
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=35WKmuUFY9hYjajp/TRyFqIsjvsnoNIBVqCMuyFoRuA=; b=omK/4GWsLMgmcUuD8TY2gxsBoLVIaiIlfYcPBsHFy9pTQckF8YLjUWE9Iu6meHXZxw V8SmtwnEYNhMF58NqljoZfLjplkmRLL1Mafbg2wJf2If5X5lhu5FhP+3iou1GDj8gt0J azz5dMFIpHsajWH526sm0UvnY7x0T2tPkZsdz4/iHmqyb01VP5YAuqIxI0Jy8WidYqNV 3Cvj7NWZad0N9WyxqyclazDz/1uYd3oocuj23YN8ABwJVJth+O37hAtqJvJLKOVCx3Oa +pEKJYUqLt8gor3Z69kSJ8oyUZMuvfSmUc3SOFjiQxQ1CgNqTfk84GOgURpDyupZlpH7 QGjg==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=35WKmuUFY9hYjajp/TRyFqIsjvsnoNIBVqCMuyFoRuA=; b=EGkFaI2lqgJTNhS3FWfgRTHlNoVc2cav90vL0qjVvfsqMppnasAOxOU7ixAKqxlY0x ABmcSym0A6n6pUlQ4uGTyG5rhGSTej49Hb55bCkp8r/wJNJC9KJU3J8/7lPWzr0yWKZo dV2X0hf+G6J39/ooMHiMYHilORegA+/GUMvgm2Kk1PKknnZukB6oWUhLuQGay38jamvs vphbzc3J8Q3EHks3IhB3wGlVsvESujZt4FAVVAbjBkERrevRFDJPh3nF29fDLXDayfPP bXU7O4pF1aA6OFZcKIrnY20gi9dWE2IBw/9InsjQrWmBAHlcuLc3dssFY5SEQ8j9ejLD Gbog==
X-Gm-Message-State AMke39nt6rDWBWAvTI5hSm7L4Cc7JHBMkQ5vxWnoeqOKMury1HxLISxFY0zmVBPof1xdwYoA
X-Received by 10.98.163.23 with SMTP id s23mr1738516pfe.60.1487240255290; Thu, 16 Feb 2017 02:17:35 -0800 (PST)
X-Mailer git-send-email 2.11.0.483.g087da7b7c-goog
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 31
Organization linux.* mail to news gateway
X-Original-Cc Joel Fernandes <joelaf@google.com>, Steven Rostedt <rostedt@goodmis.org>, Ingo Molnar <mingo@redhat.com>
X-Original-Date Thu, 16 Feb 2017 02:17:28 -0800
X-Original-Message-ID <20170216101728.27753-1-joelaf@google.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1582434

Show key headers only | View raw


Comments related to list of pages in the ring buffer seem to be incorrect.
This patch corrects them.

Signed-off-by: Joel Fernandes <joelaf@google.com>
---
 kernel/trace/trace.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index d7449783987a..94d508c08c7e 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -262,11 +262,11 @@ unsigned long long ns2usecs(u64 nsec)
 /*
  * The global_trace is the descriptor that holds the tracing
  * buffers for the live tracing. For each CPU, it contains
- * a link list of pages that will store trace entries. The
- * page descriptor of the pages in the memory is used to hold
- * the link list by linking the lru item in the page descriptor
- * to each of the pages in the buffer per CPU.
- *
+ * a link list of pages that will store trace entries.
+ * Each page is wrapped by a buffer_page descriptor which contains
+ * a list element used to hold the list of pages by linking with
+ * other list elements of other buffer_page descriptors (for each
+ * of the pages) in the ring buffer per CPU.
  * For each active CPU there is a data field that holds the
  * pages for the buffer for that CPU. Each CPU has the same number
  * of pages allocated for its buffer.
-- 
2.11.0.483.g087da7b7c-goog

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] trace: Correct comments about list of pages in buffer Joel Fernandes <joelaf@google.com> - 2017-02-16 11:20 +0100
  Re: [PATCH] trace: Correct comments about list of pages in buffer Steven Rostedt <rostedt@goodmis.org> - 2017-02-16 15:40 +0100

csiph-web