summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCrystal Wood <crwood@redhat.com>2023-12-06 14:55:06 -0600
committerJohn Kacur <jkacur@redhat.com>2023-12-13 11:20:17 -0500
commitb02dde15563165f6ad166b1aed3fd263b1901545 (patch)
tree796f782ddada678fdfb1f61dc665322b567a32e2
parentd13b57f72f0c8b8e058f9aa4322641d5c15a2618 (diff)
downloadrt-tests-b02dde15563165f6ad166b1aed3fd263b1901545.tar.gz
rt-tests: cyclictest: Remove histogram totals
The Total: line does not seem to contribute much value, as it should just be the number of cycles minus the number of overflows. Unless someone complains, remove it to simplify moving to common histogram code. Signed-off-by: Crystal Wood <crwood@redhat.com> - Tested in rteval - Edited commit message to say "cycles" instead of buckets Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r--src/cyclictest/cyclictest.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c
index a8039b4..93ce201 100644
--- a/src/cyclictest/cyclictest.c
+++ b/src/cyclictest/cyclictest.c
@@ -1407,12 +1407,9 @@ static void print_tids(struct thread_param *par[], int nthreads)
static void print_hist(struct thread_param *par[], int nthreads)
{
int i, j;
- unsigned long long int log_entries[nthreads+1];
unsigned long maxmax, alloverflows;
FILE *fd;
- bzero(log_entries, sizeof(log_entries));
-
if (use_histfile) {
fd = fopen(histfile, "w");
if (!fd) {
@@ -1434,21 +1431,12 @@ static void print_hist(struct thread_param *par[], int nthreads)
fprintf(fd, "%06lu", curr_latency);
if (j < nthreads - 1)
fprintf(fd, "\t");
- log_entries[j] += curr_latency;
allthreads += curr_latency;
}
- if (histofall && nthreads > 1) {
+ if (histofall && nthreads > 1)
fprintf(fd, "\t%06llu", allthreads);
- log_entries[nthreads] += allthreads;
- }
fprintf(fd, "\n");
}
- fprintf(fd, "# Total:");
- for (j = 0; j < nthreads; j++)
- fprintf(fd, " %09llu", log_entries[j]);
- if (histofall && nthreads > 1)
- fprintf(fd, " %09llu", log_entries[nthreads]);
- fprintf(fd, "\n");
fprintf(fd, "# Min Latencies:");
for (j = 0; j < nthreads; j++)
fprintf(fd, " %05lu", par[j]->stats->min);