run: add timestamps before each log message

Also time every run by default.
This commit is contained in:
Ciro Santilli
2018-07-19 08:06:03 +01:00
parent a51526c600
commit e376e25ca2
4 changed files with 6 additions and 3 deletions

View File

@@ -1145,6 +1145,8 @@ less out/aarch64/gem5/default/0/termout.txt
less out/aarch64/gem5/default/1/termout.txt less out/aarch64/gem5/default/1/termout.txt
.... ....
Each line is prepended with the timestamp in seconds since the start of the program when it appeared.
You can also add a prefix to the build ID before a period: You can also add a prefix to the build ID before a period:
.... ....

1
configure vendored
View File

@@ -34,6 +34,7 @@ coreutils \
cpio \ cpio \
expect \ expect \
git \ git \
moreutils \
tmux \ tmux \
unzip \ unzip \
vinagre \ vinagre \

4
run
View File

@@ -363,7 +363,7 @@ if "$tmux"; then
eval "./tmu ./rungdb -a '${arch} -L ${common_linux_variant}' -n ${common_run_id} ${tmux_args}" eval "./tmu ./rungdb -a '${arch} -L ${common_linux_variant}' -n ${common_run_id} ${tmux_args}"
fi fi
fi fi
cmd="${cmd} \\ cmd="time ${cmd} \\
|& tee ${common_termout_file} \ |& tee >(ts -s %.s > ${common_termout_file}) \
" "
"${root_dir}/eeval" "$cmd" "${common_run_dir}/run.sh" "${root_dir}/eeval" "$cmd" "${common_run_dir}/run.sh"