]> git.baikalelectronics.ru Git - kernel.git/commit
ktest.pl: Just open up the log file once
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 1 Jul 2020 19:21:15 +0000 (15:21 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 1 Jul 2020 19:21:15 +0000 (15:21 -0400)
commit4b9137aaaa66314849ab1a597fead50f827f5fdb
treebb44c1baa68531a70c3a9279f98a751cd5e86437
parent4ce365730d6eafd32ccef95b2ef5961df457269d
ktest.pl: Just open up the log file once

Currently, every write to the log file is done by opening the file, writing
to it, then closing the file. This rather expensive. Just open it at the
beginning and close it at the end.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/testing/ktest/ktest.pl