From: Jessica Clarke <jrtc27@jrtc27.com>
To: Nikita Shubin <nikita.shubin@maquefel.me>
Cc: Atish Patra <atishp@rivosinc.com>,
linux-riscv <linux-riscv@lists.infradead.org>,
linux <linux@yadro.com>, Nikita Shubin <n.shubin@yadro.com>,
Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@redhat.com>,
Arnaldo Carvalho de Melo <acme@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Jiri Olsa <jolsa@redhat.com>, Namhyung Kim <namhyung@kernel.org>,
Paul Walmsley <paul.walmsley@sifive.com>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Kajol Jain <kjain@linux.ibm.com>, Andi Kleen <ak@linux.intel.com>,
Jin Yao <yao.jin@linux.intel.com>,
Kan Liang <kan.liang@linux.intel.com>,
Adrian Hunter <adrian.hunter@intel.com>,
Ian Rogers <irogers@google.com>,
John Garry <john.garry@huawei.com>,
Riccardo Mancini <rickyman7@gmail.com>,
Song Liu <song@kernel.org>,
Madhavan Srinivasan <maddy@linux.ibm.com>,
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
Date: Tue, 11 Jan 2022 14:29:15 +0000 [thread overview]
Message-ID: <B6E7919C-9414-4CC1-BB86-7D358085CECD@jrtc27.com> (raw)
In-Reply-To: <20220111142054.18733-1-nikita.shubin@maquefel.me>
On 11 Jan 2022, at 14:20, Nikita Shubin <nikita.shubin@maquefel.me> wrote:
>
> From: Nikita Shubin <n.shubin@yadro.com>
>
> 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<n>_EL0 and PMCCFILTR_EL0 for
EL-based filtering, which includes filtering EL3.
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
next prev parent reply other threads:[~2022-01-11 14:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-11 14:20 [RFC PATCH 0/1] perf tools: Add 'm' event modifier for counting Nikita Shubin
2022-01-11 14:20 ` [RFC PATCH 1/1] perf tools: Add 'm' event modifier for counting machine Nikita Shubin
2022-01-11 18:52 ` Andi Kleen
2022-01-11 18:59 ` Atish Patra
2022-01-11 14:29 ` Jessica Clarke [this message]
2022-01-11 18:45 ` [RFC PATCH 0/1] perf tools: Add 'm' event modifier for counting Atish Patra
2022-01-12 7:05 ` Nikita Shubin
2022-01-12 6:49 ` Nikita Shubin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B6E7919C-9414-4CC1-BB86-7D358085CECD@jrtc27.com \
--to=jrtc27@jrtc27.com \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=ak@linux.intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=aou@eecs.berkeley.edu \
--cc=atishp@rivosinc.com \
--cc=irogers@google.com \
--cc=john.garry@huawei.com \
--cc=jolsa@redhat.com \
--cc=kan.liang@linux.intel.com \
--cc=kjain@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux@yadro.com \
--cc=maddy@linux.ibm.com \
--cc=mark.rutland@arm.com \
--cc=mingo@redhat.com \
--cc=n.shubin@yadro.com \
--cc=namhyung@kernel.org \
--cc=nikita.shubin@maquefel.me \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=peterz@infradead.org \
--cc=rickyman7@gmail.com \
--cc=song@kernel.org \
--cc=yao.jin@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).