From: Eliad Peller Date: Wed, 4 Feb 2015 09:30:33 +0000 (-0500) Subject: tests: Add printk tracer to trace-cmd X-Git-Tag: hostap_2_4~192 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a918e48af16a6f6938bfcfbbfd15217f8f06480c;p=thirdparty%2Fhostap.git tests: Add printk tracer to trace-cmd Signed-off-by: Eliad Peller --- diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py index 09a3acd4b..ae1b227bb 100755 --- a/tests/hwsim/run-tests.py +++ b/tests/hwsim/run-tests.py @@ -124,7 +124,7 @@ class DataCollector(object): def __enter__(self): if self._tracing: output = os.path.abspath(os.path.join(self._logdir, '%s.dat' % (self._testname, ))) - self._trace_cmd = subprocess.Popen(['sudo', 'trace-cmd', 'record', '-o', output, '-e', 'mac80211', '-e', 'cfg80211', 'sh', '-c', 'echo STARTED ; read l'], + self._trace_cmd = subprocess.Popen(['sudo', 'trace-cmd', 'record', '-o', output, '-e', 'mac80211', '-e', 'cfg80211', '-e', 'printk', 'sh', '-c', 'echo STARTED ; read l'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=open('/dev/null', 'w'),