From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A7814CE7A89 for ; Sat, 23 Sep 2023 22:33:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229589AbjIWWdO (ORCPT ); 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-)