Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4210204ybg; Mon, 8 Jun 2020 01:50:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyArDggFM2dBcvlZQ1Dx599YLzjZNBb1TJS3/ReQeYYFPgHZ3EyfkbKq83AjbUfuwdJkcHU X-Received: by 2002:a17:906:830c:: with SMTP id j12mr20806828ejx.330.1591606225043; Mon, 08 Jun 2020 01:50:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591606225; cv=none; d=google.com; s=arc-20160816; b=mkNNxNb75nKk7Qi6cGm9TwgqSFEm91aWfXgspBiamUe4lNp3RaR/u59kW/3dfBCK1f 97tQSlfq+TR+qG4jGa80FNG/NTbzElIN2mWDKp56ZSgQ5dMLgsKh0/f2tKgXfA+zKxJ1 DPeSObg6iDFVRo0p/Necl8mfGXlltRWgjN2AtRq3PHE4ZMrQm7x5yMMm6Y+YlEHqB3k4 dR+hKFfyHXrt4kAxnkZCfLKdQyy+HklfbDrqy2QPmQWLhe/pt1spT2M2s5qHeGkA4Q5p Y4gW/K214+jsv/ifnc7gS+p1XL/j0mHLzEhrYsc6G1OAe0E59Jm4ddFJRcRgJXMaEWqw EvmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=M6DJV5qlyuRw+4tTLfMsK1spBMTNlV7JJ+jRzp/eAJE=; b=TmXVqPHURDSXtFWGXtPhsVJSveOtvfgiKd+NdHldS0lX+QKr4kWFTWkD0HDZlTshKO nmO7fMn2HHQ3c0hxvDuGnc5gpFZ3A8gVuwRfsoCSHqEutsyNM1xp5sCkSaz6M+GPMUMu eNZQr3k0d6CoCvTjztHByMq5laq9UBhEgmCa7+kNXlIJWy4uVeazmlG2uAWtUqEn+Q5K J88elu79rjNStWnwnzovFWSkZqpZLQAhpAnPPt5i9/R6Gm2UIf6SyWh/SDy+XHP2px+c fgFkqMOQya1vv8Klyr7gzQLUBwgCbIa38IiAlm8hwxMaD+W0YLy7+hGKJYN5N1TAigte iWpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QLeeQLWM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n16si8955488edy.556.2020.06.08.01.50.01; Mon, 08 Jun 2020 01:50:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QLeeQLWM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729164AbgFHIqC (ORCPT + 99 others); Mon, 8 Jun 2020 04:46:02 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:43277 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729161AbgFHIqC (ORCPT ); Mon, 8 Jun 2020 04:46:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1591605960; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=M6DJV5qlyuRw+4tTLfMsK1spBMTNlV7JJ+jRzp/eAJE=; b=QLeeQLWMJxQtpm5TGK4dFLuucHZQDKwADF8Pz+8u19eCOfvOThNfe1MPpFJ7NnYvXyVzZh ycQ5iwIigXqbe+qfENVF7YM+zGE2nbOn1JE6Q0KPO19gQjWcwCHVxpxofoInAQ8MlMk+di pmJhCwtqnuNrUnBkb43TKYdfHJbgTgQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-406-g3KUImWcN4iRIAvHdIEaOA-1; Mon, 08 Jun 2020 04:45:57 -0400 X-MC-Unique: g3KUImWcN4iRIAvHdIEaOA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C9DAC8014D4; Mon, 8 Jun 2020 08:45:54 +0000 (UTC) Received: from krava (unknown [10.40.195.133]) by smtp.corp.redhat.com (Postfix) with SMTP id 946955C241; Mon, 8 Jun 2020 08:45:52 +0000 (UTC) Date: Mon, 8 Jun 2020 10:45:51 +0200 From: Jiri Olsa To: Alexey Budankov Cc: Adrian Hunter , Andi Kleen , Arnaldo Carvalho de Melo , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Ingo Molnar , linux-kernel Subject: Re: [PATCH v5 13/13] perf record: introduce --ctl-fd[-ack] options Message-ID: <20200608084551.GB1520715@krava> References: <937c8cc1-b4c2-8531-3fa4-d0ad9df6a65f@linux.intel.com> <20200601233732.GA691017@tassilo.jf.intel.com> <1bc7c72b-9d78-5184-a27c-8025beadaaf0@linux.intel.com> <935187e8-6fc8-5f47-b88d-6e8c92a27286@intel.com> <20200605105108.GB1404794@krava> <3ac6d0b8-5fae-348f-8556-4bf7a66285f6@linux.intel.com> <20200605135743.GD1404794@krava> <0d1d9c45-a880-9a5d-e35d-c80fb3b71eab@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0d1d9c45-a880-9a5d-e35d-c80fb3b71eab@linux.intel.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 05, 2020 at 06:23:17PM +0300, Alexey Budankov wrote: SNIP > >>>>>> Or even clearer: > >>>>>> > >>>>>> --ctl-fifo /tmp/my-perf --ctl-fifo-ack /tmp/my-perf-ack > >>>>> > >>>>> If people are OK with having so many options, then that is fine by me. > >>>> > >>>> the single option Adrian suggested seems better to me: > >>>> > >>>> --control > >>>> --control 11 > >>>> --control 11,15 > >>> > >>> What if a user specifies fifos named like this above, not fds? > >>> > >>>> --control 11,15,disabled > >>>> --control 11,,disabled > >>>> --control /tmp/my-perf.fifo > >>>> --control /tmp/my-perf.fifo,/tmp/my-perf-ack.fifo > >>> > >>> What if a user wants not fifos but other type of comm channels? > >>> > >>>> --control /tmp/my-perf.fifo,/tmp/my-perf-ack.fifo,disabled > >>>> --control /tmp/my-perf.fifo,,disabled > >>>> > >>>> we already support this kind of options arguments, like for --call-graph > >>>> > >>>> jirka > >>>> > >>> > >>> IMHO, > >>> this interface, of course, looks more compact (in amount of options) however > >>> the other side it is less user friendly. One simple option for one simple > >>> purpose is more convenient as for users as for developers. Also complex > >>> option syntax tends to have limitations and there are probably more > >>> non-obvious ones. > >>> > >>> Please speak up. I might have missed something meaningful. > >> > >> how about specify the type like: > >> > >> --control fd:1,2,... > > > > What do these ... mean? > > After all, > if you want it this way and it now also fits my needs I could convert > --ctl-fd[-ack] to --control fd:, with use cases like > --control fd: and --control fd:,. Accepted? looks good jirka