aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt (Google) <rostedt@goodmis.org>2022-07-29 16:49:40 -0400
committerSteven Rostedt (Google) <rostedt@goodmis.org>2022-08-03 16:24:19 -0400
commit9a1c5d7943b812c87212744a2fb50f344dbddc40 (patch)
treefaa9930f21fa41304dcf877a03acdad710d218d8
parentef8a8d7a748ac7937742d1dddd3207c1c2401d5d (diff)
downloadtrace-cmd-9a1c5d7943b812c87212744a2fb50f344dbddc40.tar.gz
trace-cmd record: Keep --proxy from being passed to agents
If an agent (-A) is specified before a --proxy option, then the proxy option will be passed to the agent, which should not be done. Keep that from happening. Link: https://lore.kernel.org/linux-trace-devel/20220729164940.233652b0@rorschach.local.home Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
-rw-r--r--tracecmd/trace-record.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tracecmd/trace-record.c b/tracecmd/trace-record.c
index 50039dad..3442e9b3 100644
--- a/tracecmd/trace-record.c
+++ b/tracecmd/trace-record.c
@@ -6180,7 +6180,7 @@ static void parse_record_options(int argc,
* all the arguments for this instance.
*/
if (c != 'B' && (c != 'A' || is_proxy) && c != OPT_name &&
- is_guest(ctx->instance)) {
+ is_guest(ctx->instance) && c != OPT_proxy) {
add_arg(ctx->instance, c, opts, long_options, optarg);
if (c == 'C')
ctx->instance->flags |= BUFFER_FL_HAS_CLOCK;