From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 92B76C433F5 for ; Wed, 12 Jan 2022 06:50:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=z9M1D5CvxBHzrqmHL/xe9gbktdEAPM8cQZ6MsmvVIYQ=; b=zpmZGnyYxZxUF0 iQpGnenNZBjqnCoX9TjyO7hjzW7SF0Z4nTAWHc6kv5bwzMzq+s2X7PNCpATtc2MoLtcOe1vnwyl6D vLBalKRAuS2CyaLbC1wERGkWmAQ0jSvKu6G7prl86Hd59J27hp9FtiHBfW/9/voJntP96QtkGmZNu sHZAvp6twXF02Av2D3HYVgMCHuFlVdtTKLn6HVCCXGK6VnLuNyxi7iBRc9ZvVFAO9GmrwN+yhATjV wvzT2sLcI1Mh+dDiUAcKp6QDOliGBZMEZX5SNKk7989OnUQn5CuU7xBPkLkEX3jOqfh6ZqcxgW1qD TTKQmINXB3uZANNK/wmw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7XSJ-001K2R-E6; Wed, 12 Jan 2022 06:49:59 +0000 Received: from forward501j.mail.yandex.net ([5.45.198.251]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7XSG-001K1W-51 for linux-riscv@lists.infradead.org; Wed, 12 Jan 2022 06:49:58 +0000 Received: from sas1-df7c155f48c6.qloud-c.yandex.net (sas1-df7c155f48c6.qloud-c.yandex.net [IPv6:2a02:6b8:c08:e119:0:640:df7c:155f]) by forward501j.mail.yandex.net (Yandex) with ESMTP id DD562623BBF; Wed, 12 Jan 2022 09:49:50 +0300 (MSK) Received: from sas1-1f4a002bb12a.qloud-c.yandex.net (sas1-1f4a002bb12a.qloud-c.yandex.net [2a02:6b8:c14:3908:0:640:1f4a:2b]) by sas1-df7c155f48c6.qloud-c.yandex.net (mxback/Yandex) with ESMTP id 9tpYaeyDtY-nnfm0EEP; Wed, 12 Jan 2022 09:49:50 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1641970190; bh=LrY/XSIFvSNDS6egDU78GYzQ11qgsupzEbcN4Qn848A=; h=In-Reply-To:Subject:To:From:References:Date:Message-ID:Cc; b=dM/tw3jDK4MgFn+LCSfi91j+gng3SfKA77IO3ZpGl6opowJ6ZnuEB4gUXOtUhRO98 LFDR6Sco76MuUbAwVeta3aTrJPksgfOLUylIQqxgWOhRIgjTTK3yl084nn8qOt+GWQ cJnPgZXWf9TtU1I1XaQ93kG3mveybUY6LF4HBBNI= Authentication-Results: sas1-df7c155f48c6.qloud-c.yandex.net; dkim=pass header.i=@maquefel.me Received: by sas1-1f4a002bb12a.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id dfV5spHKxz-nlP0OnIl; Wed, 12 Jan 2022 09:49:47 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) X-Yandex-Fwd: 2 Date: Wed, 12 Jan 2022 09:49:45 +0300 From: Nikita Shubin To: Jessica Clarke Cc: Atish Patra , linux-riscv , linux , Nikita Shubin , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Paul Walmsley , Palmer Dabbelt , Albert Ou , Kajol Jain , Andi Kleen , Jin Yao , Kan Liang , Adrian Hunter , Ian Rogers , John Garry , Riccardo Mancini , Song Liu , Madhavan Srinivasan , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 0/1] perf tools: Add 'm' event modifier for counting Message-ID: <20220112094945.49362e4f@redslave.neermore.group> In-Reply-To: References: <20220111142054.18733-1-nikita.shubin@maquefel.me> X-Mailer: Claws Mail 3.17.7 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220111_224956_620088_46EBFA18 X-CRM114-Status: GOOD ( 23.78 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On Tue, 11 Jan 2022 14:29:15 +0000 Jessica Clarke wrote: Hello Jessica! > On 11 Jan 2022, at 14:20, Nikita Shubin > wrote: > > > > From: Nikita Shubin > > > > This patch is a proposal to add Machine Mode modifier that is > > currently available only for RISC-V for perf tool. > > > > We don't currently have a level that is lower than kernel, so i > > don't see we can reuse something existing for this purpose. > > > > The exclude_machine bit seems harmless to as no one will proccess > > it apart of riscv. > > Armv8 has equivalent bits in PMEVTYPER_EL0 and PMCCFILTR_EL0 for > EL-based filtering, which includes filtering EL3. > Thank your for your tip, i ll study it and see if this is a good way to go. > Jess > > > Patch depends on Atish Patra PMU series: > > https://lwn.net/Articles/879905/ > > + some modifications to pass execlude event to SBI PMU extension > > > > Tested with qemu. > > > > Nikita Shubin (1): > > perf tools: Add 'm' event modifier for counting machine > > > > include/uapi/linux/perf_event.h | 3 ++- > > tools/include/uapi/linux/perf_event.h | 3 ++- > > tools/perf/Documentation/perf-list.txt | 1 + > > tools/perf/tests/parse-events.c | 18 ++++++++++++++++++ > > tools/perf/util/evsel.c | 4 +++- > > tools/perf/util/parse-events.c | 18 +++++++++++++----- > > tools/perf/util/parse-events.l | 2 +- > > 7 files changed, 40 insertions(+), 9 deletions(-) > > > > -- > > 2.31.1 > > > > > > _______________________________________________ > > linux-riscv mailing list > > linux-riscv@lists.infradead.org > > http://lists.infradead.org/mailman/listinfo/linux-riscv > _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv