Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2018601rdb; Tue, 3 Oct 2023 08:01:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGT8UvG9FnO+xqz95cHgoNTHPjAURs3tCyf0AiQoEgSbU461+4NDMmUneWOf3GX9urrxkpS X-Received: by 2002:a17:903:2445:b0:1c6:2161:b191 with SMTP id l5-20020a170903244500b001c62161b191mr18090574pls.8.1696345317670; Tue, 03 Oct 2023 08:01:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696345317; cv=none; d=google.com; s=arc-20160816; b=nccE9QV00LklpnIAZYu+LR5io2jR5jLAbNMm1atyKE3wlM0S6VfU1ChTNeErk5bjm5 jSPh/52A7jTrkwPXmul11yaiqhejbpbRgYYwRUH3qEeOa8VkUH4XRdUyDE+rUx3st62E mSwEti2oaRYvsVExcP0x4YLDlgEE1nija96fXORY8zjzYzX3fPkH4kitz1RN+gEgMzkC OkHuu7Hn6I5ZeUr4NjPSam/FxvoCODR6vuz1DhTw51XawxWd+adazySXpckB/I9AHo7W jwuLgaScFk5Ku/ESmorFxhw8meMnBN6rDjWQ1anFBTHVzpZKUnPeVPAJ8DwMHmGQh3Bo hbNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=K9Pk5k5lZ2HOJxeF2sO2S7w7t3dXF/FdKuzgPP4Sfo4=; fh=wemO1B+XE7Tdo0p2o6GDT+qFOKxXtbaOFxzGOsOUQ1w=; b=opI1TQNAaYWi8RA9Ooi68Yl7508wQ5hoJSG775SqWWbUesxCmRJZD92aFDPj0eUwT+ Puddu++5W9yHBGGL9vIjR6evWr+7ij54Av+H2B4Sm0IoXK36dnjYBsHRFlg3HMW9E/WZ qUl8nK5/5QiTzuZ16E6MnTvDklsicU0YUPjfBhrDwduu8KAzTMG+/8aPHDjOY+iYf1Dy g1HU0sQdWebulxIhXiYazhwVZdIRqNxrLzyqGj40M9gLL4Nt4L02DkOq2IXMVdMVvqVx NvCT+dn19eojHu744e32l03d7Lg6yG/IlavF5SOkE0Yyr7Utw2pHjfuViLldmdhGQZXR mdjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id kg14-20020a170903060e00b001c4062a0e43si1459261plb.169.2023.10.03.08.01.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 08:01:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 28EE082B2E81; Tue, 3 Oct 2023 08:01:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240234AbjJCPBr (ORCPT + 99 others); Tue, 3 Oct 2023 11:01:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240363AbjJCPBb (ORCPT ); Tue, 3 Oct 2023 11:01:31 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A2F2FA7; Tue, 3 Oct 2023 08:01:27 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BA319C15; Tue, 3 Oct 2023 08:02:05 -0700 (PDT) Received: from [10.57.38.63] (unknown [10.57.38.63]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id ED4C23F762; Tue, 3 Oct 2023 08:01:25 -0700 (PDT) Message-ID: Date: Tue, 3 Oct 2023 16:01:30 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH] tracing: document buffer_size_kb more precisely Content-Language: en-US To: Steven Rostedt Cc: Zheng Yejian , mhiramat@kernel.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-doc@vger.kernel.org References: <20231002110935.2fde6637@gandalf.local.home> From: Christian Loehle In-Reply-To: <20231002110935.2fde6637@gandalf.local.home> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 03 Oct 2023 08:01:51 -0700 (PDT) On 02/10/2023 16:09, Steven Rostedt wrote: > On Tue, 26 Sep 2023 11:38:14 +0100 > Christian Loehle wrote: > >>>> @@ -191,7 +191,7 @@ of ftrace. Here is a list of some of the key files: >>>>       A few extra pages may be allocated to accommodate buffer management >>>>       meta-data. If the last page allocated has room for more bytes >>>>       than requested, the rest of the page will be used, >>>> -    making the actual allocation bigger than requested or shown. >>>> +    making the actual allocation bigger than requested. >>> >>> Hi, the actual allocation should still be bigger than shown due to the >>> loss of accuracy when doing unit conversion from bytes to kilobytes (see >>> tracing_entries_read()). >>> >> Right, the sysfs obviously only allows for KB aligned setting, but you're right. >> If set on the cmdline non-KB multiples are possible and accuracy is lost. >> Nevermind then. > > I'm assuming this patch can be dropped? > > -- Steve Yes please drop it, there's probably still some room for improvement for clarity, but this patch is not correct.