summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Saenz Julienne <nsaenzju@redhat.com>2022-04-12 15:55:18 +0200
committerJohn Kacur <jkacur@redhat.com>2022-04-13 11:40:55 -0400
commit7740534f3d094b5a0954cc45116108dd5bdfbb93 (patch)
treed8c2d26c6214c09b6240364c549895ab27ae2680
parent2af2bc2bbf8a5fa12a507d364eda1c99253ae0f6 (diff)
downloadrt-tests-7740534f3d094b5a0954cc45116108dd5bdfbb93.tar.gz
oslat: Print offending cpu number when above threshold
Knowing which CPU went above the trace threshold is useful information, even when not tracing. So let's print it. Signed-off-by: Nicolas Saenz Julienne <nsaenzju@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com> Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r--src/oslat/oslat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/oslat/oslat.c b/src/oslat/oslat.c
index aa0e9a7..55302f1 100644
--- a/src/oslat/oslat.c
+++ b/src/oslat/oslat.c
@@ -334,10 +334,10 @@ static void insert_bucket(struct thread *t, stamp_t value)
assert(us > 0);
if (!g.preheat && g.trace_threshold && us >= g.trace_threshold) {
- char *line = "%s: Trace threshold (%d us) triggered with %u us!\n"
+ char *line = "%s: Trace threshold (%d us) triggered on cpu %d with %u us!\n"
"Stopping the test.\n";
- tracemark(line, g.app_name, g.trace_threshold, us);
- err_quit(line, g.app_name, g.trace_threshold, us);
+ tracemark(line, g.app_name, g.trace_threshold, t->core_i, us);
+ err_quit(line, g.app_name, g.trace_threshold, t->core_i, us);
}
/* Update max latency */