Skip to contentSkip to conversation

trace-cmd record: Keep --proxy from being passed to agents

PATCH New Steven Rostedt 1 participant 1 message Jul 29, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 trace-cmd record: Keep --proxy from being passed to agents

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

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.

---
 tracecmd/trace-record.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tracecmd/trace-record.c +1 -1
index 2406489a..63be4069 100644
@@ -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;
Signature · 1 line
2.35.1