From patchwork Sat Sep 23 22:33:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 14445 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp395029vqu; Sat, 23 Sep 2023 15:34:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFWoMsUnLnRvfhNnw6SYMM5w6bj8PYOrJx+yzGs5wiz5s2d37SZLFFoc83TcR7aD0+nDCs/ X-Received: by 2002:a05:6a21:3d87:b0:15d:4a2b:b513 with SMTP id bj7-20020a056a213d8700b0015d4a2bb513mr3473332pzc.36.1695508473945; Sat, 23 Sep 2023 15:34:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695508473; cv=none; d=google.com; s=arc-20160816; b=QFuVxwfS1QvEOFpL39kU5oiu32j69IsN7NDoGL2YbyJyBVJ7gInFxY69o9XQdJxq7x DwU+1Obcwep6JrxBWlV1/qdE4dEjkHThb3Ht+YmvtLnozsDI9wDgeSDPHuBK4l3yrbXb xrYwIWPDncbK1/pyvM0nA9L3ek67va1J/mLzmZuck4sVoxs3k2Q5kJlYrDdiGPdacwEm GfyxrWUep4zcbu/YeOuY1yp7R2fzjfgyGognAq0tglZzmAoTLmpR9whaw1R01ZaA0I8n qzAAehemt20ZaEIjwawE3vKFt10ZIg6EWeroXBu/I7PzinhexZcShTXAi9c9gSMGTY04 u7Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:user-agent:message-id; bh=aX+ShqJqxU6eZ3RyPwRy8eZceEIa2o0YjJC5+DONI+4=; fh=cY9HGbp9RiQ9xCYqjybSe1/cIiXVFs0Cn9z6ge1iyyY=; b=q8cQ5IkvzopkOCiyokL65CfHgVCH4BhX1M5USwex4kKWsjZnZ1luGsjtP9TnZCSrBj VTu3RtSQsshAz1MjritJc1igT1PgTy0v0Dsllq7YSYp+t4yLbuwEfMCM6GvGgJ6Xyp1L HQrWO5kZTl3M4zZzM8HwYbYUPTJQGgQ+N1tlrC//xwo/qgBbMNJurdscWizG05GqxbML A1tzZDTzbpvyFRhVLbbogU9gAOShqfjVZRFggVSCdL4wptZ5oPiOAtHtcktpyR/yX0/m nm/AmN1rc9LhwrsHbaRdMftxVHFfzfSR3ZplfYtlacuKpww2dKWrOVdO2FPwo1/hFsRu ksPA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id fo10-20020a056a00600a00b0068fa57cc15bsi6634249pfb.124.2023.09.23.15.34.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 15:34:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 3EAAC802578B; Sat, 23 Sep 2023 15:33:15 -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 S229556AbjIWWdO (ORCPT + 30 others); Sat, 23 Sep 2023 18:33:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjIWWdN (ORCPT ); Sat, 23 Sep 2023 18:33:13 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F7B1180 for ; Sat, 23 Sep 2023 15:33:07 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F225C433C7; Sat, 23 Sep 2023 22:33:07 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.96) (envelope-from ) id 1qkBCA-003ttc-2K; Sat, 23 Sep 2023 18:33:50 -0400 Message-ID: <20230923223331.720351929@goodmis.org> User-Agent: quilt/0.66 Date: Sat, 23 Sep 2023 18:33:31 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Masami Hiramatsu , Mark Rutland , Andrew Morton Subject: [for-linus][PATCH 0/2] tracing: Fixes for 6-6-rc2 X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS autolearn=no 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]); Sat, 23 Sep 2023 15:33:15 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777869494012158904 X-GMAIL-MSGID: 1777869494012158904 Tracing fixes for 6.6-rc2: - Fix the "bytes" output of the per_cpu stat file The tracefs/per_cpu/cpu*/stats "bytes" was giving bogus values as the accounting was not accurate. It is suppose to show how many used bytes are still in the ring buffer, but even when the ring buffer was empty it would still show there were bytes used. - Fix a bug in eventfs where reading a dynamic event directory (open) and then creating a dynamic event that goes into that diretory screws up the accounting. On close, the newly created event dentry will get a "dput" without ever having a "dget" done for it. The fix is to allocate an array on dir open to save what dentries were actually "dget" on, and what ones to "dput" on close. Please pull the latest trace/urgent tree, which can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git trace/urgent Head SHA1: ef36b4f92868d66908e235980f74afdfb9742d12 Steven Rostedt (Google) (1): eventfs: Remember what dentries were created on dir open Zheng Yejian (1): ring-buffer: Fix bytes info in per_cpu buffer stats ---- fs/tracefs/event_inode.c | 87 +++++++++++++++++++++++++++++++++++++--------- kernel/trace/ring_buffer.c | 28 ++++++++------- 2 files changed, 85 insertions(+), 30 deletions(-)