]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: hwsim: Add more tracing
authorJohannes Berg <johannes.berg@intel.com>
Mon, 25 Sep 2023 07:20:49 +0000 (09:20 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 28 Oct 2023 10:05:13 +0000 (13:05 +0300)
Add SKB tracing (which shows now why/where a frame was dropped
in the stack), and also -T for stack trace at each event.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
tests/hwsim/run-tests.py

index f63bb567766c5ad749bd479a006c3107c29c8842..0d69f303c1039774e8274c4c01d5dca56e9a7062 100755 (executable)
@@ -132,7 +132,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(['trace-cmd', 'record', '-o', output, '-e', 'mac80211', '-e', 'cfg80211', '-e', 'printk', 'sh', '-c', 'echo STARTED ; read l'],
+            self._trace_cmd = subprocess.Popen(['trace-cmd', 'record', '-o', output, '-T', '-e', 'skb', '-e', 'mac80211', '-e', 'cfg80211', '-e', 'printk', 'sh', '-c', 'echo STARTED ; read l'],
                                                stdin=subprocess.PIPE,
                                                stdout=subprocess.PIPE,
                                                stderr=open('/dev/null', 'w'),