From patchwork Tue Jan 9 20:48:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 13515396 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 93F893D98D for ; Tue, 9 Jan 2024 20:50:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42C7EC433F1; Tue, 9 Jan 2024 20:50:14 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.97) (envelope-from ) id 1rNJ45-00000000JKI-15NV; Tue, 09 Jan 2024 15:51:13 -0500 From: Steven Rostedt To: linux-trace-devel@vger.kernel.org Cc: Vincent Donnefort , "Steven Rostedt (Google)" Subject: [PATCH 0/4] libtracefs: More updates and fixes to mmap code Date: Tue, 9 Jan 2024 15:48:55 -0500 Message-ID: <20240109205112.74225-1-rostedt@goodmis.org> X-Mailer: git-send-email 2.43.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)" Changed the iterator to use memory mapping when possible, which also triggered bugs in the unit tests. Those were fixed here too. Steven Rostedt (Google) (4): libtracefs: Unmap mmap mapping on tracefs_cpu close libtracefs: Use tracefs_cpu_*_buf() calls for iterator libtracefs: Use mmapping for iterating raw events libtracefs: Have tracefs_cpu_flush(_buf)() use mapping src/tracefs-events.c | 57 +++++++++++++------------------------------- src/tracefs-record.c | 11 +++++++++ 2 files changed, 27 insertions(+), 41 deletions(-)