[PATCH] cyclictest: change-output-format-to-allow-6-digits.patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Sven-Thorsten Dietrich <sdietrich@xxxxxxx>
Date: Sat, 21 Mar 2009 16:41:40 -0700
Subject: [PATCH] Change output format to allow 6 digits.

This is useful when testing PREEMPT_NONE Kernels with cyclictest,
where latencies approaching 1 second can be observed.


Signed-off-by: Sven-Thorsten Dietrich <sdietrich@xxxxxxx>
---
 src/cyclictest/cyclictest.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c
index dad68aa..e7485d1 100644
--- a/src/cyclictest/cyclictest.c
+++ b/src/cyclictest/cyclictest.c
@@ -891,7 +891,7 @@ static void print_hist(struct thread_param *par, int nthreads)
 	printf("# Histogram\n");
 	for (i = 0; i < histogram; i++) {
 
-		printf("%05d ", i);
+		printf("%06d ", i);
 
 		for (j = 0; j < nthreads; j++) {
 			unsigned long curr_latency=par[j].stats->hist_array[i];

--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux