diff options
author | Juri Lelli <juri.lelli@arm.com> | 2016-11-18 16:51:18 +0000 |
---|---|---|
committer | Juri Lelli <juri.lelli@arm.com> | 2016-11-24 18:12:30 +0000 |
commit | fb3ec439b61183b8eaa817878f3b5701a9b891b8 (patch) | |
tree | 3539eec958a0e84d782a93e8d53e9699ed3c9349 | |
parent | 68851046ce802e6a05d6511997f5197d3193b0bc (diff) |
rt-app: convert log header to fixed width spaces
Convert thread logs header to fixed width spaces to improve readability
(of both logs and code).
Also, update cpufreq_governor_efficiency script accordingly.
Signed-off-by: Juri Lelli <juri.lelli@arm.com>
Acked-by: Vincent Guittot <vincent.guittot@linaro.org>
-rwxr-xr-x | doc/examples/cpufreq_governor_efficiency/dvfs.sh | 2 | ||||
-rw-r--r-- | src/rt-app.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/doc/examples/cpufreq_governor_efficiency/dvfs.sh b/doc/examples/cpufreq_governor_efficiency/dvfs.sh index 7caee7d..ac69a53 100755 --- a/doc/examples/cpufreq_governor_efficiency/dvfs.sh +++ b/doc/examples/cpufreq_governor_efficiency/dvfs.sh @@ -32,7 +32,7 @@ if [ $1 ] ; then sum=0 loop=0 overrun=0 - for i in $(cat rt-app_$1_run$3us_sleep$4us.log | sed '1d;n;d' | sed '1d' |cut -f 3); do + for i in $(cat rt-app_$1_run$3us_sleep$4us.log | sed '1d;n;d' | sed '1d' | awk '{print $3}'); do loop=$(expr $loop + 1) sum=$(expr $sum + $i) if [ $4 -le $i ] ; then diff --git a/src/rt-app.c b/src/rt-app.c index 442771f..71c04d0 100644 --- a/src/rt-app.c +++ b/src/rt-app.c @@ -557,7 +557,9 @@ void *thread_body(void *arg) log_notice("[%d] starting thread ...\n", data->ind); - fprintf(data->log_handler, "#idx\tperf\trun\tperiod\tstart\t\tend\t\trel_st\n"); + fprintf(data->log_handler, "%s %8s %8s %8s %15s %15s %15s\n", + "#idx", "perf", "run", "period", + "start", "end", "rel_st"); if (opts.ftrace) log_ftrace(ft_data.marker_fd, "[%d] starts", data->ind); |