Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp2988988rdb; Tue, 26 Dec 2023 11:43:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2MRzED/HT8PILb0qk7t+wPaSQlX4Yd93Sm34ibtgtdrFbuZC0gYgYZK29v1zK1w0xoQJ0 X-Received: by 2002:a05:6808:318b:b0:3b8:b063:6ba9 with SMTP id cd11-20020a056808318b00b003b8b0636ba9mr10616504oib.88.1703619794086; Tue, 26 Dec 2023 11:43:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703619794; cv=none; d=google.com; s=arc-20160816; b=XhZxnGszpa5ZK2x/sM3NBakTvJzMgtx+T1cJiTs4sddu6wHc3pyf8dM892oOTLw1UH zjyBdrmqnJpeNSH2DuGsApqNy6FIq2U6zq4OJ27nZSg5a6ug5wkaW9yUrn9UuyjTrlhc kUzgil0GO4AbUWX+vPRUG+XGDumLV4uC1X4ZIoTfHWIWG1eIOMHwpfQEBWbtFIMkDqKi 2vheSHLV6fJlYntFwncRNWIz4SY+HMuwOy7FcTHc4jgiYijYGM7W+lLi/O42jkeJi4oc u+9tqL3HiZDc1qd8fs/Emn4E+75d3r7bId0g4iafcgBzvZ4Dj3dosBHd4Lex1IGbwv4P 75bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=9U5copr9xDoJG160dopatrz4QWoLK4jdJ0iC5TUWcmE=; fh=n3HdMsu69WVloj3ayVVCeir6b+LHsZRN+6YmiQeFbiU=; b=hCaWN+2mP0eV33LrWh4cb1fsvpSpaW+jofxs52tgLvdO+TrufpHhXhvRKJGTu5hfrE JE/cd1FWKTZzNJu2yfRdu2Xn/Mc4V3rFaxb5WEm4KCEV9yx8Z8hyJHr0rA8uoyJ0Wyd1 nq5RXFn7eLKowf5rhF3I8UiPGkg1UQlUy2CGs7W6JeLvJqCc46CXaGvS2uZBJNXGQ2J9 tQKxA27HdGNoUvUJmVO248M0u5YshzyHTiZpDMePd+u2AwKssbUb1aCmsAuBAND1CEIF PpfNzCc70kZhNir9ioQ22IvJnDT/Nhia9ubV48uRfp8gTCgxgebuk9UIOvPYLkaWPKVO Yrkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ztqRwRly; spf=pass (google.com: domain of linux-kernel+bounces-11656-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11656-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id n12-20020a056a000d4c00b006d69b130fe3si4553050pfv.345.2023.12.26.11.43.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 11:43:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11656-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ztqRwRly; spf=pass (google.com: domain of linux-kernel+bounces-11656-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11656-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id D1A54B20C90 for ; Tue, 26 Dec 2023 19:43:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 52680210D; Tue, 26 Dec 2023 19:43:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="ztqRwRly" X-Original-To: linux-kernel@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BC9AD4C67; Tue, 26 Dec 2023 19:42:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=9U5copr9xDoJG160dopatrz4QWoLK4jdJ0iC5TUWcmE=; b=ztqRwRlybhDpub6IodCHbbzPi6 qy3cy2/4BA6/kQXhUwl0foKUgdQsutlj/fWmfRjW+GdY6mKD7Jl4ttVHRJnoN2K9lsfmOo2Ga0wfL U3DwCwgEE5VNXSVsEEc4IY9q7+fnnHmBCUbvyR9Wh9TUD8IbtwU1bzK3yGNxOhfZww8Oie1zxlJgv 5hWLFX8kSwFo8cTbdNv3F78SjD4D2gGHwnbwDC3GpZOGZy/VC91sl8p9+i7BvVPFuKKkOvRJk0J8O CiGBV0M497hCwIE1o+oVlVWfLLky1Pu+CZghVtuYIElgEczEJ3MsbFVNOj9SrtpYKN+HgPQhyKlaI w7KIhhlw==; Received: from [50.53.46.231] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rIDKK-00DST5-1d; Tue, 26 Dec 2023 19:42:56 +0000 Message-ID: <92cedbf6-0313-4ff7-96a7-ddd40506b82e@infradead.org> Date: Tue, 26 Dec 2023 11:42:54 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] ring-buffer/Documentation: Add documentation on buffer_percent file Content-Language: en-US To: Steven Rostedt , LKML , linux-doc@vger.kernel.org, Linux Trace Kernel , Jonathan Corbet Cc: Masami Hiramatsu , Mathieu Desnoyers References: <20231226130149.4685c838@gandalf.local.home> From: Randy Dunlap In-Reply-To: <20231226130149.4685c838@gandalf.local.home> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 12/26/23 10:01, Steven Rostedt wrote: > From: "Steven Rostedt (Google)" > > When the buffer_percent file was added to the kernel, the documentation > should have been updated to document what that file does. > > Fixes: 03329f9939781 ("tracing: Add tracefs file buffer_percentage") > Signed-off-by: Steven Rostedt (Google) > --- > Changes since v1: https://lore.kernel.org/all/20231226123525.71a6d0fb@gandalf.local.home/ > > - Fixed some grammar issues. > > Documentation/trace/ftrace.rst | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > > diff --git a/Documentation/trace/ftrace.rst b/Documentation/trace/ftrace.rst > index 933e7efb9f1b..84b810a6cf76 100644 > --- a/Documentation/trace/ftrace.rst > +++ b/Documentation/trace/ftrace.rst > @@ -180,6 +180,21 @@ of ftrace. Here is a list of some of the key files: > Only active when the file contains a number greater than 0. > (in microseconds) > > + buffer_percent: > + > + This is the water-mark for how much the ring buffer needs to be filled watermark please > + before a waiter is woken up. That is, if an application calls a > + blocking read syscall on one of the per_cpu trace_pipe_raw files, it > + will block until the given amount of data specified by buffer_percent > + is in the ring buffer before it wakes the reader up. This also > + controls how the splice system calls are blocked on this file. > + > + 0 - means to wake up as soon as there is any data in the ring buffer. > + 50 - means to wake up when roughly half of the ring buffer sub-buffers > + are full. > + 100 - means to block until the ring buffer is totally full and is > + about to start overwriting the older data. > + > buffer_size_kb: > > This sets or displays the number of kilobytes each CPU -- #Randy https://people.kernel.org/tglx/notes-about-netiquette https://subspace.kernel.org/etiquette.html