summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCrystal Wood <crwood@redhat.com>2024-01-22 16:13:20 -0600
committerJohn Kacur <jkacur@redhat.com>2024-01-23 15:27:46 -0500
commit8f05671597898ffc9f2f310bbf71e0b9c7b4dec3 (patch)
tree27d287becb265939aa77c783881c7beaf8850347
parent36f634cf8853e00558512b5b48ce600b629402bb (diff)
downloadrt-tests-8f05671597898ffc9f2f310bbf71e0b9c7b4dec3.tar.gz
rt-tests: cyclicdeadline: Print the histogram regardless of quiet
The histogram printing code should not have been gated by !quiet, even though other summary printing code is. The non-histogram output also should not have been gated based on the presence of the histogram. Signed-off-by: Crystal Wood <crwood@redhat.com> Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r--src/sched_deadline/cyclicdeadline.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/sched_deadline/cyclicdeadline.c b/src/sched_deadline/cyclicdeadline.c
index b315554..3cb8f71 100644
--- a/src/sched_deadline/cyclicdeadline.c
+++ b/src/sched_deadline/cyclicdeadline.c
@@ -1117,15 +1117,15 @@ static void loop(struct sched_data *sched_data, int nr_threads)
usleep(10000);
if (!quiet) {
printf("\033[%dB", nr_threads + 2);
- } else {
- if (histogram) {
- FILE *out = histfile ? histfile : stdout;
+ } else if (!histogram) {
+ for (i = 0; i < nr_threads; ++i)
+ print_stat(stdout, &sched_data[i], i, 0, 0);
+ }
- print_hist(out, sched_data, nr_threads);
- } else {
- for (i = 0; i < nr_threads; ++i)
- print_stat(stdout, &sched_data[i], i, 0, 0);
- }
+ if (histogram) {
+ FILE *out = histfile ? histfile : stdout;
+
+ print_hist(out, sched_data, nr_threads);
}
}