From patchwork Fri Jan 5 19:37:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 13512518 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 5CE2E36090 for ; Fri, 5 Jan 2024 19:39:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1A64C433C9; Fri, 5 Jan 2024 19:39:07 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.97) (envelope-from ) id 1rLq3E-000000013us-2O5H; Fri, 05 Jan 2024 14:40:16 -0500 From: Steven Rostedt To: linux-trace-devel@vger.kernel.org Cc: Vincent Donnefort , "Steven Rostedt (Google)" Subject: [PATCH 0/3] kbuffer: Some minor fixes Date: Fri, 5 Jan 2024 14:37:41 -0500 Message-ID: <20240105194015.253165-1-rostedt@goodmis.org> X-Mailer: git-send-email 2.42.0 Precedence: bulk X-Mailing-List: linux-trace-devel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: "Steven Rostedt (Google)" The kbuffer update to work with libtracefs mmapping code had a few bugs. 1) The man page was missing its prototype for tep_kbuffer() 2) A buffer passed in to kbuffer_read_buffer() that was just big enough to hold the events, was not completely filled. 3) kbuffer_refresh() left the current event zero size, even if new data was added after it, if the last read was at the end of the page. Steven Rostedt (Google) (3): libtraceevent Documentation: Fix tep_kbuffer() prototype kbuffer: Add event if the buffer just fits in kbuffer_read_buffer() kbuffer: Update kbuf->next in kbuffer_refresh() Documentation/libtraceevent-handle.txt | 1 + Documentation/libtraceevent.txt | 2 +- src/kbuffer-parse.c | 16 +++++++++++++++- 3 files changed, 17 insertions(+), 2 deletions(-)