libtraceeval: Add wake-lat sample code
PATCH v2 1/1 libtraceeval: Add wake-lat sample code
From: "Steven Rostedt (Google)" <[email protected]>
Add code that reads a trace.dat file and searches for the sched_waking and sched_switch events. It then keeps track of the wake up latency of each task as well as keeps statistics on that latency. At the end, it will report the max/min total and count of each latency. For the max and min, it also shows the timestamp of when they happened.
Signed-off-by Steven Rostedt (Google) <[email protected]>
---
Changes since v1: https://lore.kernel.org/linux-trace-devel/[email protected]
- Added traceeval_iterator_put()
samples/Makefile | 1 + samples/wake-lat.c | 172 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 173 insertions(+) create mode 100644 samples/wake-lat.c
samples/Makefile +1 -0
@@ -4,6 +4,7 @@ include $(src)/scripts/utils.mk TARGETS := TARGETS += task-eval +TARGETS += wake-lat sdir := $(obj)/bin
samples/wake-lat.c new file +172 -0
172 lines not on this page · raw message
Signature · 1 line
2.40.1