Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp255378pxu; Thu, 7 Jan 2021 04:16:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwP+ORxA31igu6rMypoAAp1oz0JHhPSmrAiZU5Wcf4+316WmxTDy1ryfZNvVBnhm2EIajDO X-Received: by 2002:a17:906:a106:: with SMTP id t6mr6160851ejy.63.1610021761075; Thu, 07 Jan 2021 04:16:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610021761; cv=none; d=google.com; s=arc-20160816; b=m0fX6xGLV8Nv8HWj8/1MZ56Gs2t1vxBpZqe04NXebYaGBkw26YfzOC2wRIhXQHPMWd ug2ow5DDQ38QsLQ/W5XGwmJyrwgJwopMMfdO1S4q73jYaq9LWv8k45mlZ7bNGbQB3WXu XA12ZsCNZzBIhplv5HFdS1A4J9bXXY+vxW6RY2R5BQQ7gWTPV1U5YVfLLivoQDNopna3 ie50T6Dy1IxwgTp1FGJzDX065tsyDE6oYe5pf14g37BUFhac6CCwJbxRlAsLJRLflwAH B9tXmnEzvdtnHnq7hNWOWE8Pv8Mn9AxI/s9OkefewHDXwgx10ELX9GO7FnPWs+SyWbu/ 6irw== 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=w+Qhkxk/Uv91dwi/kOmRndgNe4yDhOMBToriQzlJFT8=; b=Z8RPIWGkeF+8ReZPaLqDxM82F+OR/TCADmBFv3uMAVplZU0ABxZEw41MGXKEkYOlVs obtGD12839Jg5Yj+uiN8DzCur7gMGAQjC4ZLpnb2EZJDrZOGkGtbsSC1G49Vj0K0wo/n 8asejb7/s5x2kbVb5yZbJAuN0ja68gO5tlyqTS7AOzV2rGhY13Y9fOnbIRY0lvOWgfwt RyGhmmUdN+ApwApA8s2HMDR1YlLmJDJOm9Tk2ft6tCkzINw+BaVdeW/dUIVmoo7r7XPP P/t9JQFuvspZDme3n1bZDhHZiu7/I0oKOhx/b8Lrs6spMibOwRq6CebNkv2lw0PKHkJh Mh0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dOWBsoA0; 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 js1si1303443ejc.88.2021.01.07.04.15.36; Thu, 07 Jan 2021 04:16:01 -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=dOWBsoA0; 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 S1726359AbhAGMOS (ORCPT + 99 others); Thu, 7 Jan 2021 07:14:18 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:24971 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725835AbhAGMOR (ORCPT ); Thu, 7 Jan 2021 07:14:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1610021570; 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=w+Qhkxk/Uv91dwi/kOmRndgNe4yDhOMBToriQzlJFT8=; b=dOWBsoA0fkDg0hy6Rb7pNQiHuYjTT4bioo2YfBtu9GQAu7O3MsMoR/Rc0nd99/jJEuzJg0 Ngw9SoxYgVZmbxZVnZd5kX+vJdiVIKrFaiA43m+uYeW0s/4NEWfkIDsrd4+PQDzH9uaCIy 06acZQPLu69ErhO+tU6AYlk6EdYRTrY= 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-245-pf5bByIHNuuh1dDfOYeIJQ-1; Thu, 07 Jan 2021 07:12:46 -0500 X-MC-Unique: pf5bByIHNuuh1dDfOYeIJQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id AADE1107ACE3; Thu, 7 Jan 2021 12:12:44 +0000 (UTC) Received: from krava (unknown [10.40.194.125]) by smtp.corp.redhat.com (Postfix) with SMTP id 7C29519C66; Thu, 7 Jan 2021 12:12:41 +0000 (UTC) Date: Thu, 7 Jan 2021 13:12:40 +0100 From: Jiri Olsa To: Jiri Olsa Cc: Arnaldo Carvalho de Melo , lkml , Peter Zijlstra , Ingo Molnar , Mark Rutland , Namhyung Kim , Alexander Shishkin , Michael Petlan , Ian Rogers , Stephane Eranian , Alexei Budankov Subject: Re: [PATCHv4 0/4] perf tools: Allow to enable/disable events via control pipe Message-ID: <20210107121240.GA1019522@krava> References: <20201226232038.390883-1-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201226232038.390883-1-jolsa@kernel.org> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 27, 2020 at 12:20:34AM +0100, Jiri Olsa wrote: > hi, > adding support to enable/disable specific events via control > file via following commands: > > # echo 'enable sched:sched_process_fork' > control > # echo 'disabled sched:sched_process_fork' > control > > v4 changes: > - some of the patches got merged > - rebased to latest perf/core > - fixed changelogs > - added 'ping' command any reviews? thanks, jirka > > v3 changes: > - use ' ' instead of '-' in syntax and add command argument > processing [Arnaldo] > - add options to evlist [Arnaldo] > - add man page changes > > v2 changes: > - added acks > - change list to evlist [Arnaldo] > - add evlist-verbose command [Arnaldo] > - add '' to enale-/disable- error message > > The code is available in here: > git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git > perf/control > > thanks, > jirka > > > --- > Jiri Olsa (4): > perf tools: Allow to enable/disable events via control file > perf tools: Add evlist control command > perf tools: Add stop control command > perf tools: Add ping control command > > tools/perf/Documentation/perf-record.txt | 15 ++++++++++++--- > tools/perf/builtin-record.c | 13 +++++++------ > tools/perf/builtin-stat.c | 5 +++-- > tools/perf/util/evlist.c | 112 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--- > tools/perf/util/evlist.h | 6 ++++++ > tools/perf/util/evsel_fprintf.c | 2 ++ > tools/perf/util/python-ext-sources | 1 + > tools/perf/util/setup.py | 2 +- > 8 files changed, 141 insertions(+), 15 deletions(-) >