Skip to contentSkip to conversation

libtracefs Documentation: Fix tracefs_cpu_snapshot_open() man pages

PATCH New Steven Rostedt 1 participant 1 message Jan 9, 2024 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libtracefs Documentation: Fix tracefs_cpu_snapshot_open() man pages

From: "Steven Rostedt (Google)" <[email protected]>

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

---
 Documentation/libtracefs-cpu-open.txt | 2 +-
 Documentation/libtracefs.txt          | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
Documentation/libtracefs-cpu-open.txt +1 -1
index 46667e83f7ff..613a71db97ae 100644
@@ -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_);
 --
 
Documentation/libtracefs.txt +2 -0
index 8dc3ba7386e3..38a93c912e9a 100644
@@ -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_,
Signature · 1 line
2.43.0