Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2657399pxu; Mon, 7 Dec 2020 12:00:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHXlOcRm/g+NL2tK2/13MeqJ84O9si8MMc83P3eWxRkmPO6dxUGkDft/4fgVKUUNzWekWy X-Received: by 2002:aa7:c98d:: with SMTP id c13mr22453840edt.188.1607371209396; Mon, 07 Dec 2020 12:00:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607371209; cv=none; d=google.com; s=arc-20160816; b=frYU6HcW5btTn4ex9byzORezGXs3PXOQYZiX4VSCF74iHnCkg1SnlVwSbpXguuPQH5 mv5B92eSJkRFCKU8gS4SX5Ds+XjfgAXoU3W7w1kyJwm1RXXmlK3NgxbCvCi1z/hHm9Is 9hFsZc/N9HdQbmdBUlChB8Xakx85Ibp6ma0wdTZaArA9GQBHm1Sk9DJOdJZhxkPIlbhQ 7GKWbIXrw/mWQBvR8Qx/Dh/jHeHVtOsHyGsJJJUv+RG4OBINaPbNh3M6Gd14HXzYokBU SN2oGBQS4a+SqQAJZDEhvWkD2V6a0VajQb13w63IPX2PS+EG8gEyEu1dPvEPOT0sDn8d /bxQ== 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=tFrKOV1BLc45Eb5xzztDBxsVCtCYfxdlUliSYWsrF50=; b=HubMnHejWtJP4oGrgVHyqgShSJheqZOCWBIpqv6CqYiZbSX1hdkmBB/ixdEun853pT p/xteV8MdcBltc1yA8XXOsk1hk6XiRYzQLO7QZ1uHKsB3iE6ihwE2Rt21cefHRKh7NrX AyarFnwYDl9/qBmGrG7CXMuT5WrLWiRyD8LsXAzPfBZJnIWfT62r3SasLJtfqZIoY5Zu SjN37Y1sCNZp1EAwZI/Y86MpKdKM4jylT3WHNCXcxBDP0MLTk5tYv1wGdDrqnYbFe36R auNdEp+h5ZM2FfPcjuk8cAt7a83+d1/Y7Ipbf8Q7vO0alxK5ua1VEzGsvC86loMGIk8V O7Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WdQDAzjH; 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 a5si7015555ejr.334.2020.12.07.11.59.44; Mon, 07 Dec 2020 12:00:09 -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=WdQDAzjH; 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 S1726526AbgLGTze (ORCPT + 99 others); Mon, 7 Dec 2020 14:55:34 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:49413 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725947AbgLGTze (ORCPT ); Mon, 7 Dec 2020 14:55:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1607370847; 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=tFrKOV1BLc45Eb5xzztDBxsVCtCYfxdlUliSYWsrF50=; b=WdQDAzjHG2dLqmbF/nSvFOE2GXGf57VasnT05nwnQtSYviAzdkneH65+ccMK/xcbj7aqqq TNvXl9l7m/CGmtMc0pQD+S/Zt6Afrz8ayOrbtikVXkWpKGV9UoRq79U9S1fYZ2xVlxFu+i enmIO9ou/jNKad8m98qcaBJtDIboORw= 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-186-9JQsb76OP-uKbg4ike39rQ-1; Mon, 07 Dec 2020 14:54:06 -0500 X-MC-Unique: 9JQsb76OP-uKbg4ike39rQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 78714192D787; Mon, 7 Dec 2020 19:54:04 +0000 (UTC) Received: from krava (unknown [10.40.192.62]) by smtp.corp.redhat.com (Postfix) with SMTP id 408241001E73; Mon, 7 Dec 2020 19:53:59 +0000 (UTC) Date: Mon, 7 Dec 2020 20:53:58 +0100 From: Jiri Olsa To: Alexei Budankov Cc: Arnaldo Carvalho de Melo , Jiri Olsa , lkml , Peter Zijlstra , Ingo Molnar , Mark Rutland , Namhyung Kim , Alexander Shishkin , Michael Petlan , Ian Rogers , Stephane Eranian Subject: Re: [PATCH 3/3] perf tools: Allow to list events via control file Message-ID: <20201207195358.GB4103648@krava> References: <20201206170519.4010606-1-jolsa@kernel.org> <20201206170519.4010606-4-jolsa@kernel.org> <20201207162806.GE125383@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 07, 2020 at 08:09:06PM +0300, Alexei Budankov wrote: SNIP > > sched:sched_move_numa: type: 2, size: 120, config: 0x12c, { sample_period, sample_freq }: 1, sample_type: IP|TID|TIME|ID|CPU|PERIOD|RAW, read_format: ID, disabled: 1, inherit: 1, enable_on_exec: 1, sample_id_all: 1, exclude_guest: 1 > > sched:sched_stick_numa: type: 2, size: 120, config: 0x12b, { sample_period, sample_freq }: 1, sample_type: IP|TID|TIME|ID|CPU|PERIOD|RAW, read_format: ID, disabled: 1, inherit: 1, enable_on_exec: 1, sample_id_all: 1, exclude_guest: 1 > > sched:sched_swap_numa: type: 2, size: 120, config: 0x12a, { sample_period, sample_freq }: 1, sample_type: IP|TID|TIME|ID|CPU|PERIOD|RAW, read_format: ID, disabled: 1, inherit: 1, enable_on_exec: 1, sample_id_all: 1, exclude_guest: 1 > > sched:sched_wake_idle_without_ipi: type: 2, size: 120, config: 0x129, { sample_period, sample_freq }: 1, sample_type: IP|TID|TIME|ID|CPU|PERIOD|RAW, read_format: ID, disabled: 1, inherit: 1, enable_on_exec: 1, sample_id_all: 1, exclude_guest: 1 > > # Tip: use 'perf evlist --trace-fields' to show fields for tracepoint events > > [acme@five ~]$ > > > > Also I think we should use 'evlist' instead of 'list', to be consistent. > > FWIW, > > Or may be even name the command starting with a verb like 'list_events' I think evlist is better because there's 'perf evlist' command thanks, jirka