Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3506844pxu; Tue, 15 Dec 2020 08:33:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdzOknpAnAdfVbCRRclaQJAvW7WZaioV+Q9p+DdZo/85NEiHPZPd7WrhO/Ek6lVgybCyeM X-Received: by 2002:a17:906:38c8:: with SMTP id r8mr28118396ejd.39.1608049996016; Tue, 15 Dec 2020 08:33:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608049996; cv=none; d=google.com; s=arc-20160816; b=z+0KLgTOcZQctxqGRIKb7JsmmrFjdvshdk8YsHaMQUXEeDUp89L8UgH003it2ukn6x 8P1JPrfPhnXzbctjxkh8ZPsYY5vsDcxykSt+ZRwNT0Ow5XPwmQJjoTt2KHkEtgKrUnZE CjlUud6kaEV8yVbew/JO4hID4eGfjRBecRKukhWURiMnhyVJiEZIg6tsKgi/biiXuZO3 vbwtRIL/nUxCcsyzxmXS/IMpFnfzDdj+wtfxhAiUxns62J4iiBu9YGon8mDNWlznunJy MkAcGaHzRbiPIaC20X81wB1/cLKw2Q3vcYzO6uB7H+NtBu44FRwPY+XDPlX75ruBzfZH VGLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PPQsVq8BBcf6J2KxS5M7IZMeB7NPgMCHFu+wKJdA7lQ=; b=mzKNRgoJYGjPJDbjiXjqhspbgiTpOx12uINJOsxv/R13XEO+zVxie5xvL5jPOa4g0b FPihF3kBAkMhpeertqPczo7qfdYVU5+NWKTcX5y81VGWg5vnzB1IzZpN3zBGtiaScEZd xtwN0rrWtpyS+ZWk2TDEy0ApwdXFWy8y3CmtCp1JqC/DzINprqVCLqve6ZKyeXgd80Hw xSw1hG+yC91f5UmW304V3x3i4heFlSaTy37pKTf44mlZeuBM0ifOB4uNQMoWt+Vj5oYG Ab+fyTdJ875MGMTnTnE/y1w0AEZhGryWyCv9v7dcEt2qx3YSEZwasDbwPvC3QMvIOPHy A/oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="O4GDT4p/"; 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 e22si1332046edu.45.2020.12.15.08.32.52; Tue, 15 Dec 2020 08:33:16 -0800 (PST) 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="O4GDT4p/"; 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 S1730333AbgLOQ2u (ORCPT + 99 others); Tue, 15 Dec 2020 11:28:50 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:25372 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729543AbgLOQ2g (ORCPT ); Tue, 15 Dec 2020 11:28:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1608049629; 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=PPQsVq8BBcf6J2KxS5M7IZMeB7NPgMCHFu+wKJdA7lQ=; b=O4GDT4p/x9wLyk5+4pgnvAoiBcUPP9nZqb3Mcc4XmeNdow11Rk68JaxWn8ORXCukhtSoqo WzxQJqRmNkWy3o9bPj5+cWO5aIQgh7/VoxmjcEXZ+FLLwQjWheHYQXSwl9qiiPsDo7T47l Q1Q73xYYvvH3x7upGZtTw/d3f18Ehww= 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-114-_ARBfzVBOkGsgRJTGuaYWg-1; Tue, 15 Dec 2020 11:27:07 -0500 X-MC-Unique: _ARBfzVBOkGsgRJTGuaYWg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9C080190A7B6; Tue, 15 Dec 2020 16:27:05 +0000 (UTC) Received: from krava (ovpn-113-169.ams2.redhat.com [10.36.113.169]) by smtp.corp.redhat.com (Postfix) with SMTP id D8F6F60C15; Tue, 15 Dec 2020 16:27:02 +0000 (UTC) Date: Tue, 15 Dec 2020 17:27:01 +0100 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , lkml , Peter Zijlstra , Ingo Molnar , Mark Rutland , Namhyung Kim , Alexander Shishkin , Michael Petlan , Ian Rogers , Stephane Eranian , Alexei Budankov Subject: Re: [PATCH 3/3] perf tools: Add evlist/evlist-verbose control commands Message-ID: <20201215162701.GB698181@krava> References: <20201210204330.233864-1-jolsa@kernel.org> <20201210204330.233864-4-jolsa@kernel.org> <20201215152343.GG252952@kernel.org> <20201215155911.GD658008@krava> <20201215160933.GO258566@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201215160933.GO258566@kernel.org> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 15, 2020 at 01:09:33PM -0300, Arnaldo Carvalho de Melo wrote: SNIP > > instead of: > > > echo 'enable-cycles' > control > > > I'd like to avoid any elaborate parsing logic.. > > > how about that? > > Use space to separate command from its arguments, keep the same > experience as: > > [acme@quaco ~]$ perf evlist -h > > Usage: perf evlist [] > > -f, --force don't complain, do it > -F, --freq Show the sample frequency > -g, --group Show event group information > -i, --input Input file name > -v, --verbose Show all event attr details > --trace-fields Show tracepoint fields > > [acme@quaco ~]$ > > and: > > echo "evlist arguments" > > ? > > Fits the bill :-) ok > > The experience users have on existing commands, the same arguments, etc. > > Even -h can have its uses, i.e. has this daemon support for some option > or is it an old version? Alexei just suggested to add 'stop' control command and use it instead of kill signal, which is good idea but other than that daemon just opens the control file and shows its path jirka