Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp632217ybg; Mon, 1 Jun 2020 10:14:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3Bthbg6IT4RTnbRxvyT/r79/mtSiNoad+YpvKLOJDa+lWzCWEZV33E8/v/iMZ6o2g1+qo X-Received: by 2002:a17:906:f2c2:: with SMTP id gz2mr9566855ejb.260.1591031640891; Mon, 01 Jun 2020 10:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591031640; cv=none; d=google.com; s=arc-20160816; b=EOqft2G3ZV0dyHWtkulbPjCWPBJR54E/GGkCw5KutNSpWRgsr4YVpJHByrrvWxBcXo KAKPvM89UPNnFvKkYTSoiMZo+irPiAkDUM5WwAEUZKiiCCL5nIUZsim64AOb/yBrbY2B DXR2mIPXtrxgg/Vblde0QlkCERq05wF7tYnHxU1x204vmy9HaDIRjc3wxqZ8Sq161cP9 IszvuUfQ7OP6ohV+Pdu8lMDM5rhgDudjgPUvxEY9xZcaJSaqecM++oeOz7+hEnuPnW7A 2BzYhZ1/FyUqFAmPopiWCj3oq+NfJt/XeGZzmiLJV+ZqLZTVdrDnMa3ie/BLSbIqyJWm Mf3g== 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=WuhaGcqKZU+gFLz9gRVor7Ovf9rYykWvHIAtt1O5kGY=; b=Y4WO1tdghgi4v6EwKd5iJ++8scEqGGkMxVqB/pL8z8R4ExhF5F4//UOFMoI+NR4ceb kdNm8RtOdIzhKrnrZ6IKceEwcaxSabF6xcmvZC9JF+fm7bU2N+DLqvL2C4tb+pZ8l4j2 eigvQvmZCe6BgkKafW5KyI7ENbTdv5RC4IqBkxFmr/K5xWmTXm29zMmXGNpAzmltvKWe AANGxq011nU3HmJQqmt/TWWN4KjRHkSVyuJ8WXvj/bY8ShEb6lDjDh6bEtrGXmvaJHzz KPpXIZ3heNTNLQ0NW8RsYaumEDSjcud+bZ4pHD1d4BaO5i/2Mmr7Jjo8foCyb54f/e+Z bkMQ== 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 k14si53972ejq.440.2020.06.01.10.13.36; Mon, 01 Jun 2020 10:14:00 -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 S1726555AbgFARLj (ORCPT + 99 others); Mon, 1 Jun 2020 13:11:39 -0400 Received: from mga05.intel.com ([192.55.52.43]:53453 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726073AbgFARLj (ORCPT ); Mon, 1 Jun 2020 13:11:39 -0400 IronPort-SDR: ttTRT2ljj0FgjBczPK3ZyGZ/gNjv1b4Kf/nV2VMZHK7xT+4X/KGqWNeRzDp7lvMFgxPR2DQM2t EsBMNVQKBMpA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2020 10:11:39 -0700 IronPort-SDR: 2rLKlOXH2ekdU0Onp4tiYH3sULLl4DFKuHqm+VvYp8mnzqjwJh6POHFBwHce4Q6h6X4pqqUFYx d/HvaZ/iQqZw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,461,1583222400"; d="scan'208";a="470391260" Received: from linux.intel.com ([10.54.29.200]) by fmsmga005.fm.intel.com with ESMTP; 01 Jun 2020 10:11:38 -0700 Received: from [10.249.230.65] (abudanko-mobl.ccr.corp.intel.com [10.249.230.65]) by linux.intel.com (Postfix) with ESMTP id BE08E580646; Mon, 1 Jun 2020 10:11:36 -0700 (PDT) Subject: Re: [PATCH v5 13/13] perf record: introduce --ctl-fd[-ack] options To: Adrian Hunter , 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> <923c40c7-7c0b-9fad-314d-69e7acbee201@intel.com> From: Alexey Budankov Organization: Intel Corp. Message-ID: <937c8cc1-b4c2-8531-3fa4-d0ad9df6a65f@linux.intel.com> Date: Mon, 1 Jun 2020 20:11:35 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: <923c40c7-7c0b-9fad-314d-69e7acbee201@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 Hi Adrian, On 01.06.2020 19:30, Adrian Hunter wrote: > 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. Good to hear from you. > > Did you consider using a single option, or allowing either a file descriptor Single option use case is already possible like --ctl-fd . Synchronization messages can be provided via --ctl-fd-ack . > or a pathname, or including also the event default of "disabled". For my cases conversion of pathnames into open fds belongs to external controlling process e.g. like in the examples provided in the patch set. Not sure about "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 > Regards, Alexey