linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/1] perf tools: Add 'm' event modifier for counting
@ 2022-01-11 14:20 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 14:29 ` [RFC PATCH 0/1] perf tools: Add 'm' event modifier for counting Jessica Clarke
  0 siblings, 2 replies; 8+ messages in thread
From: Nikita Shubin @ 2022-01-11 14:20 UTC (permalink / raw)
  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, linux-kernel

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.

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-01-12  7:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [RFC PATCH 0/1] perf tools: Add 'm' event modifier for counting Jessica Clarke
2022-01-11 18:45   ` Atish Patra
2022-01-12  7:05     ` Nikita Shubin
2022-01-12  6:49   ` Nikita Shubin

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).