From: Steven Rostedt <rostedt@goodmis.org>
To: linux-trace-devel@vger.kernel.org
Subject: [PATCH 1/2] trace-cmd: Fix cut and paste header comment of tracecmd_unpair_peer()
Date: Mon, 13 Apr 2020 16:53:47 -0400 [thread overview]
Message-ID: <20200413205521.252964374@goodmis.org> (raw)
In-Reply-To: 20200413205346.028742220@goodmis.org
From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>
The comment describing tracecmd_unpair_peer() is the same as the comment for
tracecmd_pair_peer(). Update it to describe the unpair function.
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
---
lib/trace-cmd/trace-input.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/lib/trace-cmd/trace-input.c b/lib/trace-cmd/trace-input.c
index c19aa4005767..50d52f49a8f0 100644
--- a/lib/trace-cmd/trace-input.c
+++ b/lib/trace-cmd/trace-input.c
@@ -3233,9 +3233,8 @@ fail:
}
/**
- * tracecmd_unpair_peer - Link a tracing peer to this handle
+ * tracecmd_unpair_peer - Remove the linked tracing peer of this handle
* @handle: input handle for the trace.dat file
- * @peer: input handle for the tracing peer
*
* When tracing host and one or more guest machines at the same time,
* guest and host are tracing peers. There is information in both trace
@@ -3244,7 +3243,7 @@ fail:
* merging the events. When the host is set as a tracing peer to the guest, then
* the timestamps of guest's events are recalculated to match the host event's time
*
- * Returns 1, if a peer is already paired, -1 in case of an error or 0 otherwise
+ * This removes any peer that is linked to the @handle.
*/
int tracecmd_unpair_peer(struct tracecmd_input *handle)
{
--
2.25.1
next prev parent reply other threads:[~2020-04-13 20:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-13 20:53 [PATCH 0/2] trace-cmd: Minor updates to tracecmd_unpair_peer() function Steven Rostedt
2020-04-13 20:53 ` Steven Rostedt [this message]
2020-04-13 20:53 ` [PATCH 2/2] trace-cmd: Make tracecmd_unpair_peer() return void Steven Rostedt
2020-04-14 14:15 ` [PATCH 0/2] trace-cmd: Minor updates to tracecmd_unpair_peer() function Tzvetomir Stoyanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200413205521.252964374@goodmis.org \
--to=rostedt@goodmis.org \
--cc=linux-trace-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).