Thread (4 messages) 4 messages, 3 authors, 2021-07-12
STALE1796d

[PATCH 2/2] oslat: Add trace maker prior starting main thread

From: Nicolas Saenz Julienne <hidden>
Date: 2021-07-09 15:54:23
Subsystem: the rest · Maintainer: Linus Torvalds

After a long tracing session it's sometimes hard to find the moment
oslat started. So leave a message in the trace buffer just before the
main thread starts.

Signed-off-by: Nicolas Saenz Julienne <redacted>
---
 src/oslat/oslat.c | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/src/oslat/oslat.c b/src/oslat/oslat.c
index d35be57..20bf02b 100644
--- a/src/oslat/oslat.c
+++ b/src/oslat/oslat.c
@@ -400,6 +400,10 @@ static void *thread_main(void *arg)
 	while (g.n_threads_running != g.n_threads)
 		relax();
 
+	if (!g.preheat)
+		tracemark(false, "%s: Starting thread on CPU %d.\n",
+			  g.app_name, t->core_i);
+
 	frc(&t->frc_start);
 	doit(t);
 	frc(&t->frc_stop);
-- 
2.31.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help