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