trace-cmd: Add kernel-doc to trace_record_agent()
PATCH 1/1 trace-cmd: Add kernel-doc to trace_record_agent()
From: "Steven Rostedt (Google)" <[email protected]>
I'm getting confused by what exactly is being passed to trace_record_agent(). Document it, so I can at least be only temporarily confused.
Signed-off-by Steven Rostedt (Google) <[email protected]>
--- tracecmd/trace-record.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
tracecmd/trace-record.c +18 -0
@@ -7192,6 +7192,24 @@ void trace_record(int argc, char **argv)exit (0 ); } +/** +* trace_record_agent - record command running from the agent +* @msg_handle: The handle to communicate with the peer +* @cpus: The number of CPUs the agent has to record +* @fds: The array of file descriptors for the CPUs +* @argc: The number of arguments to pass to the record session +* @argv: The arguments to pass to the record session +* @use_fifos: True if fifos are used instead of sockets. +* @trace_id: The agent's trace_id +* @host: Set if this is an IP connection and not a vsocket one +* +* This is used to enable tracing via the record command just +* like trace-cmd record, but it is being done via the agent +* and all the data is being transfered to the peer that is +* connected on the other end of the sockets. +* +* Returns zero on success, negative otherwise. +*/ int trace_record_agent(struct tracecmd_msg_handle *msg_handle, int cpus, int *fds, int argc, char **argv,
Signature · 1 line
2.35.1