diff mbox series

[API-NEXT,v3,06/11] test: sched_latency: use sys_info_print

Message ID 20170428120958.17526-7-petri.savolainen@linaro.org
State Accepted
Commit f54860c628c16c4f76d555b9d20c28e04af13751
Headers show
Series Use HW time counter | expand

Commit Message

Petri Savolainen April 28, 2017, 12:09 p.m. UTC
Use the new system info print function.

Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>

---
 test/common_plat/performance/odp_sched_latency.c | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)

-- 
2.11.0
diff mbox series

Patch

diff --git a/test/common_plat/performance/odp_sched_latency.c b/test/common_plat/performance/odp_sched_latency.c
index 2b28cd7b..f2aac06f 100644
--- a/test/common_plat/performance/odp_sched_latency.c
+++ b/test/common_plat/performance/odp_sched_latency.c
@@ -634,16 +634,7 @@  int main(int argc, char *argv[])
 		return -1;
 	}
 
-	printf("\n");
-	printf("ODP system info\n");
-	printf("---------------\n");
-	printf("ODP API version:  %s\n",        odp_version_api_str());
-	printf("ODP impl name:    %s\n",        odp_version_impl_name());
-	printf("ODP impl details: %s\n",        odp_version_impl_str());
-	printf("CPU model:        %s\n",        odp_cpu_model_str());
-	printf("CPU freq (hz):    %" PRIu64 "\n", odp_cpu_hz_max());
-	printf("Cache line size:  %i\n",        odp_sys_cache_line_size());
-	printf("Max CPU count:    %i\n",        odp_cpu_count());
+	odp_sys_info_print();
 
 	/* Get default worker cpumask */
 	if (args.cpu_count)
@@ -654,9 +645,10 @@  int main(int argc, char *argv[])
 
 	(void)odp_cpumask_to_str(&cpumask, cpumaskstr, sizeof(cpumaskstr));
 
-	printf("Worker threads:   %i\n", num_workers);
-	printf("First CPU:        %i\n", odp_cpumask_first(&cpumask));
-	printf("CPU mask:         %s\n\n", cpumaskstr);
+	printf("CPU mask info:\n");
+	printf("  Worker threads: %i\n", num_workers);
+	printf("  First CPU:      %i\n", odp_cpumask_first(&cpumask));
+	printf("  CPU mask:       %s\n", cpumaskstr);
 
 	thread_tbl = calloc(sizeof(odph_odpthread_t), num_workers);
 	if (!thread_tbl) {