diff mbox series

libtracefs Documentation: Fix tracefs_cpu_snapshot_open() man pages

Message ID 20240108230652.51bc3b6a@gandalf.local.home (mailing list archive)
State Accepted
Commit 0d245165d64fbff7ed238ce8e7a77ffe5a9b7bb0
Headers show
Series libtracefs Documentation: Fix tracefs_cpu_snapshot_open() man pages | expand

Commit Message

Steven Rostedt Jan. 9, 2024, 4:06 a.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

The tracefs_cpu_snapshot_open() prototype in the man page had a typo and
it was also missing from the main libtracefs man page.

Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
---
 Documentation/libtracefs-cpu-open.txt | 2 +-
 Documentation/libtracefs.txt          | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/Documentation/libtracefs-cpu-open.txt b/Documentation/libtracefs-cpu-open.txt
index 46667e83f7ff..613a71db97ae 100644
--- a/Documentation/libtracefs-cpu-open.txt
+++ b/Documentation/libtracefs-cpu-open.txt
@@ -18,7 +18,7 @@  void *tracefs_cpu_close*(struct tracefs_cpu pass:[*]_tcpu_);
 struct tracefs_cpu pass:[*]*tracefs_cpu_alloc_fd*(int _fd_, int _subbuf_size_, bool _nonblock_);
 void *tracefs_cpu_free_fd*(struct tracefs_cpu pass:[*]_tcpu_);
 
-struct tracefs_cpu pass:[*]*tracefs_cpu_snapshot-open*(struct tracefs_instance pass:[*]_instance_,
+struct tracefs_cpu pass:[*]*tracefs_cpu_snapshot_open*(struct tracefs_instance pass:[*]_instance_,
 					     int _cpu_, bool _nonblock_);
 --
 
diff --git a/Documentation/libtracefs.txt b/Documentation/libtracefs.txt
index 8dc3ba7386e3..38a93c912e9a 100644
--- a/Documentation/libtracefs.txt
+++ b/Documentation/libtracefs.txt
@@ -99,6 +99,8 @@  Snapshot buffer:
 				 cpu_set_t pass:[*]_cpus_, int _cpu_size_,
 				 int (pass:[*]_callback_)(struct tep_event pass:[*], struct tep_record pass:[*], int, void pass:[*]),
 				 void pass:[*]_callback_context_);
+	struct tracefs_cpu pass:[*]*tracefs_cpu_snapshot_open*(struct tracefs_instance pass:[*]_instance_,
+					     int _cpu_, bool _nonblock_);
 
 Event filters:
 	int *tracefs_filter_string_append*(struct tep_event pass:[*]_event_, char pass:[**]_filter_,