Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp818100pxk; Thu, 3 Sep 2020 13:25:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTQl+M+KqpehvRR7wIt3wOeewRsowW9V9JYBvnBIkiXqKBfIIDNnkhmBXJuBwZ929Vaa4R X-Received: by 2002:a17:906:9443:: with SMTP id z3mr4226053ejx.156.1599164717172; Thu, 03 Sep 2020 13:25:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599164717; cv=none; d=google.com; s=arc-20160816; b=B4vZkp99CSQlK+0uJ68ovaMIntHSMdzyOagecfVX9uOntlaaWx20xW5L8etgREBwC9 0H04JFs8PEE8ayzspWNmy8juUBXY8wQdA5QbOBbF0HIzWeaxhyjuo1eerHyKWxO+1O8m RywB7MxWvocKi23XbLncODoCvVt71TKUVVSd2tyTRVWfrxLkXU6cq4z7wCsy52fVu/9n yrItFa9yk2zYdDu7MJnqK+WJ70X2jwePVpoMGzDMqL/ISro98VlWLkxSoqp+g0dKFtnd zHwp2G3FghyVW61KQKbfDoQB9HDWp6bf+h+rmtUz3wVk1ZvjaejM9IVRFKX05JQYC8/9 Sl/w== 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=hxpZQwlz5BH1VevwARa84M7nDqETWfR0v6pwCwFX0d4=; b=GtFJoojXz74d61bge9F7jCO7l2dErL5bXXsY88jVOPg5DEWvUXQjATO1ZAg57GmPTJ I2Kx66QBnKKogH/5pWAcvRl4/F7Fb7fm5hjPgS44Zq5SWEgtYwq3f48HI82gSyMH0QZW HL8aElsqWoOsGulwkJeSeWBMvLMHTrNAukoQlX1eL0ScNk9Fq1pT6Jim/yEfn/haQD8d zDKOlCpRrHCRxDJVYBUtPyI0xDJIRagSY8Q43hRGpTBfTTIJqcq2ftChPrXju7KcwHZ2 Y/oOEQ66TSo9pnAaJJJzsCyFYz+tSujviMW4Wcm/CH8adzenHY5AaSQy//8GkCv+ZKSD G0fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xjmIDOvR; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l23si1358962ejq.411.2020.09.03.13.24.55; Thu, 03 Sep 2020 13:25:17 -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=@kernel.org header.s=default header.b=xjmIDOvR; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728775AbgICUVk (ORCPT + 99 others); Thu, 3 Sep 2020 16:21:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:59810 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728312AbgICUVj (ORCPT ); Thu, 3 Sep 2020 16:21:39 -0400 Received: from quaco.ghostprotocols.net (unknown [179.97.37.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 555B2206C0; Thu, 3 Sep 2020 20:21:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599164499; bh=UoIEfhIyl4OAI6bsMc7p6eZhEujXdhGQoSbRhzREwZs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=xjmIDOvRUD6Z4zAIKcq0Z6X9ocA94+R9CrsyoBlQ7sUWr0/O3nB8A+w3g4osuTLBG DaifKosCX4n3rh+S3HQo1orw/wVq4Lf11tazhU5GH17RdduwvORbGKg0FbC5jlUqRR V3l9trshCLksw452S1YyagxLlDBprto2hlp6lv68= Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 51E4D40D3D; Thu, 3 Sep 2020 17:21:37 -0300 (-03) Date: Thu, 3 Sep 2020 17:21:37 -0300 From: Arnaldo Carvalho de Melo To: Adrian Hunter , Alexey Budankov Cc: Jiri Olsa , Andi Kleen , Namhyung Kim , linux-kernel@vger.kernel.org Subject: Re: [PATCH V3 4/6] perf tools: Add FIFO file names as alternative options to --control Message-ID: <20200903202137.GO3495158@kernel.org> References: <20200901200655.GC470123@krava> <20200902105707.11491-1-adrian.hunter@intel.com> <97818947-ed04-1b53-c71a-f00732141ca7@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <97818947-ed04-1b53-c71a-f00732141ca7@linux.intel.com> X-Url: http://acmel.wordpress.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, Sep 02, 2020 at 08:03:08PM +0300, Alexey Budankov escreveu: > > On 02.09.2020 13:57, Adrian Hunter wrote: > > Enable the --control option to accept file names as an alternative to > > file descriptors. > > > > Example: > > > > $ mkfifo perf.control > > $ mkfifo perf.ack > > $ cat perf.ack & > > [1] 6808 > > $ perf record --control fifo:perf.control,perf.ack -- sleep 300 & > > [2] 6810 > > $ echo disable > perf.control > > $ Events disabled > > ack > > > > $ echo enable > perf.control > > $ Events enabled > > ack > > > > $ echo disable > perf.control > > $ Events disabled > > ack > > > > $ kill %2 > > [ perf record: Woken up 4 times to write data ] > > $ [ perf record: Captured and wrote 0.018 MB perf.data (7 samples) ] > > > > [1]- Done cat perf.ack > > [2]+ Terminated perf record --control fifo:perf.control,perf.ack -- sleep 300 > > $ > > > > Signed-off-by: Adrian Hunter > > Acked-by: Jiri Olsa Its great when things come with the exact sequence of commands to test, the output, etc, keep it that way, please. Thanks, tested, applied, - Arnaldo