Message ID | 20240718214806.27dfb413@gandalf.local.home (mailing list archive) |
---|---|
State | Accepted |
Commit | b60774a6473f10409c46fdef7f0d981b08670012 |
Headers | show |
Series | trace-cmd record: Do not remove instances with -v | expand |
diff --git a/tracecmd/trace-record.c b/tracecmd/trace-record.c index 4e9ac598..1527be11 100644 --- a/tracecmd/trace-record.c +++ b/tracecmd/trace-record.c @@ -6748,7 +6748,8 @@ static void parse_record_options(int argc, ctx->instance = allocate_instance(optarg); if (!ctx->instance) die("Failed to create instance"); - ctx->instance->delete = negative; + if (IS_CMDSET(ctx)) + ctx->instance->delete = negative; negative = 0; if (ctx->instance->delete) { ctx->instance->next = del_list;