Skip to content

Commit e376e25

Browse files
committed
run: add timestamps before each log message
Also time every run by default.
1 parent a51526c commit e376e25

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

README.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,6 +1145,8 @@ less out/aarch64/gem5/default/0/termout.txt
11451145
less out/aarch64/gem5/default/1/termout.txt
11461146
....
11471147

1148+
Each line is prepended with the timestamp in seconds since the start of the program when it appeared.
1149+
11481150
You can also add a prefix to the build ID before a period:
11491151

11501152
....

configure

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ coreutils \
3434
cpio \
3535
expect \
3636
git \
37+
moreutils \
3738
tmux \
3839
unzip \
3940
vinagre \

gem5/gem5

Submodule gem5 updated from 60600f0 to ff52563

run

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ if "$tmux"; then
363363
eval "./tmu ./rungdb -a '${arch} -L ${common_linux_variant}' -n ${common_run_id} ${tmux_args}"
364364
fi
365365
fi
366-
cmd="${cmd} \\
367-
|& tee ${common_termout_file} \
366+
cmd="time ${cmd} \\
367+
|& tee >(ts -s %.s > ${common_termout_file}) \
368368
"
369369
"${root_dir}/eeval" "$cmd" "${common_run_dir}/run.sh"

0 commit comments

Comments
 (0)