Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3506447pxu; Tue, 15 Dec 2020 08:32:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJzbgCTSkpmD2qviSm7zMxbbH6/5XmbLBMHHBJeYnYXD6WGXY2gOefCmJCIgaIp2I12JrzDM X-Received: by 2002:a05:6402:312b:: with SMTP id dd11mr30906107edb.308.1608049967142; Tue, 15 Dec 2020 08:32:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608049967; cv=none; d=google.com; s=arc-20160816; b=nMmVmJ+CiEcCWVA6GOgdqAnFHaI0+3DUtZADZBOKNrwcijqKOBaIrmWEjbFZ6m6w4d yfCKPZcxs4ZoCd4fw9FscX6VH0KG+/RMrp4Yqg5L40gYyCuBIsTryIhi88tM8UcyugnI 3V0qvLs6sllX4EVndR/lu4ot9Yip+FHriwvjlQBHx0T/1iq8Y8x3k+owslZ1MzSSqezI lFl/C/kTPoCeIsHB9rIrTofyUkzGRoUYUQ3V6CCMmcd7SwwTxxEpXUoEF2XM+dCQPjAq RvA0AOqtx383NDk8fW4fIwy9czs3hc8L6IxN3IHLbidPVE5jtqWDSagIjdGOBFJPxwlQ YIyA== 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:dkim-signature:date; bh=ncHqfs0A9Aq+njdYMrAtJs0o6FpmxcrhhlOCqk/yDmY=; b=QGgU+f1YkS3gR50xamYQ1dpgu9s6yI6vIdyETGOOpEpic6FZ/pGT/XrQEXfek6JZ6K gvyT2HnHtCM0RhlGyb9pyO2eccg+NM5uxbhjdk4sMNzsTe/KrtSJfZJXVqViaqexVMn+ hqNWuFk/VcYQC3HUhJgGr6FiwH1F0ej221yglzU2rNr7aW67vfmrWVNl8W0XXOY0+r7E olrg8Bl9CQpuZrRkpwuhu5CV/EflqNS0KD24PxVkYKyOZGT1kN6tGyLaLCMYfVSun8QI TwVlbR1pPMx8pJhhhu4ZVS32KEhLQhKNAsWeUf+k187tbdCVnxvsxdrfueA3RcyYbMO7 Ej/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jB1GeohI; 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 du16si1067662ejc.287.2020.12.15.08.32.21; Tue, 15 Dec 2020 08:32:47 -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=@kernel.org header.s=k20201202 header.b=jB1GeohI; 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 S1730510AbgLOQ1p (ORCPT + 99 others); Tue, 15 Dec 2020 11:27:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:48190 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729903AbgLOQ12 (ORCPT ); Tue, 15 Dec 2020 11:27:28 -0500 Date: Tue, 15 Dec 2020 13:27:00 -0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1608049608; bh=tcmyW7AJFwhcK+1hvrWQ4t7pwlscL1GhVHy2Kq9hGSQ=; h=From:To:Cc:Subject:References:In-Reply-To:From; b=jB1GeohIctB1PmVQdlxHh69vmmIFogGxkIXuiXbg0G9+k9XznRikX4yc13PsjAoUd kQJCWrECbdnOkphjGriQ07+XY0yCGvzd068bq8O3bpwiXwZhTUTxGFC283ySy/eMB5 SUJVz/jWYQopRsaeKY3WSDIiGlAiUeLaBLwGU232Pjb4xDbKdEHFV+g7tSuWbU4SyX ZiXo9O8yR+vG4ASI4pGITWRVPcNhgtWV7rTku5KJQ/IPq458vWfHdDlicUj9Ywp1Zy 6Nqp059dYbsStJuH+hNNaZDX8Uj/4Zp9mkxoxSF5S3iqQaUOFOHLnbwH0k4etPj00+ Ua91W9XH932WQ== From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: Jiri Olsa , Namhyung Kim , lkml , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Michael Petlan , Ian Rogers , Stephane Eranian , Alexei Budankov Subject: Re: [PATCH 2/3] perf tools: Allow to enable/disable events via control file Message-ID: <20201215162700.GP258566@kernel.org> References: <20201210204330.233864-1-jolsa@kernel.org> <20201210204330.233864-3-jolsa@kernel.org> <20201215151413.GE252952@kernel.org> <20201215152420.GC658008@krava> <20201215160332.GN258566@kernel.org> <20201215161838.GA698181@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201215161838.GA698181@krava> X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Dec 15, 2020 at 05:18:38PM +0100, Jiri Olsa escreveu: > On Tue, Dec 15, 2020 at 01:03:32PM -0300, Arnaldo Carvalho de Melo wrote: > > I see it, but why not use the more natural ' ' space to separate the > > command from its arguments? Just like in a bash command line, say? > > I.e. why not: > > enable > > to enable everything, and: > > enable sched:sched_switch > > To enable just the "sched:sched_switch" event? > right, that's we discussed in the other patch thread, > I'll make the change This is a new way to control perf, its important that we try to reuse the same concepts as in the pre-existing forms of interaction, so as to reduce the learning curve for using this control mode. I.e. this 'enable' should be as equivalent to the -e argument as possible, for what makes sense for a pre-existing, already configured event. For _adding_ new ones, that we probably will want next, then its even more important to reuse the same -e parser :-) Thanks! - Arnaldo