Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp147055lql; Fri, 12 Apr 2024 06:30:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW6P72cyJ7Ue1VYnGXWwLSbKZMB1TLAItJEGt23EcwgLfAVUjcmWO6UuvXci8KrWnyf3sYjYF1+F0Bc+KUdoeuWqXtU7OKAS9bwZh1l2A== X-Google-Smtp-Source: AGHT+IF0q/w1rK7k3n5LRJqwSaoYC1B3WXXB67E0AXhSb5aoyPUcymEKDs8/iN8y/gMLNpfXThc7 X-Received: by 2002:a05:6359:1794:b0:17e:69cf:2105 with SMTP id mb20-20020a056359179400b0017e69cf2105mr3666955rwb.29.1712928635737; Fri, 12 Apr 2024 06:30:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712928635; cv=pass; d=google.com; s=arc-20160816; b=1Lq6RR+STj7tZ3zrgEQ7EY3JN1ErJqa9wLBOLXrkv/8CQeAsXs7JsQSeZMOMBtLND+ cwTWYYGGsx9QZnyYCodBp2Dq62AUpozE2RxjfV7ow1cCL2kdto+AbVme6GHQ5jg0o1Uk MFB/W2hTHojjEJeHSJvML0gKHKtHduuAiTApVwBpwz7GFCFLH6TYA1BAva3crf5Cqhgj UNI5uQ3adMaMzvx4BVYt5AOiBtPl5oF7wwRQKQFZa3aYlf8YnS3qpU5tfWUjGHy4yUYe HxqnXGLq88rlFrLbmTG7ctti18TYauM17naTB1EYgdSJfc0nh3jeQqhdGqb86Ozg9JOt +llw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:subject:cc:to :from:date:user-agent:message-id; bh=xJ6UX0mTzF+B6SZLzg9uN0ddYwHcvaKUVolhupVJGIs=; fh=mTYg3JJ8i2GBNLFt8qb4bgYwOyk0kmrOzICLbi6qJ1c=; b=LrfjbyA2DHNA2Mm/8SLJZSsYokpA5H2p4sTMAogHgoKoEZ+moCmcyVI0UV6yyEF/93 eQB5bTYI/xpOHHKbqybNEGsCBCWwHyIyrxOTrlSm4Kv0Wi6EH8S/fTow0K2qxXwE1KW/ hFl2MWQ3knaof+cuT8+Wr4aR722ai2t14ouZZ7B/qs5QcU3E8kOaKvnjDC2vvOW9u653 Zs3VwEIm3Q9oAAgrBiSLaaL135P3wYvxvH37WO0RAlAjmoPM5SjCn+gg89v2lHuFBRM0 N8HXudxKeaeJlHjQXxXUWm3Dr6ebbcWK8BS/4lvqkaFZd5ypbXAeD+vzIzizkv7nOi/K q+sw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-142723-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142723-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id m24-20020a637d58000000b005dc500d9af0si3216099pgn.450.2024.04.12.06.30.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 06:30:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142723-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-142723-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142723-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 6B5D1B22618 for ; Fri, 12 Apr 2024 13:29:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3709682891; Fri, 12 Apr 2024 13:29:33 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A2ACF824A5 for ; Fri, 12 Apr 2024 13:29:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712928572; cv=none; b=O1WedcXt1qeEKhtVeSkLRTZWIUq0k2wO4mmo9woH2gBkobXBL+PlNy7/ASr5PX4Y8J7fjWWaxkbVCy1gdbb6ldg/roBgptdvcwjvXbPBIEVSOFmx0s+A6XEI0EgOIZ9VGfmKXCfu93Zo9iJ/LWU30QtCWzUCbDB1CBlKdQtRzT4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712928572; c=relaxed/simple; bh=wb27C6YDs2SEano/0L13BedK6zkVHFjvN0jOfsycobQ=; h=Message-ID:Date:From:To:Cc:Subject; b=QD/Ac2d7Zpli52nYcJEHibKLzi9X3AcLYrYiaERzNbBFAamKq62Ze7XJ3fLtK3KG/Fhkq9V/XN/qm2CbGwWVuxTHWtMYvUTUEeNvwyGs1GpDT4Qc9PLwU9a9cBZ9ZnwN/hcXQCspWVx06mcno7ZPWj1+yPBsQEAQiJX3yE63tYQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4838FC113CC; Fri, 12 Apr 2024 13:29:32 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.97) (envelope-from ) id 1rvH0n-000000012ow-3O2L; Fri, 12 Apr 2024 09:32:13 -0400 Message-ID: <20240412133152.723632549@goodmis.org> User-Agent: quilt/0.67 Date: Fri, 12 Apr 2024 09:31:52 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton Subject: [for-linus][PATCH 0/4] tracing: Fixes for v6.9 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Tracing fixes for 6.9: - Fix the buffer_percent accounting as it is dependent on three variables: 1) pages_read - number of subbuffers read 2) pages_lost - number of subbuffers lost due to overwrite 3) pages_touched - number of pages that a writer entered These three counters only increment, and to know how many active pages there are on the buffer at any given time, the pages_read and pages_lost are subtracted from pages_touched. But the pages touched was incremented whenever any writer went to the next subbuffer even if it wasn't the only one, so it was incremented more than it should be causing the counter for how many subbuffers currently have content incorrect, which caused the buffer_percent that holds waiters until the ring buffer is filled to a given percentage to wake up early. - Fix warning of unused functions when PERF_EVENTS is not configured in - Replace bad tab with space in Kconfig for FTRACE_RECORD_RECURSION_SIZE - Fix to some kerneldoc function comments in eventfs code. Arnd Bergmann (1): tracing: hide unused ftrace_event_id_fops Prasad Pandit (1): tracing: Fix FTRACE_RECORD_RECURSION_SIZE Kconfig entry Steven Rostedt (Google) (1): ring-buffer: Only update pages_touched when a new page is touched Yang Li (1): eventfs: Fix kernel-doc comments to functions ---- fs/tracefs/event_inode.c | 14 ++++++++++---- kernel/trace/Kconfig | 2 +- kernel/trace/ring_buffer.c | 6 +++--- kernel/trace/trace_events.c | 4 ++++ 4 files changed, 18 insertions(+), 8 deletions(-)