Thread (10 messages) 10 messages, 2 authors, 2026-09-01

Re: [RFC 1/3] rv: add per-edge dwell-time statistics primitive

flat view

From: Gabriele Monaco <gmonaco@redhat.com>
Date: 2026-08-27 08:22:48
Also in: linux-kselftest, linux-trace-kernel, lkml

On Thu, 2026-08-27 at 09:23 +0200, Tobias Schaffner wrote:
quoted hunk ↗ jump to hunk
Add a small primitive that records, per automaton edge, how long the
monitor dwelled before taking it with a count, a sum and a maximum.

The counters are per-CPU and lock-free, so a monitor's hot path can update
them without disabling interrupts and without perturbing the very latency
being measured.

Signed-off-by: Tobias Schaffner <tobias.schaffner@siemens.com>
---
 MAINTAINERS                  |  1 +
 include/linux/rv_edge_stat.h | 45 ++++++++++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+)
 create mode 100644 include/linux/rv_edge_stat.h
diff --git a/MAINTAINERS b/MAINTAINERS
index 8014b9f8253e..04589dda0873 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -23654,6 +23654,7 @@ L:	linux-trace-kernel@vger.kernel.org
 S:	Maintained
 F:	Documentation/trace/rv/
 F:	include/linux/rv.h
+F:	include/linux/rv_edge_stat.h
 F:	include/rv/
Any reason why you don't use include/rv/edge_stat.h ?

You wouldn't need to touch the maintainers file and could just

  #include <rv/edge_stat.h>

Thanks,
Gabriele
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help