Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp607286ybg; Mon, 1 Jun 2020 09:33:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJww7SOZex29ZaHd/fMJJIc2r/hd1pV3ihMMiBnA44itbuYK90620iqHDWwohc8yrgzn9UJw X-Received: by 2002:a17:906:f115:: with SMTP id gv21mr14113033ejb.340.1591029233407; Mon, 01 Jun 2020 09:33:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591029233; cv=none; d=google.com; s=arc-20160816; b=v9sN+eoyJR7m3pxu6NyX8ij26boqZ5pLeaLZY4DTTKxvj3+NvcN0B6TsTP8gdNKBhu 5eM9lISwMfU0cn+JIgl8DuFLhPvhwhwHxYzt4SAPvU6tXLp1eifeQn26NYIpRfTvLF2v Rxzm+8M2JsaueM22IcYD84jbI9fFNnsljeUXAc3lj/ty5IWNv4EMAOpdod4pRZiyG5dD reSpKyMssAQUPmbxkFv5FI2KPQ/UeAe8Ti7bAFqJjvsf3TimKEBHiHyJFqyFobfhmKKG P3D9zmul5OoWnPjz7elxHQ8vvjJB2BIzzT+Lp3XXWY8gchKz9B6ZvvBxq3Sv8DkGIe2K S87w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject:ironport-sdr :ironport-sdr; bh=0Yv7YGLZjR4ZkcR/dgV8XEYrr9v8dDlgh4iDMjEtGws=; b=P6VfiGOgB+iW4rDElfYNGVP+T/t0z40efD17XBWKVN/fU9CVkVPM3NVJ6gZPVH3/KS sSw1iMTGbWnu/+A3zYDThqPLHxebgYIgO5yMrXZyEvnJUlqr1FDQCSVt66zJYbyiNHkm uXL9Sb1LkVBGRz77KRYL10Wo/cXMhSHTkZQUg3WwS4m64W9iFd5CTTPMsC4NQel9W2Tv xbs2TNCZPr+cmDJHlh3kxAyTsDWrCLPEsCJpmOGT7ns/Jz4TYPR3nZOd+zzJj49lzMdQ 0SHA+73WJRRMYTCHImY7MbSVj69v+gxmuFSytkCoSSOWAFtPtMnQFFYuWB1F12XTBQJ8 IxAw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p22si3405eju.508.2020.06.01.09.33.29; Mon, 01 Jun 2020 09:33:53 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727096AbgFAQbf (ORCPT + 99 others); Mon, 1 Jun 2020 12:31:35 -0400 Received: from mga14.intel.com ([192.55.52.115]:52179 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726067AbgFAQbe (ORCPT ); Mon, 1 Jun 2020 12:31:34 -0400 IronPort-SDR: WDrkQNQ2wXYPdbJ1VTWNmY+Pmc2zIORyEr9Xg/pLexEHXX127tR+YXmwvSm8Z5uC9d8PrfBeJf joQV+VHg4MOg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2020 09:31:34 -0700 IronPort-SDR: +H+uyDnAdfr8cJDrP055+A8lC6iSk1E+zH3WH4J/KfBmnxC9E6j7NkSanmzaGV1Ka3l1ePegPW qTH2sYsquYew== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,461,1583222400"; d="scan'208";a="347092955" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.157]) ([10.237.72.157]) by orsmga001.jf.intel.com with ESMTP; 01 Jun 2020 09:31:31 -0700 Subject: Re: [PATCH v5 13/13] perf record: introduce --ctl-fd[-ack] options To: Alexey Budankov , Arnaldo Carvalho de Melo Cc: Jiri Olsa , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Ingo Molnar , Andi Kleen , linux-kernel References: <8ffc9f9f-af58-deea-428b-f8a69004e3cb@linux.intel.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: <923c40c7-7c0b-9fad-314d-69e7acbee201@intel.com> Date: Mon, 1 Jun 2020 19:30:58 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <8ffc9f9f-af58-deea-428b-f8a69004e3cb@linux.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/06/20 7:05 pm, Alexey Budankov wrote: > > Introduce --ctl-fd[-ack] options to pass open file descriptors numbers > from command line. Extend perf-record.txt file with --ctl-fd[-ack] > options description. Document possible usage model introduced by > --ctl-fd[-ack] options by providing example bash shell script. Hi I am interested in using this also for taking snapshots. Did you consider using a single option, or allowing either a file descriptor or a pathname, or including also the event default of "disabled". e.g. add "--control" and support all of: --control --control 11 --control 11,15 --control 11,15,disabled --control 11,,disabled --control /tmp/my-perf.fifo --control /tmp/my-perf.fifo,/tmp/my-perf-ack.fifo --control /tmp/my-perf.fifo,/tmp/my-perf-ack.fifo,disabled --control /tmp/my-perf.fifo,,disabled Regards Adrian